Streamline the OTLP Metrics export path #2119
Labels
area:metrics
Part of OpenTelemetry Metrics
enhancement
New feature or request
pkg:SDK
Related to an SDK package
Milestone
Problem Statement
The OTLP exporters for spans and metrics both perform grouping, both by resource and by instrumentation library, in order to construct the OTLP protocol from a flat listing of spans and metrics. The request in this issue is to streamline the export path so that metrics the same provider are pre-grouped, first by Resource as there is only one allowed according to the Resource SDK specification. Second, metrics aggregations should be pre-grouped according to which
Meter
produced the span or metric instrument, so it should not be necessary to regroup these data before export.Proposed Solution
There are two parts:
Export()
call, since there can only be one Resource valueExport()
requests can be built without re-groupingAlternatives
Continue re-grouping by resource and instrumentation library in the OTLP metrics path.
Additional Context
Note that tracing does the same form of re-grouping in its export path, but the benefit avoiding grouping is less clear for spans, since spans are not aggregated.
The text was updated successfully, but these errors were encountered: