-
Notifications
You must be signed in to change notification settings - Fork 138
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
demonstrate ExtendedTracer #288
Conversation
OpenTelemetrySdk sdk = | ||
OpenTelemetrySdk.builder() | ||
.setTracerProvider(sdkTracerProvider) | ||
.setPropagators(ContextPropagators.create(W3CTraceContextPropagator.getInstance())) |
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.
This is configured by default, isn't it?
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.
in auto-configure it is, but not in the builder, which is used here.
manual-tracing/src/main/java/io/opentelemetry/example/tracing/ManualTracingExample.java
Outdated
Show resolved
Hide resolved
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.
This is looking good to me. I think the http examples demonstrate the value here nicely, but I could possibly see it being contentious to use the existing http example with the new incubating tracer.
In any case, nice work.
b439c50
to
24cfce1
Compare
I see the point. |
@breedx-splk can you check again? |
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.
Yup, still looking good. Thanks.
@jack-berg can you merge? |
manual-tracing/src/main/java/io/opentelemetry/example/tracing/ManualTracingExample.java
Outdated
Show resolved
Hide resolved
private static final Tracer tracer = | ||
openTelemetry.getTracer("io.opentelemetry.example.http.HttpServer"); | ||
private static final ExtendedTracer tracer = | ||
ExtendedTracer.create(openTelemetry.getTracer("io.opentelemetry.example.http.HttpServer")); |
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.
Its arguably a bit strange to reference experimental APIs as part of canonical examples, but I think its fine if we're serious about incubating these to eventually incorporate into Tracer.
@jack-berg can you check again? |
@trask can you merge? |
which was newly introduced in 1.33