Skip to content

incubating OTel APIs can't be used it the agent #12128

Closed
@zeitlinger

Description

@zeitlinger

Is your feature request related to a problem? Please describe.

ApplicationTracer doesn't implement ExtendedTracer - similar for other APIs

https://github.com/open-telemetry/opentelemetry-java-instrumentation/blob/main/instrumentation/opentelemetry-api/opentelemetry-api-1.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/opentelemetryapi/trace/ApplicationTracer.java

In the SDK, there's a similarly surprising problem: open-telemetry/opentelemetry-java#6617

A first part (for metrics) was already implemented in the agent: #11934
The second part (that also covers noop) can be implemented once the SDK issue has been fixed.

Why the dependency?
The agent uses noop if there are no readers registered: https://github.com/open-telemetry/opentelemetry-java/blob/c33febbea6250d771d2081637764c25ddd071875/sdk/metrics/src/main/java/io/opentelemetry/sdk/metrics/SdkMeterProvider.java#L111

Describe the solution you'd like

User should be able to just use incubating API if they add the dependency

Describe alternatives you've considered

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions