@grow-codes/jaeger - v0.1.1
    Preparing search index...

    Function tracingConfigFromEnv

    • Builds a JaegerTracingConfig from the environment with overrides on top. Exporter precedence (per field): explicit > GROW_JAEGER_OTLP_* > OTEL_EXPORTER_OTLP_TRACES_* > OTEL_EXPORTER_OTLP_* > Jaeger default.

      Field Variables
      protocol …_PROTOCOL (grpc, http/protobuf)
      endpoint GROW_JAEGER_OTLP_GRPC_ENDPOINT / GROW_JAEGER_OTLP_HTTP_ENDPOINT (by protocol), GROW_JAEGER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_TRACES_ENDPOINT (as-is), OTEL_EXPORTER_OTLP_ENDPOINT (base; HTTP appends /v1/traces)
      headers …_HEADERS (k=v,k2=v2, percent-decoded)
      compression …_COMPRESSION (gzip, none)
      batch.exportTimeoutMs …_TIMEOUT (ms or 10s)
      tls …_CERTIFICATE (also GROW_JAEGER_OTLP_CA_CERT), …_CLIENT_CERTIFICATE, …_CLIENT_KEY (paths)
      serviceName GROW_JAEGER_SERVICE_NAME, OTEL_SERVICE_NAME, else service.name in OTEL_RESOURCE_ATTRIBUTES
      resourceAttributes OTEL_RESOURCE_ATTRIBUTES merged with the explicit attributes (explicit wins per key)
      sampler, samplerRatio OTEL_TRACES_SAMPLER, OTEL_TRACES_SAMPLER_ARG; jaeger_remote / parentbased_jaeger_remote enable JaegerTracingConfig.remoteSampler (arg endpoint=…,pollingIntervalMs=…,initialSamplingRate=…)
      propagators OTEL_PROPAGATORS

      A present but invalid value throws ConfigError naming the variable, never its value.

      Parameters

      Returns JaegerTracingConfig