go-safeweb icon indicating copy to clipboard operation
go-safeweb copied to clipboard

collector plugin should pass request context

Open ribrdb opened this issue 1 year ago • 0 comments

Expected Behavior

The collector plugin should pass the IncomingRequest or at least the context.Context to the report handlers.

For example, if I want to log the report I need the context so that I can get to the FlightData from my logging interceptor.

Or maybe I have dynamic report-to urls. E.g, I want to embed the release version into the url so I know which version of the app triggered the report. Then I need some way to get the URL of the incoming request.

ribrdb avatar Dec 27 '23 18:12 ribrdb