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

Add new ktor preview instrumentation #3243

Merged
merged 2 commits into from
Aug 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,8 @@ public static class PreviewInstrumentation {

public DisabledByDefaultInstrumentation apacheCamel = new DisabledByDefaultInstrumentation();

public DisabledByDefaultInstrumentation ktor = new DisabledByDefaultInstrumentation();

// this is just here to detect if using this old setting in order to give a helpful message
@Deprecated
public DisabledByDefaultInstrumentation azureSdk = new DisabledByDefaultInstrumentation();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ private static void enableInstrumentations(
if (config.preview.instrumentation.vertx.enabled) {
properties.put("otel.instrumentation.vertx.enabled", "true");
}
if (config.preview.instrumentation.ktor.enabled) {
properties.put("otel.instrumentation.ktor.enabled", "true");
}
if (config.preview.instrumentation.jaxrsAnnotations.enabled) {
properties.put("otel.instrumentation.jaxrs-1.0.enabled", "true");
properties.put("otel.instrumentation.jaxrs-annotations.enabled", "true");
Expand Down