Skip to content

Workaround for temporality configuration not being possible#610

Merged
JonasKunz merged 5 commits into
elastic:mainfrom
JonasKunz:temporality-workaround
Apr 16, 2025
Merged

Workaround for temporality configuration not being possible#610
JonasKunz merged 5 commits into
elastic:mainfrom
JonasKunz:temporality-workaround

Conversation

@JonasKunz

Copy link
Copy Markdown
Contributor

Just after releasing, I discovered that the temporality setting otel.exporter.otlp.metrics.temporality.preference had no more effect. The temporality would always be cumulative, independent of what is configured. Even our changed default to delta did not take effect.

This was introduced in #593 due to a bug in the toBuilder() implementation in the exporters:
open-telemetry/opentelemetry-java#7276

I've added more integrationish test reproducing the problem and added a workaround. I've also manually verified the fix.

@JonasKunz
JonasKunz requested a review from a team April 15, 2025 13:12
SylvainJuge
SylvainJuge previously approved these changes Apr 16, 2025
Comment thread custom/src/main/java/co/elastic/otel/ElasticUserAgentHeader.java
@JonasKunz
JonasKunz merged commit ca89436 into elastic:main Apr 16, 2025
@JonasKunz
JonasKunz deleted the temporality-workaround branch April 16, 2025 10:01
@SylvainJuge SylvainJuge added the bug Something isn't working label Mar 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-java bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants