sturdyc
sturdyc copied to clipboard
Proposal: pass context to metrics recorder
Hey @viccon ! Thanks for the awesome library! What do you think of this proposal?
Is your feature request related to a problem? Please describe.
When using OTel to collect the metrics, most of its methods require the usage of Golang context.Context. The way the metrics recorder is now, we can't propagate the context to the metrics. Looking at the code, this is easy to change and create a backward compatible result.
Describe the solution you'd like Metrics recorder interface methods with context parameter.
Additional context Happy to help if needed.