Skip to main content

Module otlp

Module otlp 

Source
Expand description

The part of the OpenTelemetry metrics protocol (OTLP) that a KIP-714 client pushes.

The metrics field of a PushTelemetry request holds a serialized opentelemetry.proto.metrics.v1.MetricsData. Kafka’s client builds it with the generated protobuf classes. A client only needs number gauges and number sums with string attributes, so this module encodes and decodes that subset of the protobuf wire format by hand. Fields outside the subset are skipped on decode.

Structs§

KeyValue
opentelemetry.proto.common.v1.KeyValue with a string value, the only kind of attribute that Kafka writes.
Metric
opentelemetry.proto.metrics.v1.Metric with a gauge or a sum.
MetricsData
opentelemetry.proto.metrics.v1.MetricsData.
NumberDataPoint
opentelemetry.proto.metrics.v1.NumberDataPoint.
OtlpDecodeError
A payload that is not a well-formed MetricsData.
Resource
opentelemetry.proto.resource.v1.Resource.
ResourceMetrics
opentelemetry.proto.metrics.v1.ResourceMetrics.
ScopeMetrics
opentelemetry.proto.metrics.v1.ScopeMetrics, without the instrumentation scope, which Kafka does not set.

Enums§

AggregationTemporality
opentelemetry.proto.metrics.v1.AggregationTemporality.
MetricData
The data of a Metric.
NumberValue
The value oneof of a NumberDataPoint.