Skip to main content

maybe_init_laminar()

Initialize Laminar if the environment variables are set. Example configuration:
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=http://otel-collector:4317/v1/traces

# comma separated, key=value url-encoded pairs
OTEL_EXPORTER_OTLP_TRACES_HEADERS=Authorization=Bearer%20`<KEY>`,X-Key=`<CUSTOM_VALUE>`

# grpc is assumed if not specified
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=http/protobuf # or grpc/protobuf
# or
OTEL_EXPORTER=otlp_http # or otlp_grpc

observe()