Electric.Telemetry.Sampler (electric v1.2.4)

View Source

Decides which spans should be included and how often.

This deviates from the standard way to OpenTelemetry sampling by sampling as the spans are created. This is done to avoid the overhead of creating spans that will not be recorded.

Child spans of a sampled span should use OpenTelemetry.with_child_span/4 to ensure that they are only sampled if the parent span is sampled.

Summary

Functions

include_span?(arg1)

sample_metrics?()