Skip to content

TemporalityPreference / DefaultHistogramAggregation are ignored #10745

Closed
@pirgeo

Description

@pirgeo

I recently tried configuring the OTLP exporter for internal telemetry in the OpenTelemetry collector. While doing that, I tried to set the TemporalityPreference for the exported telemetry, which is passed through to the initOTLPHTTPExporter and initOTLPgRPCExporter methods. However, when looking through the code, it seems like TemporalityPreference and DefaultHistogramAggregation are not converted to options to be passed on to the creation of the metrics exporter (https://github.com/open-telemetry/opentelemetry-collector/blob/main/service/internal/proctelemetry/config.go#L264, I assume this is where it would go). Also, setting these options does not affect the telemetry that the collector emits at all.

Is your feature request related to a problem? Please describe.
TemporalityPreference and DefaultHistogramAggregation can't be set on the internal telemetry exporters.

Describe the solution you'd like
temporality_preference and default_histogram_aggregation are passed to the exporter. I have created a branch but am unsure if this is how it's supposed to be done (using the metricdata package directly). I am happy to open a PR or hand off the code if you think this is the right approach.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpriority:p2Medium

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions