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.
- Tokio
Console Config 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.
Constants§
- 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.
Statics§
- An
Arc
of the tracingSubscriber
constructed and initialized inconfigure
. The value is written whenconfigure
runs. - Same as
LOGGING_DEFAULTS_STR
, but structured asDirective
s. - Same as
OPENTELEMETRY_DEFAULTS_STR
, but structured asDirective
s. - Same as
SENTRY_DEFAULTS_STR
, but structured asDirective
s.
Functions§
- Enables application tracing via the
tracing
andopentelemetry
libraries.
Type Aliases§
- The
GLOBAL_SUBSCRIBER
type. - Reloader 🔒