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:
|
axw
left a comment
There was a problem hiding this comment.
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.
can we get rid of the SetContext field now?
tracer.go
Outdated
| logger WarningLogger | ||
| metricsGatherers []MetricsGatherer | ||
| contextSetter stacktrace.ContextSetter | ||
| preContext, postContext int |
There was a problem hiding this comment.
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.
seems like it, removed 🪄
|
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