Does Tail-based Sampling Sample Logs/Metrics?

Hi All,

Might be a bit of a "dump" question, but I couldn't really find any documentation on it, so wanted to ask and confirm. With APM/OTel there are essentially 3 parts: traces, logs, metrics.

When using tail-based sampling, its "obvious" that it will sample, traces, but what is less obvious is what happens to the logs and metrics. Does tail-based sampling "ignore" these and just pass them through, or does it also sample these parts? The documentation, Transaction sampling | Elastic Observability [8.17] | Elastic, just either calls things transactions/traces, but never makes clear mention of Logs/Metrics.

Hi @BenB196,

Your understanding is correct, tail-based sampling is only applicable for traces. For logs and metrics tail-based sampling will just pass them through without any other action.

1 Like

Thanks @Kostya_Masliuk for the confirmation!