Skip to content

Commit f8acfb7

Browse files
committed
Spotless apply
1 parent 3bf87d6 commit f8acfb7

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

dd-java-agent/instrumentation/kafka-clients-0.11/src/main/java/datadog/trace/instrumentation/kafka_clients/KafkaProducerInstrumentation.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,8 @@ public static AgentScope onEnter(
132132
sortedTags.put(TYPE_TAG, "kafka");
133133
try {
134134
propagate().inject(span, record.headers(), SETTER);
135-
if (STREAMING_CONTEXT.isDisabledForTopic(record.topic()) ||
136-
STREAMING_CONTEXT.isSinkTopic(record.topic())) {
135+
if (STREAMING_CONTEXT.isDisabledForTopic(record.topic())
136+
|| STREAMING_CONTEXT.isSinkTopic(record.topic())) {
137137
// inject the context in the headers, but delay sending the stats until we know the
138138
// message size.
139139
// The stats are saved in the pathway context and sent in PayloadSizeAdvice.
@@ -154,8 +154,8 @@ record =
154154
record.headers());
155155

156156
propagate().inject(span, record.headers(), SETTER);
157-
if (STREAMING_CONTEXT.isDisabledForTopic(record.topic()) ||
158-
STREAMING_CONTEXT.isSinkTopic(record.topic())) {
157+
if (STREAMING_CONTEXT.isDisabledForTopic(record.topic())
158+
|| STREAMING_CONTEXT.isSinkTopic(record.topic())) {
159159
propagate()
160160
.injectPathwayContextWithoutSendingStats(
161161
span, record.headers(), SETTER, sortedTags);

dd-java-agent/instrumentation/kafka-common/src/main/java/datadog/trace/instrumentation/kafka_common/StreamingContext.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public boolean isSourceTopic(final String topic) {
6666

6767
// Checks if this topic is a part of a streaming topology
6868
public boolean isDisabledForTopic(final String topic) {
69-
return topics.isEmpty() ||
70-
Objects.equals(topics.getOrDefault(topic, UNKNOWN_TOPIC), UNKNOWN_TOPIC);
69+
return topics.isEmpty()
70+
|| Objects.equals(topics.getOrDefault(topic, UNKNOWN_TOPIC), UNKNOWN_TOPIC);
7171
}
7272

7373
private final Set<String> allSourceTopics = ConcurrentHashMap.newKeySet();

0 commit comments

Comments
 (0)