Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tokio-rs/tracing
/ functions
Functions
2,480 in github.com/tokio-rs/tracing
⨍
Functions
2,480
◇
Types & classes
463
Function
more_specific_dynamic_filter_more_verbose
()
tracing-subscriber/tests/env_filter/main.rs:369
Function
more_specific_static_filter_less_verbose
()
tracing-subscriber/tests/env_filter/main.rs:346
Function
more_specific_static_filter_more_verbose
()
tracing-subscriber/tests/env_filter/main.rs:327
Function
move_field_out_of_struct
()
tracing/tests/span.rs:422
Function
move_field_out_of_struct
()
tracing/tests/event.rs:238
Function
moved_field
()
tracing/tests/span.rs:344
Function
moved_field
()
tracing/tests/event.rs:171
Method
msg
(s: &'static str)
tracing-subscriber/src/filter/directive.rs:407
Function
multi_threaded_writes
()
tracing-appender/src/non_blocking.rs:456
Function
multiline_message
()
tracing-journald/tests/journal.rs:216
Function
multiline_message_trailing_newline
()
tracing-journald/tests/journal.rs:227
Function
multiple_dynamic_filters
()
tracing-subscriber/tests/env_filter/main.rs:698
Function
multiple_dynamic_filters
()
tracing-subscriber/tests/env_filter/per_layer.rs:254
Function
multiple_layer_filter_interests_are_cached
()
tracing-subscriber/tests/multiple_layer_filter_interests_cached.rs:11
Function
multiple_layers_can_access_closed_span
()
tracing-subscriber/src/registry/sharded.rs:572
Function
multiple_max_level_hints
()
tracing/tests/multiple_max_level_hints.rs:8
Function
multiple_spans_metadata
()
tracing-journald/tests/journal.rs:332
Function
my_great_function
()
tracing/tests/filter_caching_is_lexically_scoped.rs:21
Function
my_other_function
()
tracing/tests/filter_caching_is_lexically_scoped.rs:25
Method
name
Returns the name of the span.
tracing-core/src/metadata.rs:286
Function
name_ident
()
tracing-attributes/tests/instrument.rs:258
Method
named
Overrides the name printed by the mock subscriber's debugging output. The debugging output is displayed if the test panics, or if the test is run wit
tracing-mock/src/subscriber.rs:333
Method
named
Sets a name to expect when matching an event. By default, an event's name takes takes the form: `event <file>:<line>` where `<file>` and `<line>` ref
tracing-mock/src/event.rs:69
Function
named_levels
()
tracing-attributes/tests/levels.rs:7
Function
nested_plf_only_picks_max
()
tracing-subscriber/src/layer/tests.rs:293
Function
nested_set_default
()
tracing-core/tests/dispatch.rs:32
Method
never
()
tracing-core/src/subscriber.rs:605
Function
never_used
()
tracing-attributes/tests/ui/fail/unused_instrumented_fn.rs:4
Method
new
Returns a `Dispatch` that forwards to the given [`Subscriber`]. [`Subscriber`]: super::subscriber::Subscriber
tracing-core/src/dispatcher.rs:472
Method
new
Returns `Attributes` describing a new child span of the current span, with the provided metadata and values.
tracing-core/src/span.rs:110
Method
new
Construct new metadata for a span or event, with a name, target, level, field names, and optional source code location.
tracing-core/src/metadata.rs:252
Method
new
Constructs a new `FieldSet` with the given array of field names and callsite.
tracing-core/src/field.rs:869
Method
new
()
tracing-core/src/subscriber.rs:702
Method
new
(metadata: &'static Metadata<'static>, fields: &'a field::ValueSet<'a>)
tracing-core/src/event.rs:42
Method
new
(data: T)
tracing-core/src/sync.rs:14
Method
new
Returns a new `DefaultCallsite` with the specified `Metadata`.
tracing-core/src/callsite.rs:280
Method
new
Creates a new spinlock wrapping the supplied data.
tracing-core/src/spin/mutex.rs:31
Method
new
Creates a new `Once` value.
tracing-core/src/spin/once.rs:48
Method
new
(sleep_micros: u64)
tracing-core/tests/missed_register_callsite.rs:21
Method
new
Create a new map visitor.
tracing-serde/src/lib.rs:368
Method
new
(inner: M, get_span: G)
tracing-tower/src/service_span.rs:197
Method
new
(inner: S, get_span: G)
tracing-tower/src/request_span.rs:184
Method
new
()
tracing-appender/benches/bench.rs:16
Method
new
Creates a new `RollingFileAppender`. A `RollingFileAppender` will have a fixed rotation whose frequency is defined by [`Rotation`]. The `directory` a
tracing-appender/src/rolling.rs:143
Method
new
Returns a new `NonBlocking` writer wrapping the provided `writer`. The returned `NonBlocking` writer will have the [default configuration][default] v
tracing-appender/src/non_blocking.rs:145
Method
new
(receiver: Receiver<Msg>, writer: T, shutdown: Receiver<()>)
tracing-appender/src/worker.rs:22
Method
new
(val: T)
tracing-appender/src/sync.rs:28
Method
new
()
tracing-appender/src/rolling/builder.rs:52
Method
new
Returns a new `FlameLayer` that outputs all folded stack samples to the provided writer.
tracing-flame/src/lib.rs:265
Method
new
Returns a new `ErrorLayer` with the provided [field formatter]. [field formatter]: tracing_subscriber::fmt::FormatFields
tracing-error/src/layer.rs:73
Method
new
Create a new span trace with the given span as the innermost span.
tracing-error/src/backtrace.rs:72
Method
new
( id: tracing_core::span::Id, metadata: Option<&'static tracing_core::Metadata<'static>>,
tracing-mock/src/span.rs:188
Method
new
(expected: Arc<Mutex<VecDeque<Expect>>>, name: String)
tracing-mock/src/subscriber.rs:1406
Method
new
Creates a new instance of the application, ready to run
examples/examples/env-filter-explorer.rs:57
Method
new
()
examples/examples/counters.rs:112
Method
new
(message: &'static str)
examples/examples/instrumented-error.rs:16
Method
new
(message: &'static str)
examples/examples/custom-error.rs:18
Method
new
()
examples/examples/sloggish/sloggish_subscriber.rs:39
Method
new
(cs: &'static dyn Callsite)
tracing-log/src/lib.rs:263
Method
new
Creates a new `LogTracer` that can then be used as a logger for the `log` crate. It is generally simpler to use the [`init`] or [`init_with_filter`]
tracing-log/src/log_tracer.rs:98
Method
new
(epoch: usize, config: &InterestCacheConfig)
tracing-log/src/interest_cache.rs:97
Method
new
Construct a journald layer Fails if the journald socket couldn't be opened. Returns a `NotFound` error unconditionally in non-Unix environments.
tracing-journald/src/lib.rs:101
Method
new
()
tracing/benches/empty_span.rs:27
Method
new
Constructs a new `Span` with the given [metadata] and set of [field values]. The new span will be constructed by the currently-active [`Subscriber`],
tracing/src/span.rs:437
Method
new
Convert `"prefix.r#keyword.suffix"` to `b"prefix.keyword.suffix"`.
tracing/src/lib.rs:1078
Method
new
(sleep_micros: u64)
tracing/tests/missed_register_callsite.rs:18
Method
new
()
tracing-subscriber/benches/fmt.rs:25
Method
new
(dispatch: Dispatch)
tracing-subscriber/benches/support/mod.rs:16
Method
new
Wraps the given [`Layer`] or [`Filter`], returning a `reload::Layer` and a `Handle` that allows the inner value to be modified at runtime. [`Layer`]:
tracing-subscriber/src/reload.rs:263
Method
new
(e: impl Into<Box<dyn Error + Send + Sync + 'static>>)
tracing-subscriber/src/util.rs:113
Method
new
(val: T)
tracing-subscriber/src/sync.rs:30
Method
new
(inner: RwLockReadGuard<'a, ExtensionsInner>)
tracing-subscriber/src/registry/extensions.rs:45
Method
new
()
tracing-subscriber/src/registry/sharded.rs:640
Method
new
Returns a new `Identity` layer.
tracing-subscriber/src/layer/mod.rs:1920
Method
new
(layer: A, inner: B, inner_has_layer_filter: bool)
tracing-subscriber/src/layer/layered.rs:416
Method
new
(subscriber: &'a S)
tracing-subscriber/src/layer/context.rs:55
Method
new
( target: Option<String>, field_names: Vec<String>, level: LevelFilter, )
tracing-subscriber/src/filter/directive.rs:166
Method
new
Returns a new `Targets` filter. This filter will enable no targets. Call [`with_target`] or [`with_targets`] to add enabled targets, and [`with_defau
tracing-subscriber/src/filter/targets.rs:184
Method
new
Constructs a [`FilterFn`] from a function or closure that returns `true` if a span or event should be enabled, based on its [`Metadata`]. If determin
tracing-subscriber/src/filter/filter_fn.rs:225
Method
new
Returns a new `EnvFilter` from the directives in the given string, ignoring any that are invalid. If the string is empty or contains only invalid dir
tracing-subscriber/src/filter/env/mod.rs:350
Method
new
(s: &str)
tracing-subscriber/src/filter/env/field.rs:355
Method
new
()
tracing-subscriber/src/filter/layer_filters/mod.rs:107
Method
new
Combines two [`Filter`]s so that spans and events are enabled if and only if both* filters return `true`. # Examples Enabling spans or events if the
tracing-subscriber/src/filter/layer_filters/combinator.rs:101
Method
new
Returns a new [`MakeVisitor`] implementation that wraps `inner` so that it will format each visited field separated by the provided `delimiter`. [`Ma
tracing-subscriber/src/field/delimited.rs:45
Method
new
Returns a new [`MakeVisitor`] implementation that will wrap `inner` so that any strings named `message` are formatted using `fmt::Display`. [`MakeVis
tracing-subscriber/src/field/display.rs:22
Method
new
(writer: &'a mut dyn fmt::Write)
tracing-subscriber/src/field/mod.rs:333
Method
new
Wraps the provided visitor so that any `fmt::Debug` fields are formatted using the alternative (`:#`) formatter.
tracing-subscriber/src/field/debug.rs:20
Method
new
Returns a new format subscriber with the default configuration.
tracing-subscriber/src/fmt/mod.rs:357
Method
new
Returns a new `TestWriter` with the default configuration.
tracing-subscriber/src/fmt/writer.rs:715
Method
new
Returns a new [`Layer`][self::Layer] with the default configuration.
tracing-subscriber/src/fmt/fmt_layer.rs:82
Method
new
Format the time using the given format string. See [`chrono::format::strftime`] for details on the supported syntax.
tracing-subscriber/src/fmt/time/chrono_crate.rs:38
Method
new
Returns a formatter that formats the current [local time] using the [`time` crate] with the provided provided format. The format may be any type that
tracing-subscriber/src/fmt/time/time_crate.rs:173
Method
new
(value: T, sanitize: bool)
tracing-subscriber/src/fmt/format/escape.rs:12
Method
new
Returns a new default [`PrettyFields`] implementation.
tracing-subscriber/src/fmt/format/pretty.rs:367
Method
new
(writer: &'writer mut impl fmt::Write)
tracing-subscriber/src/fmt/format/mod.rs:441
Method
new
Returns a new JSON [`FormatFields`] implementation.
tracing-subscriber/src/fmt/format/json.rs:356
Method
new
()
tracing-subscriber/tests/ansi_escaping.rs:11
Method
new_child_of
( parent: impl Into<Option<Id>>, metadata: &'static Metadata<'static>, fields: &'a fie
tracing-core/src/event.rs:53
Method
new_disabled
(meta: &'static Metadata<'static>)
tracing/src/span.rs:520
Function
new_empty_string
()
tracing-subscriber/tests/env_filter/main.rs:307
← previous
next →
1,701–1,800 of 2,480, ranked by callers