Available on crate feature
tracing_
only.Expand description
Tracing utilities.
This module contains application tracing utilities built on top of the
tracing
and opentelemetry
libraries. The key exports are:
-
The
configure
function, which configures thetracing
andopentelemetry
crates with sensible defaults and should be called during initialization of every Materialize binary. -
The
OpenTelemetryContext
type, which carries a tracing span across thread or task boundaries within a process.
Structs§
- Configuration for the
opentelemetry
library. - An OpenTelemetry context.
- A wrapper around a
FormatEvent
that adds an optional prefix to each event. - Configures Sentry reporting.
- Configures the stderr log.
- TokioConsoleConfig
tokio-console
Configuration of the Tokio console integration. - Application tracing configuration.
- A guard for the tracing infrastructure configured with
configure
. - A handle to the tracing infrastructure configured with
configure
.
Enums§
- Specifies the format of a stderr log message.
Statics§
- An
Arc
of the tracingSubscriber
constructed and initialized inconfigure
. The value is written whenconfigure
runs. - By default we turn off tracing from the following crates, because they have error spans which are noisy.
- By default we turn off tracing from the following crates, because they have long-lived Spans, which OpenTelemetry does not handle well.
- By default we turn off tracing from the following crates, because they have error spans which are noisy.
Functions§
- Enables application tracing via the
tracing
andopentelemetry
libraries.