trace
zio.blocks.telemetry.trace
object trace
Global tracing entry point. Works without setup — stores spans in memory by default. Call install to wire production exporters.
App code uses this directly. Library code should accept Tracer via DI.
Attributes
- Source
- trace.scala
- Graph
-
- Supertypes
- Self type
-
trace.type
Members list
Value members
Concrete methods
Clears all collected spans from the in-memory processor.
Returns spans collected by the default in-memory processor.
Returns a named Tracer for a specific instrumentation scope.
Replaces the default TracerProvider with a user-configured one.
Remove the installed TracerProvider. After this, spans are no-ops until you install a provider.
Remove the installed TracerProvider. After this, spans are no-ops until you install a provider.
Attributes
- Source
- trace.scala
Creates a span using the default tracer.
Creates a span with explicit kind.
Creates a span with explicit kind and attributes.
In this article