-
Notifications
You must be signed in to change notification settings - Fork 869
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bridge trace builder #4090
Bridge trace builder #4090
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
testImplementation(project(":instrumentation:opentelemetry-api-1.0:testing")) | ||
testInstrumentation(project(":instrumentation:opentelemetry-api-1.0:testing")) | ||
testImplementation(project(":instrumentation:opentelemetry-api:opentelemetry-api-1.0:testing")) | ||
testInstrumentation(project(":instrumentation:opentelemetry-api:opentelemetry-api-1.0:testing")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated to this PR but
testInstrumentation(project(":instrumentation:opentelemetry-api:opentelemetry-api-1.0:testing")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ignore me, meant to delete this comment (because it's wrong 😄)
...pentelemetry/javaagent/instrumentation/opentelemetryapi/trace/ApplicationTracerProvider.java
Outdated
Show resolved
Hide resolved
io.opentelemetry.api.trace.TracerProvider agentTracerProvider) { | ||
if (TRACE_PROVIDER_14 != null) { | ||
try { | ||
return (TracerProvider) TRACE_PROVIDER_14.newInstance(agentTracerProvider); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use a MethodHandle
instead of reflection?
…ent/src/main/java/io/opentelemetry/javaagent/instrumentation/opentelemetryapi/trace/ApplicationTracerProvider.java Co-authored-by: Trask Stalnaker <trask.stalnaker@gmail.com>
e935614
to
f204bad
Compare
Resolves #4015
Introduce a separate module for bridging 1.4 api because
TracerBuilder
was added in 1.4.