From 4ab233455463f65a3c53485711e838b2a647e062 Mon Sep 17 00:00:00 2001 From: Mateusz Lach Date: Tue, 25 Nov 2025 09:16:31 +0100 Subject: [PATCH] update docs related to frequent sampling --- docs/internal/selective-sampling.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/internal/selective-sampling.md b/docs/internal/selective-sampling.md index 81c9300a6d..517e82d496 100644 --- a/docs/internal/selective-sampling.md +++ b/docs/internal/selective-sampling.md @@ -12,12 +12,12 @@ the span context will be sampled, until span is deselected. Span can be selected for frequent sampling by calling: ```csharp -SelectiveSamplingStart(Activity activity) +SelectiveSamplingStart(ActivityTraceId traceId) ``` Span is removed from selection by calling: ```csharp -SelectiveSamplingStop(Activity activity) +SelectiveSamplingStop(ActivityTraceId traceId) ``` You can enable frequent sampling using the custom plugin, which @@ -64,6 +64,8 @@ for sample implementation of plugin. ## Limits +- Instrumentation can't guarantee that configured sampling period will always be respected +(timestamps encoded in samples buffer mark points in time when samples were collected). - Spans selected for frequent sampling more than 15 minutes in the past will be considered stale and will be automatically deselected. - Number of spans selected for frequent sampling is limited to 50 at a time.