-
I'd like to cut down on the noise and data volume somewhat by excluding certain controller from tracing. I looked through the rack instrumentation and threw in
to no effect. Any best practices or suggestions for this case? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
fbogsany
Mar 8, 2021
Replies: 2 comments 1 reply
-
@treyhyde That should do the trick, what's the rack |
Beta Was this translation helpful? Give feedback.
0 replies
-
OpenTelemetry::SDK.configure do |c|
c.use 'OpenTelemetry::Instrumentation::Rack', { untraced_endpoints: ['probes/ready'] }
end or OpenTelemetry::SDK.configure do |c|
c.use_all { 'OpenTelemetry::Instrumentation::Rack' => { untraced_endpoints: ['probes/ready'] } }
end Two things here:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
treyhyde
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or
Two things here:
c.use
orc.use_all
should be used to set config options for instrumentation rather than setting it directly withOpenTelemetry::Instrumentation::Rack::Instrumentation.instance.config
- the latter will either not install the instrumentation correctly or will clobber its config.