mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-22 16:25:19 +01:00
don't start OTel traces with Redis spans (#33090)
This commit is contained in:
parent
42f6a36f21
commit
d580607510
1 changed files with 3 additions and 0 deletions
|
@ -54,6 +54,9 @@ if ENV.keys.any? { |name| name.match?(/OTEL_.*_ENDPOINT/) }
|
|||
'OpenTelemetry::Instrumentation::Sidekiq' => {
|
||||
span_naming: :job_class, # Use the job class as the span name, otherwise this is the queue name and not very helpful
|
||||
},
|
||||
'OpenTelemetry::Instrumentation::Redis' => {
|
||||
trace_root_spans: false, # don't start traces with Redis spans
|
||||
},
|
||||
})
|
||||
|
||||
prefix = ENV.fetch('OTEL_SERVICE_NAME_PREFIX', 'mastodon')
|
||||
|
|
Loading…
Reference in a new issue