Skip to content

Commit c1b616a

Browse files
committed
Fix CI failing
1 parent 2c5b5a5 commit c1b616a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

examples/extension/src/main/java/com/example/javaagent/DemoInstrumenterCustomizerProvider.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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. */

0 commit comments

Comments
 (0)