Skip to content
This repository was archived by the owner on Mar 15, 2021. It is now read-only.

Commit 0a84d10

Browse files
authored
[PubsubPluginSink] Log a sample key and tags when dropping metrics (#250)
1 parent 7119df9 commit 0a84d10

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

modules/pubsub/src/main/java/com/spotify/ffwd/pubsub/PubsubPluginSink.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,12 @@ public AsyncFuture<Void> sendMetrics(Collection<Metric> metrics) {
146146
logger.error("Failed to serialize batch of metrics: ", e);
147147
}
148148
} else {
149-
logger.info("Above input metric limit {}, size was {}; dropping metrics", MAX_INPUT_METRICS,
150-
metrics.size());
149+
logger.info("Above input metric limit {}, size was {}, sample key: {}, sample tags: {}; "
150+
+ "dropping metrics",
151+
MAX_INPUT_METRICS,
152+
metrics.size(),
153+
metrics.iterator().next().getKey(),
154+
metrics.iterator().next().getTags());
151155
}
152156
return async.resolved();
153157
}

0 commit comments

Comments
 (0)