You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
regulating cache delay option which specifies the amount of time after which the processor starts regulating cache sizes. This can be used to avoid regulating cache sizes on an initial empty cache, as it can cause unnecessary cache size adjustments and high memory usage. More in docs.
Emitting span for not sampled trace. You can now specify on specific policies to emit a single span in place of the trace. This is useful if someone goes searching for a dropped trace in the system, it will tell them why it's dropped because a span appears with the policy.
Copy file name to clipboardExpand all lines: pkg/processor/atlassiansamplingprocessor/README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ The `primary_cache_size` value should be greater than 0, and should be set to a
44
44
`processor_atlassian_sampling_trace_eviction_time` metric to tune how long you would like your traces to stay pending
45
45
in memory before being considered not-sampled.
46
46
47
-
The primary cache size is initially set to 80% of the `primary_cache_size` value.
47
+
The primary cache size is initially set to 60% of the `primary_cache_size` value.
48
48
It is automatically adjusted depending on heap memory usage at runtime, but will not exceed the `primary_cache_size` value.
49
49
50
50
### `secondary_cache_size`
@@ -103,6 +103,9 @@ used as the final decision.
103
103
104
104
Policies include a `name`, `type`, and then further configuration depending on what the `type` was.
105
105
106
+
`emit_single_span_for_not_sampled` is an optional field that can be set to `true` for a policy. If set, the processor will emit a single span for a trace that is not sampled, instead of dropping the trace entirely.
107
+
This span will have the same trace ID as the original trace. The span will have the name `TRACE NOT SAMPLED`, with policy name in its attribute.
108
+
106
109
Current supported policy types are:
107
110
108
111
-`span_count` - samples the trace if it meets a minimum amount of spans.
// RegulateCacheDelay is the amount of time after which the processor starts regulating cache sizes based on the set TargetHeapBytes (if specified).
22
+
// It is optional and defaults to 0s.
23
+
// This can be used to avoid regulating cache sizes on an initial empty cache, as it can cause unnecessary cache size adjustments and high memory usage.
0 commit comments