Skip to content

Enabling New Relic on v5.8.0 causing 'panic: runtime error: invalid memory address or nil pointer dereference' #5801

Answered by taylorsilva
skreddy6673 asked this question in Q&A
Discussion options

You must be logged in to vote

This was fixed in 6.3.0 😄 #5697

I looked at the stack trace again. Between 5.7.0 and 5.8.0 the newrelic emitter was updated to also emit check containers.

When we instantiate the emitter we forgot to instantiate the stat object for checks.

return &NewRelicEmitter{
Client: client,
Url: "https://insights-collector.newrelic.com/v1/accounts/" + config.AccountID + "/events",
apikey: config.APIKey,
prefix: config.ServicePrefix,
containers: new(stats),
volumes: new(stats),
BatchSize: int(config.

Replies: 3 comments 7 replies

Comment options

You must be logged in to vote
7 replies
@taylorsilva
Comment options

@skreddy6673
Comment options

@taylorsilva
Comment options

@skreddy6673
Comment options

@skreddy6673
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by taylorsilva
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants