opentelemetry-js icon indicating copy to clipboard operation
opentelemetry-js copied to clipboard

[otlp-transformer] reduce public API surface

Open pichlermarc opened this issue 1 year ago • 1 comments
trafficstars

Description

The @opentelemetry/otlp-transformer package contains utilities to serialize signals data to and from OTLP (binary protobuf) or OTLP (json). As all OTLP exporters depend on this package, stabilization of @opentelemetry/otlp-transformer is required for OTLP exporter stability.

The API surface currently consists of 40+ types and functions. Reducing the API surface is required to enable optimizations in the serialization process in terms memory use, performance, and bundle size without being constrained by a large stable public API.

Goal of this issue is to:

Move the full serialization process to @opentelemetry/otlp-transformer, this way we will be able to reduce the API surface to:

  • an ISerializer interface
  • one serializer implementation per signal (metrics, logs, traces) and type (binary protobuf, json)
  • one response type per signal.

pichlermarc avatar Mar 26 '24 13:03 pichlermarc