newrelic / go-agent

New Relic Go Agent
Apache License 2.0
759 stars 297 forks source link

potential bug in newAppRun #918

Closed rittneje closed 6 days ago

rittneje commented 1 month ago

I came across the following code while trying to diagnose an oddity we are seeing with "expected status codes".

https://github.com/newrelic/go-agent/blob/424d17590487f6633a2edd5fc272737e46355900/v3/newrelic/app_run.go#L102-L108

Should that instead say run.Config.ErrorCollector.ExpectStatusCodes != nil?

iamemilio commented 1 month ago

Seems like a likely bug, we will make a ticket for it.

mirackara commented 6 days ago

Released fix with #924. Closing this out for now!