-
Notifications
You must be signed in to change notification settings - Fork 301
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"nil dereference" when using DAX #287
Comments
Please let me know if there is any additional information you need. Thank you. |
Hi @odannyc , thanks for your patience here! You're on the short list of support issues for us to get back to, and we'll be taking a look at this soon. |
After some review, we've decided to check for a nil value here and skip adding the AWS Request ID span attribute if there's no response. PR forthcoming! |
Hi @RichVanderwal , I have a PR open for this issue here: |
Hello @odannyc ! We've included your PR in the maintenance release of the Go Agent today. Let us know if you have any feedback, questions, or comments! |
Description
When using DAX to query a dynamodb table and instrumenting the request with newrelic, I get a nil reference panic on this line:
https://github.com/newrelic/go-agent/blob/master/_integrations/nrawssdk/v1/nrawssdk.go#L28
I stepped/debugged through a request and it looks like
HTTPResponse
is nil for DAX requests.Steps to Reproduce
nrawssdk.InstrumentHandlers(&req.Handlers)
Expected Behavior
Request sends without error and I see the trace in New Relic
NR Diag results
panic!
Your Environment
Reproduction case
Additional context
The text was updated successfully, but these errors were encountered: