-
Notifications
You must be signed in to change notification settings - Fork 197
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
remove stacktrace.ContextSetter #1187
remove stacktrace.ContextSetter #1187
Conversation
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
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.
Thanks, looks good. I think there might be a few more related things we can get rid of.
if w.cfg.logger != nil { | ||
w.cfg.logger.Debugf("setting context failed: %v", err) | ||
} | ||
w.stats.Errors.SetContext++ |
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 we get rid of the SetContext field now?
tracer.go
Outdated
@@ -525,7 +524,6 @@ type tracerConfig struct { | |||
metricsInterval time.Duration | |||
logger WarningLogger | |||
metricsGatherers []MetricsGatherer | |||
contextSetter stacktrace.ContextSetter | |||
preContext, postContext int |
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.
Do we still need preContext/postContext? I think we can get rid of all related config and env vars?
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.
seems like it, removed 🪄
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.
🎉 LGTM!
I didn't see any additional environment variables, but I cleaned up the pre/post context stuff, and code related to Errors.SetContext |
@axw anything you think we should test for this? Nothing comes to my mind, so I'd skip manual testing on this one. |
Nope, nothing to test here, we just took away an API. |
closes #646