Tracer

zio.blocks.telemetry.Tracer
final class Tracer

Creates spans within a single instrumentation scope.

A tracer consults the configured sampler, manages parent context propagation, and notifies registered span processors as spans start and end.

Attributes

Source
Tracer.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def currentSpan: Option[SpanContext]

Returns the currently active span context, if one is bound.

Returns the currently active span context, if one is bound.

Attributes

Source
Tracer.scala
def span[A](name: String)(f: Span => A): A

Creates an internal span around the supplied block.

Creates an internal span around the supplied block.

Attributes

Source
Tracer.scala
def span[A](name: String, kind: SpanKind)(f: Span => A): A

Creates a span of the specified kind around the supplied block.

Creates a span of the specified kind around the supplied block.

Attributes

Source
Tracer.scala
def span[A](name: String, kind: SpanKind, attributes: Attributes)(f: Span => A): A

Creates a span of the specified kind and attributes around the supplied block.

Creates a span of the specified kind and attributes around the supplied block.

Attributes

Source
Tracer.scala
def spanBuilder(name: String): SpanBuilder

Returns a builder for creating manually managed spans.

Returns a builder for creating manually managed spans.

Attributes

Source
Tracer.scala

Concrete fields

Attributes

Source
Tracer.scala