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

Bad profiler can bubble exception to the caller of redis commands #2684

Closed
jdivy opened this issue Mar 28, 2024 · 2 comments
Closed

Bad profiler can bubble exception to the caller of redis commands #2684

jdivy opened this issue Mar 28, 2024 · 2 comments

Comments

@jdivy
Copy link

jdivy commented Mar 28, 2024

This might be a quick 'not our issue' ticket to close... but I recently discovered that by adding a profiler (thankfully not in production just yet) I was opening myself up to exceptions thrown by the profiler. I don't have the exact stack trace in hand any more but it was in a call to .Subscribe() on the multiplexer, making its way down to the profiling session .Invoke() call (link below).

Thought it worth asking the question "should a naughty profiler have any bearing on an otherwise perfectly good Redis command". I'm awaiting this fix in APM but I'm also now scared for future me when updating nuget...

elastic/apm-agent-dotnet#2292
 

var profilingSession = _profilingSessionProvider?.Invoke();

@NickCraver
Copy link
Collaborator

I'm trying to understand the question - are you saying the .Invoke() from a profiler is throwing internally? If so: yeah I'd say that's a profiler issue and not something we'd try/catch everywhere to prevent bad behavior on.

@jdivy
Copy link
Author

jdivy commented Mar 31, 2024

Yep, that was basically the question - wasn't sure how extensive the use of the profiler .Invoke() was in the codebase so figured I'd ask to give you something to think about other than 'Timeout' tickets for a few minutes ;)

@jdivy jdivy closed this as completed Mar 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants