Skip to content

Commit bf7ae0c

Browse files
committed
Fixed parsing error
1 parent 6346d74 commit bf7ae0c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dd-java-agent/instrumentation/spark/src/main/java/datadog/trace/instrumentation/spark/AbstractDatadogSparkListener.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1176,6 +1176,7 @@ private static void reportKafkaOffsets(
11761176
// check if this is a kafka source
11771177
System.out.println(
11781178
"==== processing source '" + progress.description().toLowerCase() + "' ====");
1179+
System.out.println("==== raw data '" + progress.endOffset() + "' ====");
11791180
if (progress.description().toLowerCase().startsWith("kafka")) {
11801181
try {
11811182
ObjectMapper objectMapper = new ObjectMapper();
@@ -1189,7 +1190,7 @@ private static void reportKafkaOffsets(
11891190
System.out.println("==== found topic '" + topic + "' ====");
11901191
JsonNode topicNode = jsonNode.get(topic);
11911192
// iterate thought reported partitions
1192-
Iterator<String> allPartitions = topicNode.get(topic).fieldNames();
1193+
Iterator<String> allPartitions = topicNode.fieldNames();
11931194
// dsm tags
11941195
LinkedHashMap<String, String> sortedTags = new LinkedHashMap<>();
11951196
sortedTags.put(CONSUMER_GROUP_TAG, appName);

0 commit comments

Comments
 (0)