zio.blocks.telemetry
Members list
Packages
Type members
Classlikes
A sampler that always drops every span.
A sampler that always drops every span.
Attributes
- Source
- Sampler.scala
- Supertypes
- Self type
-
AlwaysOffSampler.type
A sampler that always records and samples every span.
A sampler that always records and samples every span.
Attributes
- Source
- Sampler.scala
- Supertypes
- Self type
-
AlwaysOnSampler.type
Type-safe key for attribute storage. Each key is bound to a specific value type A.
Type-safe key for attribute storage. Each key is bound to a specific value type A.
AttributeKey instances are created via factory methods on the companion object, which enforce type consistency between key and value.
Type parameters
- A
-
The type of values this key maps to
Attributes
- Companion
- object
- Source
- AttributeKey.scala
- Supertypes
Attributes
- Companion
- trait
- Source
- AttributeKey.scala
- Supertypes
- Self type
-
AttributeKey.type
Discriminator for AttributeKey type safety. Determines the expected value type for an attribute.
Discriminator for AttributeKey type safety. Determines the expected value type for an attribute.
Attributes
- Companion
- object
- Source
- AttributeType.scala
- Supertypes
- Known subtypes
-
object BooleanSeqTypeobject BooleanTypeobject DoubleSeqTypeobject DoubleTypeobject LongSeqTypeobject LongTypeobject StringSeqTypeobject StringTypeShow all
Attributes
- Companion
- trait
- Source
- AttributeType.scala
- Supertypes
- Self type
-
AttributeType.type
Represents the value of an attribute. Each variant corresponds to an AttributeType discriminator.
Represents the value of an attribute. Each variant corresponds to an AttributeType discriminator.
This sealed ADT mirrors OpenTelemetry's AnyValue protobuf message, which supports strings, booleans, 64-bit integers, doubles, and arrays of these types.
Attributes
- Companion
- object
- Source
- AttributeValue.scala
- Supertypes
- Known subtypes
-
class BooleanSeqValueclass BooleanValueclass DoubleSeqValueclass DoubleValueclass LongSeqValueclass LongValueclass StringSeqValueclass StringValueShow all
Attributes
- Companion
- trait
- Source
- AttributeValue.scala
- Supertypes
- Self type
-
AttributeValue.type
Zero-allocation visitor for iterating over Attributes without boxing primitives.
Zero-allocation visitor for iterating over Attributes without boxing primitives.
Each visit* method is called with the raw unboxed value. Seq variants have default no-op implementations since they are rare.
Attributes
- Source
- AttributeVisitor.scala
- Supertypes
Attributes
- Companion
- class
- Source
- Attributes.scala
- Supertypes
- Self type
-
Attributes.type
An immutable collection of typed key-value attribute pairs.
An immutable collection of typed key-value attribute pairs.
Backed by parallel arrays with dual-slot storage: primitive values (Long, Double, Boolean) are stored unboxed in a Long array, while String values use a separate String array. A Byte type discriminator array selects the slot. Seq values use a separate AnyRef array for rare cases.
This design eliminates AttributeValue boxing for the common primitive cases, reducing GC pressure on hot paths.
Attributes
- Companion
- object
- Source
- Attributes.scala
- Supertypes
Attributes
- Source
- Counter.scala
- Supertypes
Attributes
- Source
- Gauge.scala
- Supertypes
Attributes
- Source
- Histogram.scala
- Supertypes
Attributes
- Source
- UpDownCounter.scala
- Supertypes
This object was generated by sbt-buildinfo.
This object was generated by sbt-buildinfo.
Attributes
- Source
- BuildInfo.scala
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
- Self type
-
BuildInfo.type
Console log processor — triggers the fast ConsoleLogEmitter in Logger. Uses a format that writes directly from raw values, bypassing LogRecord. Format: "2026-03-31T17:30:00.123Z INFO [MyClass.method:42] message {key=val}"
Console log processor — triggers the fast ConsoleLogEmitter in Logger. Uses a format that writes directly from raw values, bypassing LogRecord. Format: "2026-03-31T17:30:00.123Z INFO [MyClass.method:42] message {key=val}"
When a LogRecord is passed via emit() (e.g. via bridges/adapters), delegates to StdoutLogRecordProcessor to ensure full formatting with attributes and stacktrace.
Attributes
- Source
- ConsoleLogRecordProcessor.scala
- Supertypes
Attributes
- Companion
- trait
- Source
- ContextStorage.scala
- Supertypes
- Self type
-
ContextStorage.type
Scoped context storage for propagating values through call stacks.
Scoped context storage for propagating values through call stacks.
Only two operations:
- get(): read the current value
- scoped(): run a block with a different value, automatically restored after
No set() — context is immutable outside scoped blocks. This aligns with JDK 25's ScopedValue semantics and prevents context leaks.
Attributes
- See also
-
docs/adr/0001-scoped-context-no-set.md
- Companion
- object
- Source
- ContextStorage.scala
- Supertypes
Attributes
- Companion
- object
- Source
- Counter.scala
- Supertypes
Attributes
- Companion
- class
- Source
- Counter.scala
- Supertypes
- Self type
-
Counter.type
Builder for Counter instruments.
Attributes
- Companion
- class
- Source
- Gauge.scala
- Supertypes
- Self type
-
Gauge.type
Attributes
- Companion
- object
- Source
- Gauge.scala
- Supertypes
Builder for Gauge instruments.
A data point for gauge metrics.
A data point for gauge metrics.
Value parameters
- attributes
-
attributes identifying this time series
- timeNanos
-
epoch nanoseconds when this value was observed
- value
-
the current gauge value
Attributes
- Source
- MetricData.scala
- Supertypes
Attributes
- Companion
- object
- Source
- Histogram.scala
- Supertypes
Attributes
- Companion
- class
- Source
- Histogram.scala
- Supertypes
- Self type
-
Histogram.type
Builder for Histogram instruments.
A data point for histogram metrics.
A data point for histogram metrics.
Value parameters
- attributes
-
attributes identifying this time series
- boundaries
-
upper exclusive boundaries for each bucket
- bucketCounts
-
counts for each bucket (length = boundaries.length + 1)
- count
-
total number of recorded values
- max
-
maximum recorded value
- min
-
minimum recorded value
- startTimeNanos
-
epoch nanoseconds when the aggregation period started
- sum
-
sum of all recorded values
- timeNanos
-
epoch nanoseconds when this snapshot was taken
Attributes
- Source
- MetricData.scala
- Supertypes
Identifies the library/component that produced telemetry.
Identifies the library/component that produced telemetry.
An InstrumentationScope represents a logical grouping of telemetry signals from a specific library or instrumentation. It typically includes the library name and optional version information.
Attributes
- Source
- InstrumentationScope.scala
- Supertypes
JSON format compatible with OTLP log data model: {"timeUnixNano":...,"severityNumber":...,"severityText":"INFO","body":{"stringValue":"message"},"attributes":[...]}
JSON format compatible with OTLP log data model: {"timeUnixNano":...,"severityNumber":...,"severityText":"INFO","body":{"stringValue":"message"},"attributes":[...]}
Attributes
- Source
- LogFormatter.scala
- Supertypes
- Self type
-
JsonLogFormatter.type
A counter with pre-declared label names. Label values are validated at runtime to match the expected arity.
A counter with pre-declared label names. Label values are validated at runtime to match the expected arity.
Value parameters
- counter
-
the underlying counter instrument
- labelNames
-
the declared label names, in order
Attributes
- Source
- LabeledInstruments.scala
- Supertypes
A gauge with pre-declared label names. Label values are validated at runtime to match the expected arity.
A gauge with pre-declared label names. Label values are validated at runtime to match the expected arity.
Value parameters
- gauge
-
the underlying gauge instrument
- labelNames
-
the declared label names, in order
Attributes
- Source
- LabeledInstruments.scala
- Supertypes
A histogram with pre-declared label names. Label values are validated at runtime to match the expected arity.
A histogram with pre-declared label names. Label values are validated at runtime to match the expected arity.
Value parameters
- histogram
-
the underlying histogram instrument
- labelNames
-
the declared label names, in order
Attributes
- Source
- LabeledInstruments.scala
- Supertypes
Attributes
- Companion
- object
- Source
- LogEnrichment.scala
- Supertypes
Attributes
- Companion
- trait
- Source
- LogEnrichment.scala
- Supertypes
- Self type
-
LogEnrichment.type
Stateless log formatter. Appends formatted output to a StringBuilder. Formatters are singletons — no per-instance state, zero allocation. The StringBuilder is owned and pooled by the emitter.
Stateless log formatter. Appends formatted output to a StringBuilder. Formatters are singletons — no per-instance state, zero allocation. The StringBuilder is owned and pooled by the emitter.
Attributes
- Source
- LogFormatter.scala
- Supertypes
- Known subtypes
-
object JsonLogFormatterobject TextLogFormatter
Log message body — either a simple string or a structured template. Structured templates defer string construction until formatting.
Log message body — either a simple string or a structured template. Structured templates defer string construction until formatting.
Attributes
- Companion
- object
- Source
- LogRecord.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Source
- LogRecord.scala
- Supertypes
- Self type
-
LogMessage.type
Represents an immutable log record with trace correlation support.
Represents an immutable log record with trace correlation support.
A LogRecord contains a log message, its severity level, timing information, and optional trace context for distributed tracing correlation. Trace fields use primitive sentinel values (0 = absent) instead of Option wrappers for zero allocation on the logging hot path.
Value parameters
- attributes
-
Additional attributes/metadata associated with the log record
- body
-
The log message body
- instrumentationScope
-
The instrumentation scope (library/tool) that generated this log record
- observedTimestampNanos
-
The time when the event was observed/recorded, in nanoseconds since Unix epoch
- resource
-
The resource that generated this log record
- severity
-
The severity level of the log record
- severityText
-
The text representation of the severity level
- spanId
-
Span ID as Long (0 means absent)
- throwable
-
Optional throwable whose stack trace is deferred to export time
- timestampNanos
-
The time when the event occurred, in nanoseconds since Unix epoch
- traceFlags
-
Trace flags as Byte (0 means none/absent)
- traceIdHi
-
High 64 bits of trace ID (0 with traceIdLo == 0 means absent)
- traceIdLo
-
Low 64 bits of trace ID (0 with traceIdHi == 0 means absent)
Attributes
- Companion
- object
- Source
- LogRecord.scala
- Supertypes
Attributes
- Companion
- class
- Source
- LogRecord.scala
- Supertypes
- Self type
-
LogRecord.type
Immutable builder for constructing LogRecord instances with fluent API.
Immutable builder for constructing LogRecord instances with fluent API.
The builder provides sensible defaults for all fields:
- timestamps default to current system time in nanoseconds
- severity defaults to Info
- severityText defaults to "INFO"
- body defaults to empty string
- attributes defaults to empty Attributes
- trace fields default to 0 (absent)
- resource defaults to Resource.empty
- instrumentationScope defaults to InstrumentationScope with name "unknown"
Attributes
- Source
- LogRecord.scala
- Supertypes
Attributes
- Companion
- object
- Source
- LogRecordProcessor.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Source
- LogRecordProcessor.scala
- Supertypes
- Self type
-
LogRecordProcessor.type
Attributes
- Companion
- class
- Source
- GlobalLogState.scala
- Supertypes
- Self type
-
LogState.type
Attributes
- Companion
- object
- Source
- GlobalLogState.scala
- Supertypes
Writes formatted log output to a destination.
Writes formatted log output to a destination.
Attributes
- Source
- LogWriter.scala
- Supertypes
- Known subtypes
Attributes
- Source
- Logger.scala
- Supertypes
Attributes
- Companion
- class
- Source
- LoggerProvider.scala
- Supertypes
- Self type
-
LoggerProvider.type
Attributes
- Companion
- object
- Source
- LoggerProvider.scala
- Supertypes
Attributes
- Source
- LoggerProvider.scala
- Supertypes
A single measurement observation with a value and associated attributes.
A single measurement observation with a value and associated attributes.
Value parameters
- attributes
-
attributes describing the measurement context
- value
-
the measured value
Attributes
- Source
- MetricData.scala
- Supertypes
A Meter creates and manages metric instruments for a given InstrumentationScope. All instruments created through a Meter are registered internally so the MetricReader can collect from them.
A Meter creates and manages metric instruments for a given InstrumentationScope. All instruments created through a Meter are registered internally so the MetricReader can collect from them.
Value parameters
- instrumentationScope
-
the scope identifying the instrumentation library
Attributes
- Source
- Meter.scala
- Supertypes
Provides Meter instances keyed by instrumentation scope. A MeterProvider creates a shared MeterRegistry and MetricReader that collects from all meters.
Provides Meter instances keyed by instrumentation scope. A MeterProvider creates a shared MeterRegistry and MetricReader that collects from all meters.
Value parameters
- resource
-
the resource describing the entity producing telemetry
Attributes
- Companion
- object
- Source
- MeterProvider.scala
- Supertypes
Attributes
- Companion
- class
- Source
- MeterProvider.scala
- Supertypes
- Self type
-
MeterProvider.type
Builder for MeterProvider.
Attributes
- Companion
- trait
- Source
- MetricData.scala
- Supertypes
- Self type
-
MetricData.type
Aggregated metric data collected from an instrument. Each variant holds a list of data points, one per unique attribute set observed.
Aggregated metric data collected from an instrument. Each variant holds a list of data points, one per unique attribute set observed.
Attributes
- Companion
- object
- Source
- MetricData.scala
- Supertypes
- Known subtypes
Reads and collects metric data from all registered instruments.
Reads and collects metric data from all registered instruments.
Attributes
- Source
- MetricReader.scala
- Supertypes
- Known subtypes
-
class MetricReaderImpl
Default MetricReader implementation backed by a MeterProvider's meter registry.
Default MetricReader implementation backed by a MeterProvider's meter registry.
Attributes
- Source
- MetricReader.scala
- Supertypes
Discards output. For benchmarking the formatting path.
Discards output. For benchmarking the formatting path.
Attributes
- Source
- LogWriter.scala
- Supertypes
- Self type
-
NoopWriter.type
Callback used by asynchronous instruments to publish observed values during a collection cycle.
Callback used by asynchronous instruments to publish observed values during a collection cycle.
Attributes
- Source
- ObservableCallback.scala
- Supertypes
Attributes
- Companion
- class
- Source
- ObservableCounter.scala
- Supertypes
- Self type
-
ObservableCounter.type
Attributes
- Companion
- object
- Source
- ObservableCounter.scala
- Supertypes
Attributes
- Companion
- class
- Source
- ObservableGauge.scala
- Supertypes
- Self type
-
ObservableGauge.type
Attributes
- Companion
- object
- Source
- ObservableGauge.scala
- Supertypes
Attributes
- Companion
- object
- Source
- ObservableUpDownCounter.scala
- Supertypes
Attributes
- Companion
- class
- Source
- ObservableUpDownCounter.scala
- Supertypes
- Self type
A sampler that delegates to the parent span's sampling decision.
A sampler that delegates to the parent span's sampling decision.
If no parent exists, delegates to the provided root sampler. If a parent exists, the decision follows the parent's sampled flag.
Value parameters
- root
-
the sampler to use when there is no parent span
Attributes
- Source
- Sampler.scala
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait Samplerclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Source
- PlatformExecutor.scala
- Supertypes
Attributes
- Companion
- class
- Source
- PlatformExecutor.scala
- Supertypes
- Self type
-
PlatformExecutor.type
Describes the entity producing telemetry (service, container, host, etc.).
Describes the entity producing telemetry (service, container, host, etc.).
Resources are immutable wrappers around Attributes that identify the application/service generating the telemetry data. A Resource typically includes semantic attributes like service.name, service.version, and deployment environment.
Attributes
- Companion
- object
- Source
- Resource.scala
- Supertypes
Attributes
- Companion
- class
- Source
- Resource.scala
- Supertypes
- Self type
-
Resource.type
A sampler decides whether a span should be recorded and/or sampled.
A sampler decides whether a span should be recorded and/or sampled.
Samplers are invoked during span creation to determine the sampling decision for the new span.
Attributes
- Source
- Sampler.scala
- Supertypes
- Known subtypes
Represents a sampling decision made by a Sampler.
Represents a sampling decision made by a Sampler.
Attributes
- Companion
- object
- Source
- Sampler.scala
- Supertypes
- Known subtypes
Attributes
- Companion
- trait
- Source
- Sampler.scala
- Supertypes
- Self type
-
SamplingDecision.type
The result of a sampling decision, including the decision itself, any additional attributes to add to the span, and the trace state.
The result of a sampling decision, including the decision itself, any additional attributes to add to the span, and the trace state.
Value parameters
- attributes
-
additional attributes to add to the span
- decision
-
the sampling decision
- traceState
-
the trace state string to propagate
Attributes
- Source
- Sampler.scala
- Supertypes
Represents the severity/log level of a log record with 24 levels grouped in 6 categories: Trace (1-4), Debug (5-8), Info (9-12), Warn (13-16), Error (17-20), Fatal (21-24).
Represents the severity/log level of a log record with 24 levels grouped in 6 categories: Trace (1-4), Debug (5-8), Info (9-12), Warn (13-16), Error (17-20), Fatal (21-24).
Each severity level has a numeric value and a text representation.
Attributes
- Companion
- object
- Source
- Severity.scala
- Supertypes
- Known subtypes
-
object Debugobject Debug2object Debug3object Debug4object Errorobject Error2object Error3object Error4object Fatalobject Fatal2object Fatal3object Fatal4object Infoobject Info2object Info3object Info4object Traceobject Trace2object Trace3object Trace4object Warnobject Warn2object Warn3object Warn4Show all
Attributes
- Companion
- trait
- Source
- Severity.scala
- Supertypes
- Self type
-
Severity.type
Attributes
- Source
- SourceLocation.scala
- Supertypes
A mutable, thread-safe span representing a unit of work in a trace.
A mutable, thread-safe span representing a unit of work in a trace.
Spans are created via SpanBuilder and track attributes, events, and status throughout their lifetime. Once end() is called, the span stops recording and all mutating methods become no-ops.
Attributes
- Companion
- object
- Source
- Span.scala
- Supertypes
- Known subtypes
-
object NoOp
Attributes
- Companion
- trait
- Source
- Span.scala
- Supertypes
- Self type
-
Span.type
Attributes
- Companion
- class
- Source
- SpanBuilder.scala
- Supertypes
- Self type
-
SpanBuilder.type
Fluent builder for creating spans.
Fluent builder for creating spans.
Configured via chained method calls, then startSpan() creates the recording span. The builder creates a new SpanId and inherits the TraceId from the parent context (or generates a new one for root spans).
Attributes
- Companion
- object
- Source
- SpanBuilder.scala
- Supertypes
Attributes
- Companion
- class
- Source
- SpanContext.scala
- Supertypes
- Self type
-
SpanContext.type
Represents an OpenTelemetry SpanContext - the propagatable part of a span.
Represents an OpenTelemetry SpanContext - the propagatable part of a span.
The trace ID is inlined as two Long fields (traceIdHi, traceIdLo) for zero heap allocation. SpanId and TraceFlags are AnyVal types, also zero-alloc.
Value parameters
- isRemote
-
whether this context originates from a remote parent
- spanId
-
the span identifier
- traceFlags
-
the trace flags (sampled flag, etc.)
- traceIdHi
-
the high 64 bits of the trace identifier
- traceIdLo
-
the low 64 bits of the trace identifier
- traceState
-
the trace state string (vendor-specific tracing headers)
Attributes
- Companion
- object
- Source
- SpanContext.scala
- Supertypes
Immutable snapshot of span data for export.
Immutable snapshot of span data for export.
Created by calling toSpanData on a Span. Contains all information collected during the span's lifetime.
Value parameters
- attributes
-
attributes set on the span
- endTimeNanos
-
epoch nanoseconds when the span ended
- events
-
events recorded during the span
- instrumentationScope
-
the instrumentation scope that created this span
- kind
-
the span kind
- links
-
links to other spans
- name
-
the span name
- parentSpanContext
-
the parent span's context (invalid if root span)
- resource
-
the resource producing this span
- spanContext
-
the span's own context
- startTimeNanos
-
epoch nanoseconds when the span started
- status
-
the span's completion status
Attributes
- Source
- SpanData.scala
- Supertypes
An event associated with a span, capturing a point-in-time occurrence.
An event associated with a span, capturing a point-in-time occurrence.
Value parameters
- attributes
-
attributes associated with this event
- name
-
human-readable name of the event
- timestampNanos
-
epoch nanoseconds when the event occurred
Attributes
- Source
- SpanData.scala
- Supertypes
Represents an OpenTelemetry SpanId - a 64-bit identifier for a span.
Represents an OpenTelemetry SpanId - a 64-bit identifier for a span.
Implemented as an AnyVal for zero heap allocation when used as a field in a case class.
Value parameters
- value
-
the span ID as a 64-bit long
Attributes
- Companion
- object
- Source
- SpanId.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
Attributes
- Companion
- class
- Source
- SpanId.scala
- Supertypes
- Self type
-
SpanId.type
Attributes
- Companion
- trait
- Source
- SpanKind.scala
- Supertypes
- Self type
-
SpanKind.type
Represents the kind of span - distinguishes the type of span based on its relationship in a trace.
Represents the kind of span - distinguishes the type of span based on its relationship in a trace.
Follows OpenTelemetry span kind specification.
Attributes
- Companion
- object
- Source
- SpanKind.scala
- Supertypes
- Known subtypes
A link to another span, used to represent causal relationships across traces.
A link to another span, used to represent causal relationships across traces.
Value parameters
- attributes
-
attributes associated with this link
- spanContext
-
the context of the linked span
Attributes
- Source
- SpanData.scala
- Supertypes
Receives span lifecycle events from a Tracer.
Receives span lifecycle events from a Tracer.
Processors can export spans, buffer them, or perform in-memory inspection.
Attributes
- Companion
- object
- Source
- SpanProcessor.scala
- Supertypes
Attributes
- Companion
- trait
- Source
- SpanProcessor.scala
- Supertypes
- Self type
-
SpanProcessor.type
Attributes
- Companion
- trait
- Source
- SpanStatus.scala
- Supertypes
- Self type
-
SpanStatus.type
Writes to System.err (stderr).
Writes to System.err (stderr).
Attributes
- Source
- LogWriter.scala
- Supertypes
- Self type
-
StderrWriter.type
Writes to System.out (stdout).
Writes to System.out (stdout).
Attributes
- Source
- LogWriter.scala
- Supertypes
- Self type
-
StdoutWriter.type
A data point for sum-based metrics (Counter, UpDownCounter).
A data point for sum-based metrics (Counter, UpDownCounter).
Value parameters
- attributes
-
attributes identifying this time series
- startTimeNanos
-
epoch nanoseconds when the aggregation period started
- timeNanos
-
epoch nanoseconds when this snapshot was taken
- value
-
the aggregated sum value
Attributes
- Source
- MetricData.scala
- Supertypes
Human-readable text format: "2026-03-31T17:30:00.123Z INFO [MyClass.method:42] message {key=val}"
Human-readable text format: "2026-03-31T17:30:00.123Z INFO [MyClass.method:42] message {key=val}"
Attributes
- Source
- LogFormatter.scala
- Supertypes
- Self type
-
TextLogFormatter.type
Attributes
- Companion
- class
- Source
- TraceFlags.scala
- Supertypes
- Self type
-
TraceFlags.type
Represents OpenTelemetry trace flags - a single byte where bit 0 represents the sampled flag.
Represents OpenTelemetry trace flags - a single byte where bit 0 represents the sampled flag.
Implemented as an AnyVal for zero heap allocation when used as a field in a case class.
Value parameters
- byte
-
the underlying byte value
Attributes
- Companion
- object
- Source
- TraceFlags.scala
- Supertypes
-
class AnyValtrait Matchableclass Any
Utility object for OpenTelemetry TraceId operations.
Utility object for OpenTelemetry TraceId operations.
TraceId is a 128-bit identifier represented as two Long values (hi and lo). Instead of wrapping them in a case class, the hi/lo values are inlined directly into SpanContext for zero heap allocation.
Attributes
- Source
- TraceId.scala
- Supertypes
- Self type
-
TraceId.type
Creates spans within a single instrumentation scope.
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
- Supertypes
Factory for Tracer instances that share resource, sampler, processors, and context storage configuration.
Factory for Tracer instances that share resource, sampler, processors, and context storage configuration.
Attributes
- Companion
- object
- Source
- TracerProvider.scala
- Supertypes
Attributes
- Companion
- class
- Source
- TracerProvider.scala
- Supertypes
- Self type
-
TracerProvider.type
Mutable builder for TracerProvider.
Attributes
- Companion
- object
- Source
- UpDownCounter.scala
- Supertypes
Attributes
- Companion
- class
- Source
- UpDownCounter.scala
- Supertypes
- Self type
-
UpDownCounter.type
Builder for UpDownCounter instruments.
Global metrics entry point. Works without setup. Call install to wire production exporters.
Global metrics entry point. Works without setup. Call install to wire production exporters.
App code uses this directly. Library code should accept Meter via DI.
Attributes
- Source
- metric.scala
- Supertypes
- Self type
-
metric.type
Global tracing entry point. Works without setup — stores spans in memory by default. Call install to wire production exporters.
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
- Supertypes
- Self type
-
trace.type