setSampler

fun setSampler(sampler: Sampler)(source)

Sets the sampler to be used by the OpenTelemetry configuration. The sampler determines which spans are sampled and exported during application execution.

Parameters

sampler

The sampler instance to set for the OpenTelemetry configuration.