Filtering logs if their parent trace was not sampled #37707
Unanswered
sfields-metabolon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've set up my OpenTelemetry collector to use tail sampling and not sample traces coming from my health check endpoint (since they can get quite noisy) so long as there isn't an error. If there is an error during the health check, I will sample those traces since they may be useful.
However, now I've got a bunch of logs from those health checks that reference a trace that was not sampled and effectively doesn't exist. How are other people handling this?
Ideally, I'd like for the logs to be filtered out if their trace was not sampled but remain if the trace was sampled so that all the relevant data is available. Is there some way to do that?
Beta Was this translation helpful? Give feedback.
All reactions