Skip to content

Commit

Permalink
Make vertx opt-in preview instrumentation for now (#2058)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored Jan 25, 2022
1 parent fbb276e commit 5ca2aa1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,8 @@ public static class PreviewInstrumentation {

public DisabledByDefaultInstrumentation springIntegration =
new DisabledByDefaultInstrumentation();

public DisabledByDefaultInstrumentation vertx = new DisabledByDefaultInstrumentation();
}

public static class PreviewStatsbeat {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ static Config getConfig(Configuration config) {
// springIntegration instrumentation is ON by default in OTEL
properties.put("otel.instrumentation.spring-integration.enabled", "false");
}
if (!config.preview.instrumentation.vertx.enabled) {
// vertx instrumentation is ON by default in OTEL
properties.put("otel.instrumentation.vertx.enabled", "false");
}
if (!config.preview.captureControllerSpans) {
properties.put("otel.instrumentation.common.experimental.suppress-controller-spans", "true");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ enum Feature {
PLAY_DISABLED(25), // preview instrumentation, play is ON by default in OTEL
CAPTURE_HTTP_SERVER_4XX_AS_SUCCESS(26),
CAPTURE_HTTP_SERVER_HEADERS(27),
CAPTURE_HTTP_CLIENT_HEADERS(28);
CAPTURE_HTTP_CLIENT_HEADERS(28),
VERTX_DISABLED(29); // preview instrumentation, vertx is ON by default in OTEL

private static final Map<String, Feature> javaVendorFeatureMap;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ void trackConfigurationOptions(Configuration config) {
if (!config.preview.instrumentation.springIntegration.enabled) {
featureList.add(Feature.SPRING_INTEGRATION_DISABLED);
}
if (!config.preview.instrumentation.vertx.enabled) {
featureList.add(Feature.VERTX_DISABLED);
}

// Statsbeat
if (config.preview.statsbeat.disabled) {
Expand Down

0 comments on commit 5ca2aa1

Please sign in to comment.