Skip to content

otel: add sampling but respect ShouldTrace

Administrator requested to merge jh/otel-sample into main

Created by: jhchabran

Right now our trace policy is only really respected for search - if you choose sampling: selective, background jobs will still emit tons of traces. This PR changes that by enabling sampling unless explicitly requested to trace.

Test plan

CI.

Merge request reports

Loading