-
Notifications
You must be signed in to change notification settings - Fork 174
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
Track errors when recording spans #290
base: master
Are you sure you want to change the base?
Conversation
Gerald Rule: Copy Observability on Veneur and Unilog pull requestscc @stripe/observability |
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 think only one blocker on this. Otherwise: AWESOME
cl.statsMtx.Lock() | ||
defer cl.statsMtx.Unlock() | ||
tags := []string{fmt.Sprintf("error:%s", err.Error())} | ||
cl.stats.Incr("veneur.trace.record.errors_total", tags, 0.1) |
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 think the metrics prefix that we set on our statsd client will cause the metric to be reported as veneur.veneur.trace.<...>
. I wonder if SetErrorStats
should have a sister method to set the metric name, too.
@@ -61,6 +65,18 @@ func (c *Client) run(ctx context.Context) { | |||
} | |||
} | |||
|
|||
type IncrClient interface { |
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.
Can/should this interface get docs?
Summary
If we're encountering an error when recording a span, we want to know about it! This helps us catch situations like dropping spans due to the channel buffer being full.
Motivation
Test plan
Rollout/monitoring/revert plan
r? @asf-stripe
cc @stripe/observability