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

add code-level metric options to nrlambda integration

Open rittneje opened this issue 2 years ago • 0 comments

Currently the nrlambda integration directly calls StartTransaction and does not pass any TraceOptions.

https://github.com/newrelic/go-agent/blob/5421539b6c7c5d481958236cf247759eff0700ad/v3/integrations/nrlambda/handler.go#L102

I think nrlambda.WrapHandlerand 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.

rittneje avatar Aug 25 '22 00:08 rittneje