sturdyc icon indicating copy to clipboard operation
sturdyc copied to clipboard

Proposal: pass context to metrics recorder

Open victoraugustolls opened this issue 3 months ago • 0 comments

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.

victoraugustolls avatar Nov 06 '25 17:11 victoraugustolls