go-agent
go-agent copied to clipboard
add code-level metric options to nrlambda integration
Currently the nrlambda integration directly calls StartTransaction
and does not pass any TraceOption
s.
https://github.com/newrelic/go-agent/blob/5421539b6c7c5d481958236cf247759eff0700ad/v3/integrations/nrlambda/handler.go#L102
I think nrlambda.WrapHandler
and nrlambda.Wrap
need to be amended to accept them, just like newrelic.WrapHandle
does. Similarly, it should use the file name and line number of the real handler function/method by default.
As part of this, the go.mod file for nrlambda will need to updated with the new minimum version requirement of the "core" agent.