Skip to content

rust: resolve OTLP metrics endpoint independently of traces #981

Closed

Description

@athvin

Evidence

Metrics initialization derives its URL by replacing /v1/traces in traces_endpoint(). A valid signal-specific traces URL with a custom path is used verbatim, so replacement does nothing and metrics POST to the traces URL. A distinct OTEL_EXPORTER_OTLP_METRICS_ENDPOINT is ignored. Source.

Change

Resolve the metrics endpoint from its signal-specific setting or the general OTLP base independently; keep the configured traces endpoint exclusive to traces.

Done when

  • General base URL resolves metrics to its metrics path.
  • A custom traces endpoint does not become the metrics endpoint.
  • A metrics-specific endpoint override is honored.
  • Tests cover both exporters without changing the default deployment path.

Activity

  1. added
    code-cleanup
    on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-cleanup

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions