-
Notifications
You must be signed in to change notification settings - Fork 246
fix: Handle missing config in middleware when OTEL_SDK_DISABLED=true #2231
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
base: main
Are you sure you want to change the base?
Changes from all commits
779e2bb
8a360fd
97f434c
a5ce8f6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,7 +29,7 @@ def bidi_streamer(requests: nil, call: nil, method: nil, metadata: nil, &) | |
| private | ||
|
|
||
| def call(type:, requests: nil, call: nil, method: nil, metadata: nil) | ||
| return yield if instrumentation_config.empty? | ||
| return yield unless Grpc::Instrumentation.instance.installed? | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This check to see if instrumentation was installed, along with the checks in Is
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @AS-AlStar would you mind sharing more information about your intent here? |
||
|
|
||
| method_parts = method.to_s.split('/') | ||
| service = method_parts[1] | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this is a change to base, I would love some extra eyes here. I noted one downstream impact of checking for empty configs not really being able to exist anymore, since now they wont ever really be.