Skip to content

Commit 07e095d

Browse files
wl2027breedx-splk
andauthored
fix
Co-authored-by: jason plumb <[email protected]>
1 parent b9ecd26 commit 07e095d

File tree

1 file changed

+1
-3
lines changed
  • instrumentation/kafka/kafka-clients/kafka-clients-common-0.11/library/src/main/java/io/opentelemetry/instrumentation/kafkaclients/common/v0_11/internal

1 file changed

+1
-3
lines changed

instrumentation/kafka/kafka-clients/kafka-clients-common-0.11/library/src/main/java/io/opentelemetry/instrumentation/kafkaclients/common/v0_11/internal/KafkaProducerAttributesExtractor.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ public void onStart(
4040
}
4141

4242
String bootstrapServers = request.getBootstrapServers();
43-
if (bootstrapServers != null) {
44-
attributes.put(MESSAGING_KAFKA_BOOTSTRAP_SERVERS, bootstrapServers);
45-
}
43+
attributes.put(MESSAGING_KAFKA_BOOTSTRAP_SERVERS, bootstrapServers);
4644
}
4745

4846
private static boolean canSerialize(Class<?> keyClass) {

0 commit comments

Comments
 (0)