Initialize Laminar if the environment variables are set.Example configuration:
Copy
Ask AI
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://otel-collector:4317/v1/traces# comma separated, key=value url-encoded pairsOTEL_EXPORTER_OTLP_TRACES_HEADERS=”Authorization=Bearer%20`<KEY>`,X-Key=`<CUSTOM_VALUE>`”# grpc is assumed if not specifiedOTEL_EXPORTER_OTLP_TRACES_PROTOCOL=http/protobuf # or grpc/protobuf# orOTEL_EXPORTER=otlp_http # or otlp_grpc