-
Notifications
You must be signed in to change notification settings - Fork 197
feat: suppress internal spans with Faraday instrumentation #1506
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
feat: suppress internal spans with Faraday instrumentation #1506
Conversation
...mentation/faraday/lib/opentelemetry/instrumentation/faraday/middlewares/tracer_middleware.rb
Show resolved
Hide resolved
instrumentation/faraday/lib/opentelemetry/instrumentation/faraday/instrumentation.rb
Show resolved
Hide resolved
instrumentation/faraday/README.md
Outdated
@@ -19,6 +19,7 @@ To install the instrumentation, call `use` with the name of the instrumentation. | |||
```ruby | |||
OpenTelemetry::SDK.configure do |c| | |||
c.use 'OpenTelemetry::Instrumentation::Faraday' | |||
suppress_internal_instrumentation: true |
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.
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.
Updated.
instrumentation/faraday/README.md
Outdated
c.use 'OpenTelemetry::Instrumentation::Faraday' | ||
enable_internal_instrumentation: false |
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.
Just noticed that this example is incorrect. The options need to be a parameter to use
so there should be a comma here.
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.
Fixed, thanks for catching that
@ezhang6811 if the tests all pass I will merge and you should expect a Release this Tuesday 2025-06-03 |
Addresses #1502 for Faraday library instrumentation. Allow user to set
suppress_internal_instrumentation
flag when configuring Faraday instrumentation to suppress additional client spans generated from underlying Net::Http instrumentation.Before merging, waiting for update on Github issue to see if internal span suppression can be made default behavior for both Faraday and AWS SDK.