Skip to content
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

Merged
merged 8 commits into from
Sep 13, 2021
Merged

Bridge trace builder #4090

merged 8 commits into from
Sep 13, 2021

Conversation

laurit
Copy link
Contributor

@laurit laurit commented Sep 10, 2021

Resolves #4015
Introduce a separate module for bridging 1.4 api because TracerBuilder was added in 1.4.

Copy link
Member

@trask trask left a 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"))
Copy link
Member

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

Suggested change
testInstrumentation(project(":instrumentation:opentelemetry-api:opentelemetry-api-1.0:testing"))

Copy link
Member

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 😄)

io.opentelemetry.api.trace.TracerProvider agentTracerProvider) {
if (TRACE_PROVIDER_14 != null) {
try {
return (TracerProvider) TRACE_PROVIDER_14.newInstance(agentTracerProvider);
Copy link
Member

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?

@laurit laurit force-pushed the bridge-trace-builder branch from e935614 to f204bad Compare September 13, 2021 11:29
@trask trask merged commit 4361840 into open-telemetry:main Sep 13, 2021
@laurit laurit deleted the bridge-trace-builder branch July 6, 2023 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

opentelemetry-api bridge doesn't work with GlobalOpenTelemetry.get() pattern
3 participants