-
Notifications
You must be signed in to change notification settings - Fork 870
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
Rename library entrypoints to Telemetry #5624
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.
Awesome! 🚀
GraphQLTelemetry tracing = | ||
GraphQLTelemetry.builder(testing.getOpenTelemetry()) | ||
.setCaptureExperimentalSpanAttributes(true) | ||
.build(); | ||
builder.instrumentation(tracing.newInstrumentation()); |
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.
GraphQLTelemetry tracing = | |
GraphQLTelemetry.builder(testing.getOpenTelemetry()) | |
.setCaptureExperimentalSpanAttributes(true) | |
.build(); | |
builder.instrumentation(tracing.newInstrumentation()); | |
GraphQLTelemetry telemetry = | |
GraphQLTelemetry.builder(testing.getOpenTelemetry()) | |
.setCaptureExperimentalSpanAttributes(true) | |
.build(); | |
builder.instrumentation(telemetry.newInstrumentation()); |
@@ -20,8 +20,8 @@ | |||
private static final boolean CAPTURE_EXPERIMENTAL_SPAN_ATTRIBUTES = | |||
Config.get().getBoolean("otel.instrumentation.graphql.experimental-span-attributes", false); | |||
|
|||
private static final GraphQLTracing TRACING = | |||
GraphQLTracing.builder(GlobalOpenTelemetry.get()) | |||
private static final GraphQLTelemetry TRACING = |
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.
s/TRACING/TELEMETRY/g
ArmeriaTelemetry tracing = ArmeriaTelemetry.create(GlobalOpenTelemetry.get()); | ||
|
||
CLIENT_DECORATOR = tracing.newClientDecorator(); | ||
SERVER_DECORATOR = tracing.newServiceDecorator(); |
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.
ArmeriaTelemetry tracing = ArmeriaTelemetry.create(GlobalOpenTelemetry.get()); | |
CLIENT_DECORATOR = tracing.newClientDecorator(); | |
SERVER_DECORATOR = tracing.newServiceDecorator(); | |
ArmeriaTelemetry telemetry = ArmeriaTelemetry.create(GlobalOpenTelemetry.get()); | |
CLIENT_DECORATOR = telemetry.newClientDecorator(); | |
SERVER_DECORATOR = telemetry.newServiceDecorator(); |
@@ -26,8 +26,8 @@ | |||
boolean experimentalSpanAttributes = | |||
Config.get().getBoolean("otel.instrumentation.grpc.experimental-span-attributes", false); | |||
|
|||
GrpcTracing tracing = | |||
GrpcTracing.builder(GlobalOpenTelemetry.get()) | |||
GrpcTelemetry tracing = |
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.
s/tracing/telemetry/g
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.
nice 👍
…nstrumentation into telemetry-entry
* Rename library entrypoints to Telemetry * Renames
for okhttp-3.0 instrumentation, the README uses `OkHttpTracing`: ```java import io.opentelemetry.instrumentation.okhttp.v3_0.OkHttpTracing; ... return OkHttpTracing.builder(openTelemetry).build().newCallFactory(createClient()); ``` #5624 changed `OkHttpTracing` to `OkHttpTelemetry` but the docs still show the previous value which no longer works
I've been wanting to solve our long standing issue of naming our entrypoints Tracing even though they are more than tracing since we should write more examples for library instrumentation and would be good to have more stable APIs. I think we liked the idea Telemetry when discussing a while back.