Skip to content
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

Redis Cluster causes instrumentation error #2814

Closed
jdelStrother opened this issue Aug 15, 2024 · 3 comments · Fixed by #2816
Closed

Redis Cluster causes instrumentation error #2814

jdelStrother opened this issue Aug 15, 2024 · 3 comments · Fixed by #2816
Assignees
Labels
bug community To tag external issues and PRs submitted by the community

Comments

@jdelStrother
Copy link
Contributor

Description

I noticed this in my newrelic_agent.log:

[2024-08-15 14:11:05 +0000 app1-1 (690412)] ERROR : Error while installing redis_instrumentation instrumentation:
[2024-08-15 14:11:05 +0000 app1-1 (690412)] ERROR : LocalJumpError: unexpected return

I'm guessing this is due to the return here -

executes do
NewRelic::Agent.logger.info('Installing Redis Instrumentation')
if NewRelic::Agent::Instrumentation::Redis::Constants::HAS_REDIS_CLIENT
RedisClient.register(NewRelic::Agent::Instrumentation::RedisClient::Middleware)
if defined?(Redis::Cluster::Client)
return RedisClient.register(NewRelic::Agent::Instrumentation::RedisClient::ClusterMiddleware)
end
end
if use_prepend?
prepend_instrument Redis::Client, NewRelic::Agent::Instrumentation::Redis::Prepend
else
chain_instrument NewRelic::Agent::Instrumentation::Redis::Chain
end
end
end

which is invalid outside of a method

@workato-integration
Copy link

@github-actions github-actions bot added the community To tag external issues and PRs submitted by the community label Aug 15, 2024
@fallwith
Copy link
Contributor

Hi @jdelStrother. Thanks very much for the report and hypothesized synopsis which seems spot on to me. We'll take a look.

@fallwith
Copy link
Contributor

Hi @jdelStrother. A fix for this bug has hit our dev branch and will be available in the next agent release. Thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug community To tag external issues and PRs submitted by the community
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants