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

Commit

Permalink
[PubsubPluginSink] Log a sample key and tags when dropping metrics (#250
Browse files Browse the repository at this point in the history
)
  • Loading branch information
lmuhlha authored Feb 26, 2021
1 parent 7119df9 commit 0a84d10
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,12 @@ public AsyncFuture<Void> sendMetrics(Collection<Metric> metrics) {
logger.error("Failed to serialize batch of metrics: ", e);
}
} else {
logger.info("Above input metric limit {}, size was {}; dropping metrics", MAX_INPUT_METRICS,
metrics.size());
logger.info("Above input metric limit {}, size was {}, sample key: {}, sample tags: {}; "
+ "dropping metrics",
MAX_INPUT_METRICS,
metrics.size(),
metrics.iterator().next().getKey(),
metrics.iterator().next().getTags());
}
return async.resolved();
}
Expand Down

0 comments on commit 0a84d10

Please sign in to comment.