AlwaysOffSampler

zio.blocks.telemetry.AlwaysOffSampler
object AlwaysOffSampler extends Sampler

A sampler that always drops every span.

Attributes

Source
Sampler.scala
Graph
Supertypes
trait Sampler
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def shouldSample(parentContext: Option[SpanContext], traceIdHi: Long, traceIdLo: Long, name: String, kind: SpanKind, attributes: Attributes, links: Seq[SpanLink]): SamplingResult

Determines whether a span should be sampled.

Determines whether a span should be sampled.

Value parameters

attributes

the initial attributes of the span being created

kind

the kind of the span being created

links

the links associated with the span being created

name

the name of the span being created

parentContext

the parent span context, if any

traceIdHi

the high 64 bits of the trace ID

traceIdLo

the low 64 bits of the trace ID

Attributes

Returns

the sampling result

Source
Sampler.scala

Concrete fields

val description: String

Returns a human-readable description of this sampler.

Returns a human-readable description of this sampler.

Attributes

Source
Sampler.scala