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
Copy file name to clipboardExpand all lines: solutions/observability/apm/transaction-sampling.md
+2-72Lines changed: 2 additions & 72 deletions
Original file line number
Diff line number
Diff line change
@@ -146,7 +146,7 @@ Due to [OpenTelemetry tail-based sampling limitations](/solutions/observability/
146
146
147
147
Tail-based sampling (TBS), by definition, requires storing events locally temporarily, such that they can be retrieved and forwarded when a sampling decision is made.
148
148
149
-
In an APM Server implementation, the events are stored temporarily on disk instead of in memory for better scalability. Therefore, it requires local disk storage proportional to the APM event ingestion rate and additional memory to facilitate disk reads and writes. If the [storage limit](#sampling-tail-storage_limit) is insufficient, sampling will be bypassed.
149
+
In an APM Server implementation, the events are stored temporarily on disk instead of in memory for better scalability. Therefore, it requires local disk storage proportional to the APM event ingestion rate and additional memory to facilitate disk reads and writes. If the [storage limit](/solutions/observability/apm/tail-based-sampling.md#sampling-tail-storage_limit-ref) is insufficient, sampling will be bypassed.
150
150
151
151
It is recommended to use fast disks, ideally Solid State Drives (SSD) with high I/O per second (IOPS), when enabling tail-based sampling. Disk throughput and I/O may become performance bottlenecks for tail-based sampling and APM event ingestion overall. Disk writes are proportional to the event ingest rate, while disk reads are proportional to both the event ingest rate and the sampling rate.
152
152
@@ -340,74 +340,4 @@ Policies are evaluated **in order** and the first one that meets all match condi
Set to `true` to enable tail based sampling. Disabled by default. (bool)
348
-
349
-
| | |
350
-
| --- | --- |
351
-
| APM Server binary | `sampling.tail.enabled` |
352
-
| Fleet-managed | `Enable tail-based sampling` |
353
-
354
-
##### Interval [sampling-tail-interval]
355
-
356
-
Synchronization interval for multiple APM Servers. Should be in the order of tens of seconds or low minutes. Default: `1m`(1 minute). (duration)
357
-
358
-
| | |
359
-
| --- | --- |
360
-
| APM Server binary | `sampling.tail.interval` |
361
-
| Fleet-managed | `Interval` |
362
-
363
-
##### Policies [sampling-tail-policies]
364
-
365
-
Criteria used to match a root transaction to a sample rate.
366
-
367
-
Policies map trace events to a sample rate. Each policy must specify a sample rate. Trace events are matched to policies in the order specified. All policy conditions must be true for a trace event to match. Each policy list should conclude with a policy that only specifies a sample rate. This final policy is used to catch remaining trace events that don’t match a stricter policy. (`[]policy`)
368
-
369
-
| | |
370
-
| --- | --- |
371
-
| APM Server binary | `sampling.tail.policies` |
372
-
| Fleet-managed | `Policies` |
373
-
374
-
##### Storage limit [sampling-tail-storage_limit]
375
-
376
-
The amount of storage space allocated for trace events matching tail sampling policies. Caution: Setting this limit higher than the allowed space may cause APM Server to become unhealthy.
377
-
378
-
A value of `0GB` (or equivalent) does not set a concrete limit, but rather allows the APM Server to align its disk usage with the disk size. APM server uses up to 80% of the disk size limit on the disk where the local tail-based sampling database is located. The last 20% of disk will not be used by APM Server. It is the recommended value as it automatically scales with the disk size.
379
-
380
-
If this is not desired, a concrete `GB` value can be set for the maximum amount of disk used for tail-based sampling.
381
-
382
-
If the configured storage limit is insufficient, it logs "configured limit reached". The event will bypass sampling and will always be indexed when storage limit is reached.
383
-
384
-
Default: `0GB`. (text)
385
-
386
-
| | |
387
-
| --- | --- |
388
-
| APM Server binary | `sampling.tail.storage_limit` |
The sample rate to apply to trace events matching this policy. Required in each policy.
396
-
397
-
The sample rate must be greater than or equal to `0` and less than or equal to `1`. For example, a `sample_rate` of `0.01` means that 1% of trace events matching the policy will be sampled. A `sample_rate` of `1` means that 100% of trace events matching the policy will be sampled. (int)
398
-
399
-
##### **`trace.name`** [sampling-tail-trace-name]
400
-
401
-
The trace name for events to match a policy. A match occurs when the configured `trace.name` matches the `transaction.name` of the root transaction of a trace. A root transaction is any transaction without a `parent.id`. (string)
The trace outcome for events to match a policy. A match occurs when the configured `trace.outcome` matches a trace’s `event.outcome` field. Trace outcome can be `success`, `failure`, or `unknown`. (string)
0 commit comments