File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
examples/extension/src/main/java/com/example/javaagent Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public void customize(InstrumenterCustomizer customizer) {
5151 if (isHttpServerInstrumentation (instrumentationName )) {
5252 customizeHttpServer (customizer );
5353 }
54-
54+
5555 if (customizer .hasType (InstrumenterCustomizer .InstrumentationType .HTTP_CLIENT )) {
5656 customizeHttpClient (customizer );
5757 }
@@ -79,8 +79,10 @@ private void customizeHttpClient(InstrumenterCustomizer customizer) {
7979 }
8080
8181 /** Custom attributes extractor for HTTP client instrumentations. */
82- private static class DemoHttpClientAttributesExtractor implements AttributesExtractor <Object , Object > {
83- private static final AttributeKey <String > CLIENT_ATTR = AttributeKey .stringKey ("demo.client.type" );
82+ private static class DemoHttpClientAttributesExtractor
83+ implements AttributesExtractor <Object , Object > {
84+ private static final AttributeKey <String > CLIENT_ATTR =
85+ AttributeKey .stringKey ("demo.client.type" );
8486
8587 @ Override
8688 public void onStart (AttributesBuilder attributes , Context context , Object request ) {
@@ -93,8 +95,7 @@ public void onEnd(
9395 Context context ,
9496 Object request ,
9597 Object response ,
96- Throwable error ) {
97- }
98+ Throwable error ) {}
9899 }
99100
100101 /** Custom attributes extractor that adds demo-specific attributes. */
You can’t perform that action at this time.
0 commit comments