-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[exporterhelper] Add exporter dropped metrics #11077
[exporterhelper] Add exporter dropped metrics #11077
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #11077 +/- ##
==========================================
+ Coverage 92.28% 92.30% +0.01%
==========================================
Files 413 413
Lines 19766 19793 +27
==========================================
+ Hits 18242 18269 +27
Misses 1152 1152
Partials 372 372 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a changelog for this
Co-authored-by: Alex Boten <223565+codeboten@users.noreply.github.com>
Why is this wrong? The telemetrygen sends 2 spans which are reflected in the logs and the |
@dmitryax If my test was setup to fail once and then succeed on the second try, I'd like to add these metrics to record when data is finally and totally dropped. At the moment our only way to communicate this situations is the error logs |
That's not true. The retry mechanism is past the point where we record the failed exports |
@dmitryax you're right, this PR is not needed. |
Description
I've been working under the assumption that we had a metric for when the collector dropped data that corresponds with when we write out
Exporting Failed. Dropping data.
. I was wrong, so I played around with adding such a metric.Link to tracking issue
Related to #5056
Testing
Tested locally using the otlp exporter and a bogus endpoint:
using telemetrygen I sent 1 trace:
telemetrygen traces --otlp-insecure --traces 1
.Generated these metrics after 30 seconds:
Documentation