Skip to content

Separate Protobuf encoding into a separate package  #3160

Closed
@jack-burridge-cfh

Description

@jack-burridge-cfh

I propose moving the encoding of spans, logs and metrics to Protobuf in a new package. Exposing public members to use those members so they may be used by other tooling.

Is your feature request related to a problem?
There is a usecase where you may want to push telemetry via a different mechanism. At the moment Kafka is supported, without a public package for encoding you have to duplicate the work already done in opentelemetry-exporter-otlp-proto-http and opentelemetry-exporter-otlp-proto-grpc.

Describe the solution you'd like
I suggest moving the encoding to a new package, @srikanthccv has suggested opentelemetry-exporter-otlp-proto-common. Then modifying opentelemetry-exporter-otlp-proto-http and opentelemetry-exporter-otlp-proto-grpc so they use this package.

Describe alternatives you've considered
I have considered adding public symbols to opentelemetry-proto but @srikanthccv and I both believe it should only contain the generated code.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions