Skip to content

Consolidating proto/ and common functions into opentelemetry-common/ #2170

@xuan-cao-swi

Description

@xuan-cao-swi

Propose to move proto/ and common functions into opentelemetry-common/ so that otlp, otlp-metrics, and otlp-logs exporters
can use the centralized utilities.

  1. Current opentelemetry-proto is v1.10, while our proto is still v1.8.0. Centralizing proto to common avoids managing three separate proto/ folders.
  2. There are common utilities such as prepare_endpoint, prepare_headers, etc. Consolidating them together prevents issues like fix: URI.join dropping path prefix in logs and metrics exporters #2158.

Other things to consider:
otlp and otlp-http are confusing—people may check otlp-http rather than otlp, and otlp-http still needs to be updated if other otlp exporters change.

  1. Rename otlp → otlp-trace (similar to otlp-metrics and otlp-logs); if gRPC support is added in the future, consider adding the gRPC exporter inside otlp-trace/.
  2. Add a notice that otlp-http is not maintained and redirect users to otlp.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions