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

    Function tracingConfigFromEnv

    • Builds a TracingConfig from the environment with overrides on top (each field: explicit > environment > preset default).

      Field Variables
      protocol GROW_ZIPKIN_PROTOCOL (native, grpc, http/protobuf)
      endpoint (native) GROW_ZIPKIN_ENDPOINT, OTEL_EXPORTER_ZIPKIN_ENDPOINT (as-is), GROW_ZIPKIN_URL / ZIPKIN_URL + /api/v2/spans
      endpoint (OTLP, a Collector) OTEL_EXPORTER_OTLP_TRACES_ENDPOINT (as-is), OTEL_EXPORTER_OTLP_ENDPOINT (HTTP appends /v1/traces)
      batch.exportTimeoutMs OTEL_EXPORTER_ZIPKIN_TIMEOUT (ms or 10s)
      compression GROW_ZIPKIN_COMPRESSION (gzip, none)
      serviceName OTEL_SERVICE_NAME, else service.name in OTEL_RESOURCE_ATTRIBUTES
      resourceAttributes OTEL_RESOURCE_ATTRIBUTES
      sampler, samplerRatio OTEL_TRACES_SAMPLER, OTEL_TRACES_SAMPLER_ARG
      propagators OTEL_PROPAGATORS

      A blank explicit serviceName counts as unset. Headers come from code only (no credential variables exist). A present but invalid value throws ConfigError naming the variable, never its value.

      Parameters

      Returns TracingConfig