Skip to content

Otel api bridging for 1.61#17849

Merged
trask merged 4 commits intoopen-telemetry:mainfrom
laurit:otel-api-1.61
Apr 17, 2026
Merged

Otel api bridging for 1.61#17849
trask merged 4 commits intoopen-telemetry:mainfrom
laurit:otel-api-1.61

Conversation

@laurit
Copy link
Copy Markdown
Contributor

@laurit laurit commented Apr 15, 2026

No description provided.

@otelbot-java-instrumentation otelbot-java-instrumentation Bot added the test native This label can be applied to PRs to trigger them to run native tests label Apr 15, 2026
.getConfigProvider()
.getInstrumentationConfig("foo")
.getString("bar"))
DeclarativeConfigProperties instrumentationConfig =
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is how this test originally was. When the api was updated this test was changed, we should have ensured that this test used the old api instead.

import io.opentelemetry.api.metrics.DoubleCounter;
import io.opentelemetry.javaagent.instrumentation.opentelemetryapi.v1_10.metrics.ApplicationDoubleCounter;

final class ApplicationDoubleCounter140Incubator extends ApplicationDoubleCounter
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

although the new isEnabled method is implemented in the base class we still need this class for producing a counter that can be cast to ExtendedDoubleCounter

@laurit laurit marked this pull request as ready for review April 15, 2026 10:16
@laurit laurit requested a review from a team as a code owner April 15, 2026 10:16
@laurit laurit added this to the v2.27.0 milestone Apr 16, 2026
@trask trask merged commit 50a8297 into open-telemetry:main Apr 17, 2026
182 of 183 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test native This label can be applied to PRs to trigger them to run native tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants