Skip to content

otlp exporter uses incorrect path when base endpoint path is non-root #1602

@jfallows

Description

@jfallows

When base endpoint has a non-root path, such as http://localhost:8080/telemetry, then default overrides for logs and metrics do not append, instead they replace, giving:

  • http://localhost:8080/v1/logs instead of http://localhost:8080/telemetry/v1/logs
  • http://localhost:8080/v1/metrics instead of http://localhost:8080/telemetry/v1/metrics

Workaround is to explicitly specify overrides to use v1/logs instead of /v1/logs, and v1/metrics instead of /v1/metrics.

Fix should change the default behavior such that default paths are appended to the base endpoint path, even when that path is non-root.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions