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
Method
visit_spans
Visits every span in the current context with a closure. The provided closure will be called first with the current span, and then with that span's p
tracing-subscriber/src/fmt/fmt_layer.rs:1122
Method
visit_with
Visits all fields in `fields` with a new visitor constructed from `target`.
tracing-subscriber/src/field/mod.rs:102
Function
warn
()
tracing/tests/macros.rs:801
Function
warn_callsite_is_correct
()
tracing-log/src/lib.rs:584
Function
warn_root
()
tracing/tests/macros.rs:1091
Function
warn_span
()
tracing/tests/macros.rs:118
Function
warn_span_root
()
tracing/tests/macros.rs:255
Function
warn_span_with_parent
()
tracing/tests/macros.rs:363
Function
warn_with_parent
()
tracing/tests/macros.rs:1290
Function
weekly
Creates a weekly-rotating file appender. The logs will rotate every Sunday at midnight UTC. The appender returned by `rolling::weekly` can be used wi
tracing-appender/src/rolling.rs:406
Method
with_ancestry
Configures this `ExpectedEvent` to expect the specified [`ExpectedAncestry`]. An event's ancestry indicates whether is has a parent or is a root, and
tracing-mock/src/event.rs:413
Function
with_ansi_false
()
tracing-subscriber/src/fmt/format/mod.rs:2084
Method
with_ansi_sanitization
(self, ansi_sanitization: bool)
tracing-subscriber/src/fmt/format/mod.rs:454
Function
with_ansi_true
()
tracing-subscriber/src/fmt/format/mod.rs:2077
Method
with_callsite_filter
Adds a function for filtering callsites to this filter. When this filter's [`Filter::callsite_enabled`][cse] method is called, the provided function
tracing-subscriber/src/filter/filter_fn.rs:558
Method
with_current_span
Sets whether or not the formatter will include the current span in formatted events. See [`format::Json`][super::format::Json]
tracing-subscriber/src/fmt/fmt_layer.rs:660
Method
with_current_span
(mut self, display_current_span: bool)
tracing-subscriber/src/fmt/format/mod.rs:905
Method
with_current_subscriber
(self)
tracing-futures/src/lib.rs:242
Method
with_current_subscriber
(self)
tracing/src/instrument.rs:228
Method
with_empty_samples
Configures whether or not periods of time where no spans are entered should be included in the output. Defaults to `true`. Setting this feature to f
tracing-flame/src/lib.rs:297
Method
with_fields
Adds fields to expect when matching an event. If an event is recorded with fields that do not match the provided [`ExpectedFields`], this expectation
tracing-mock/src/event.rs:135
Method
with_file
Sets whether or not an event's [source code file path][file] is displayed. [file]: tracing_core::Metadata::file
tracing-subscriber/src/fmt/mod.rs:692
Method
with_file
Sets whether or not an event's [source code file path][file] is displayed. [file]: tracing_core::Metadata::file
tracing-subscriber/src/fmt/fmt_layer.rs:519
Method
with_file_and_line
Configures whether or not file and line should be included in the output.
tracing-flame/src/lib.rs:324
Function
with_filename
()
tracing-subscriber/src/fmt/format/mod.rs:1926
Method
with_filter
(self, filter: F)
tracing-subscriber/src/layer/mod.rs:1111
Method
with_filters
( filters: impl IntoIterator<Item = &'a (&'static str, LevelFilter)>, )
tracing/test-log-support/src/lib.rs:43
Function
with_filters_boxed
()
tracing-subscriber/tests/layer_filters/vec.rs:42
Function
with_filters_unboxed
()
tracing-subscriber/tests/layer_filters/vec.rs:6
Function
with_line_number
()
tracing-subscriber/src/fmt/format/mod.rs:1907
Method
with_line_number
Sets whether or not an event's [source code line number][line] is displayed. [line]: tracing_core::Metadata::line
tracing-subscriber/src/fmt/fmt_layer.rs:530
Function
with_line_number_and_file_name
()
tracing-subscriber/src/fmt/format/mod.rs:1882
Method
with_min_level
Wraps `self` and returns a [`MakeWriter`] that will only write output for events at or above the provided verbosity [`Level`]. Events whose level is
tracing-subscriber/src/fmt/writer.rs:321
Method
with_module_path
Configures whether or not module paths should be included in the output.
tracing-flame/src/lib.rs:318
Method
with_regex
Sets whether span field values can be matched with regular expressions. If this is `true`, field filter directives will be interpreted as regular exp
tracing-subscriber/src/filter/env/builder.rs:38
Method
with_source_location
(self, display_location: bool)
tracing-subscriber/src/fmt/format/pretty.rs:161
Method
with_source_location
Sets whether or not the source code location from which an event originated is displayed. This is equivalent to calling [`Format::with_file`] and [`F
tracing-subscriber/src/fmt/format/mod.rs:837
Method
with_span_list
Sets whether or not the JSON subscriber being built will include a list (from root to leaf) of all currently entered spans in formatted events. See [
tracing-subscriber/src/fmt/mod.rs:832
Method
with_span_list
Sets whether or not the formatter will include a list (from root to leaf) of all currently entered spans in formatted events. See [`format::Json`][su
tracing-subscriber/src/fmt/fmt_layer.rs:675
Method
with_span_list
(mut self, display_span_list: bool)
tracing-subscriber/src/fmt/format/mod.rs:916
Method
with_stderr
Returns a new `TestWriter` that writes to `stderr` instead of `stdout`.
tracing-subscriber/src/fmt/writer.rs:720
Method
with_subscriber
Invokes a function with a reference to this span's ID and subscriber. if this span is enabled, the provided function is called, and the result is ret
tracing/src/span.rs:1382
Method
with_subscriber
Attaches the provided [`Subscriber`] to this type, returning a [`WithDispatch`] wrapper. The attached [`Subscriber`] will be set as the [default] whe
tracing/src/instrument.rs:176
Method
with_target
Sets the target to expect when matching events. If an event is recorded with a different target, this expectation will fail. # Examples ``` use tra
tracing-mock/src/event.rs:243
Method
with_target
Enables spans and events with [target]s starting with the provided target prefix if they are at or below the provided [`LevelFilter`]. # Examples ``
tracing-subscriber/src/filter/targets.rs:218
Method
with_targets
Adds [target]s from an iterator of [target]-[`LevelFilter`] pairs to this filter. # Examples ``` use tracing_subscriber::filter; use tracing_core::L
tracing-subscriber/src/filter/targets.rs:257
Method
with_test_writer
Configures the subscriber to support [`libtest`'s output capturing][capturing] when used in unit tests. See [`TestWriter`] for additional details. #
tracing-subscriber/src/fmt/mod.rs:1091
Method
with_test_writer
Configures the layer to support [`libtest`'s output capturing][capturing] when used in unit tests. See [`TestWriter`] for additional details. # Exam
tracing-subscriber/src/fmt/fmt_layer.rs:291
Function
with_thread_ids
()
tracing-subscriber/src/fmt/format/mod.rs:1942
Method
with_thread_ids
Sets whether or not the [thread ID] of the current thread is displayed when formatting events. [thread ID]: std::thread::ThreadId
tracing-subscriber/src/fmt/fmt_layer.rs:552
Method
with_thread_names
Sets whether or not the [name] of the current thread is displayed when formatting events. [name]: std::thread#naming-threads
tracing-subscriber/src/fmt/fmt_layer.rs:563
Method
with_threads_collapsed
Configures whether or not spans from different threads should be collapsed into one pool of events. Defaults to `false`. Setting this feature to tru
tracing-flame/src/lib.rs:312
Function
without_ansi
()
tracing-subscriber/src/fmt/format/mod.rs:2091
Function
without_level
()
tracing-subscriber/src/fmt/format/mod.rs:2097
Method
would_enable
Returns whether a [target]-[`Level`] pair would be enabled by this `Targets`. This method can be used with [`module_path!`] from `std` as the target
tracing-subscriber/src/filter/targets.rs:396
Method
write
(&mut self, buf: &[u8])
tracing-appender/benches/bench.rs:30
Method
write
(&mut self, buf: &[u8])
tracing-subscriber/benches/fmt.rs:15
Method
write
(&self)
tracing-subscriber/src/sync.rs:53
Method
write
(&mut self, buf: &[u8])
tracing-subscriber/src/fmt/mod.rs:1306
Method
write
(&mut self, buf: &[u8])
tracing-subscriber/src/fmt/writer.rs:726
Method
write
(&mut self, buf: &[u8])
tracing-subscriber/tests/ansi_escaping.rs:24
Method
write_all
(&mut self, buf: &[u8])
tracing-subscriber/src/fmt/writer.rs:839
Function
write_daily_log
()
tracing-appender/src/rolling.rs:888
Method
write_fmt
(&mut self, fmt: std::fmt::Arguments<'_>)
tracing-subscriber/src/fmt/writer.rs:844
Function
write_hourly_log
()
tracing-appender/src/rolling.rs:883
Function
write_minutely_log
()
tracing-appender/src/rolling.rs:878
Function
write_never_log
()
tracing-appender/src/rolling.rs:898
Method
write_str
(&mut self, s: &str)
tracing/benches/shared.rs:75
Method
write_str
(&mut self, s: &str)
tracing-subscriber/src/fmt/format/escape.rs:23
Method
write_u64
(&mut self, id: u64)
tracing-subscriber/src/registry/extensions.rs:26
Method
write_vectored
(&mut self, bufs: &[io::IoSlice<'_>])
tracing-subscriber/src/fmt/writer.rs:834
Function
write_weekly_log
()
tracing-appender/src/rolling.rs:893
Method
writer
(&mut self)
tracing-subscriber/src/field/display.rs:114
Method
writer
(&mut self)
tracing-subscriber/src/field/mod.rs:354
Method
writer
(&mut self)
tracing-subscriber/src/field/debug.rs:108
Method
writer
Borrows the [writer] for this [`Layer`]. [writer]: MakeWriter
tracing-subscriber/src/fmt/fmt_layer.rs:201
Method
writer
(&mut self)
tracing-subscriber/src/fmt/format/pretty.rs:519
Method
writer
(&mut self)
tracing-subscriber/src/fmt/format/mod.rs:1350
Method
writer
(&mut self)
tracing-subscriber/src/fmt/format/json.rs:453
Method
writer_mut
Mutably borrows the [writer] for this [`Layer`]. This method is primarily expected to be used with the [`reload::Handle::modify`](crate::reload::Hand
tracing-subscriber/src/fmt/fmt_layer.rs:232
← previous
2,401–2,480 of 2,480, ranked by callers