-
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
Add telemetry for dropped data due to exporter sending queue overflow #3328
Add telemetry for dropped data due to exporter sending queue overflow #3328
Conversation
obsreport/obsreport_exporter.go
Outdated
// RecordTracesEnqueueFailure records number of spans that failed to be added to the sending queue. | ||
func (eor *Exporter) RecordTracesEnqueueFailure(ctx context.Context, numSpans int) { | ||
_ = stats.RecordWithTags(ctx, eor.mutators, obsmetrics.ExporterFailedToEnqueueSpans.M(int64(numSpans))) | ||
} |
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.
I want to think a bit more about this API, do you know any simple way to make this "private API" (internal) for the moment until we better understand the need?
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.
Cannot think of any other way to arrange this without code duplication :(
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.
Temporarily migrated to make it private with some code duplication
a27155f
to
e6c6e57
Compare
This change adds internal metrics for dropped spans, metric points and log records when exporter sending queue is full: - exporter/enqueue_failed_metric_points - exporter/enqueue_failed_spans - exporter/enqueue_failed_log_records
2bb405a
to
78ca1b0
Compare
By moving them to the package where they are being used. It requires some code duplication
78ca1b0
to
c882e64
Compare
This change adds internal metrics for dropped spans, metric points and log records when exporter sending queue is full: