Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tokio-rs/tracing
/ functions
Functions
2,331 in github.com/tokio-rs/tracing
⨍
Functions
2,331
◇
Types & classes
452
↓ 601 callers
Function
mock
()
tracing-mock/src/span.rs:21
↓ 281 callers
Function
mock
()
tracing-subscriber/tests/support.rs:27
↓ 279 callers
Method
at_level
(self, level: tracing::Level)
tracing-mock/src/span.rs:47
↓ 278 callers
Method
named
(self, name: I)
tracing-mock/src/span.rs:35
↓ 265 callers
Method
clone
(&self)
tracing-core/src/field.rs:798
↓ 232 callers
Method
assert_finished
(&self)
tracing-mock/src/subscriber.rs:478
↓ 204 callers
Method
with
(f: impl FnOnce(Attributes<'_>) -> T)
tracing-subscriber/src/field/mod.rs:255
↓ 181 callers
Method
event
(mut self, event: MockEvent)
tracing-subscriber/tests/support.rs:82
↓ 173 callers
Function
with_default
(dispatcher: &Dispatch, f: impl FnOnce() -> T)
tracing-core/src/dispatcher.rs:217
↓ 125 callers
Method
enter
Records that a span has been can_enter. This calls the [`enter`] function on the [`Subscriber`] that this `Dispatch` forwards to. [`Subscriber`]: su
tracing-core/src/dispatcher.rs:552
↓ 123 callers
Method
with_value
Expect a field with the given name and value.
tracing-mock/src/field.rs:77
↓ 121 callers
Method
field
Returns the [`Field`] named `name`, or `None` if no such field exists. [`Field`]: super::Field
tracing-core/src/field.rs:829
↓ 117 callers
Method
run_with_handle
(self)
tracing-mock/src/subscriber.rs:177
↓ 112 callers
Method
done
(mut self)
tracing-mock/src/subscriber.rs:132
↓ 112 callers
Method
lock
(&self)
tracing-core/src/stdlib.rs:73
↓ 108 callers
Method
with_filter
(self, filter: FilterId)
tracing-subscriber/src/layer/context.rs:372
↓ 95 callers
Method
exit
Records that a span has been exited. This calls the [`exit`] function on the [`Subscriber`] that this `Dispatch` forwards to. [`Subscriber`]: super:
tracing-core/src/dispatcher.rs:563
↓ 94 callers
Method
as_ref
(&self)
tracing-core/src/field.rs:774
↓ 81 callers
Method
new_span
(&self, span: &span::Attributes<'_>)
tracing-core/src/dispatcher.rs:487
↓ 77 callers
Method
done
(mut self)
tracing-subscriber/tests/support.rs:92
↓ 77 callers
Method
run_with_handle
(self)
tracing-subscriber/tests/support.rs:121
↓ 76 callers
Function
with_default
(subscriber: S, f: impl FnOnce() -> T)
tracing/src/subscriber.rs:20
↓ 74 callers
Method
drop_span
(&self, id: span::Id)
tracing-core/src/dispatcher.rs:610
↓ 71 callers
Method
and_then
Composes this layer around the given `Layer`, returning a `Layered` struct implementing `Layer`. The returned `Layer` will call the methods on this `
tracing-subscriber/src/layer/mod.rs:1004
↓ 71 callers
Function
fmt
()
tracing-subscriber/src/fmt/mod.rs:321
↓ 71 callers
Method
name
(&self)
tracing-mock/src/span.rs:92
↓ 67 callers
Method
assert_logged
(&self, expected: &str)
tracing/test-log-support/src/lib.rs:67
↓ 65 callers
Function
named
(name: impl std::fmt::Display)
tracing-subscriber/tests/support.rs:37
↓ 62 callers
Method
in_scope
Executes the given function in the context of this span. If this span is enabled, then this function enters the span, invokes `f` and then exits the
tracing/src/span.rs:1100
↓ 60 callers
Method
with_target
Sets whether or not an event's target is displayed.
tracing-subscriber/src/fmt/mod.rs:647
↓ 59 callers
Method
in_scope
(self, spans: impl IntoIterator<Item = span::MockSpan>)
tracing-mock/src/event.rs:120
↓ 59 callers
Method
target
(&self)
tracing-mock/src/span.rs:100
↓ 58 callers
Method
iter
Returns an iterator over the `Field`s in this `FieldSet`.
tracing-core/src/field.rs:859
↓ 55 callers
Method
set_default
(self)
tracing-subscriber/src/util.rs:38
↓ 54 callers
Method
only
(self)
tracing-mock/src/field.rs:93
↓ 53 callers
Method
enter
(mut self, span: MockSpan)
tracing-subscriber/tests/support.rs:77
↓ 51 callers
Method
clone
(&self)
tracing-subscriber/src/reload.rs:324
↓ 51 callers
Method
with_field
(self, fields: I)
tracing-mock/src/span.rs:104
↓ 50 callers
Method
get
Immutably borrows a type previously inserted into this `Extensions`.
tracing-subscriber/src/registry/extensions.rs:50
↓ 49 callers
Method
push
(&mut self, id: Id)
tracing-subscriber/src/registry/stack.rs:20
↓ 48 callers
Method
and
(self, other: MockField)
tracing-mock/src/field.rs:84
↓ 48 callers
Method
clone
(&self)
tracing-subscriber/src/filter/filter_fn.rs:684
↓ 48 callers
Method
insert
Insert a type into this `Extensions`. Note that extensions are _not_ `Layer`-specific—they are _span_-specific. This means that other layers can acce
tracing-subscriber/src/registry/extensions.rs:87
↓ 48 callers
Method
parse
(s: &str, regex: bool)
tracing-subscriber/src/filter/env/field.rs:160
↓ 47 callers
Method
iter
(&self)
tracing-subscriber/src/registry/stack.rs:42
↓ 47 callers
Method
level
(&self)
tracing-mock/src/span.rs:96
↓ 44 callers
Method
event
(&self, event: &Event<'_>)
tracing/tests/subscriber.rs:44
↓ 44 callers
Method
with_fields
(self, fields: I)
tracing-mock/src/event.rs:42
↓ 42 callers
Method
exit
(mut self, span: MockSpan)
tracing-subscriber/tests/support.rs:87
↓ 40 callers
Method
thread
(&self, f: impl FnOnce() + Send + 'static)
tracing-subscriber/benches/support/mod.rs:24
↓ 37 callers
Method
as_ref
(&self)
tracing-subscriber/src/filter/env/field.rs:301
↓ 37 callers
Method
with_writer
Sets the [`MakeWriter`] that the subscriber being built will use to write events. # Examples Using `stderr` rather than `stdout`: ```rust use traci
tracing-subscriber/src/fmt/mod.rs:1026
↓ 36 callers
Method
finish
Finish the builder, returning a new `FmtSubscriber`.
tracing-subscriber/src/fmt/mod.rs:483
↓ 35 callers
Method
len
Returns the number of fields that would be visited from this `Record` when [`Record::record()`] is called [`Record::record()`]: Record::record()
tracing-core/src/span.rs:232
↓ 34 callers
Method
new_span
(&self, _: &Attributes<'_>)
tracing/tests/subscriber.rs:36
↓ 33 callers
Method
build
Builds a new [`RollingFileAppender`] with the configured parameters, emitting log files to the provided directory. Unlike [`RollingFileAppender::new`
tracing-appender/src/rolling/builder.rs:212
↓ 32 callers
Method
file
Returns the name of the source code file where the span occurred, or `None` if the file is unknown
tracing-core/src/metadata.rs:307
↓ 31 callers
Method
enter
(&self, span: &Id)
tracing-subscriber/benches/filter.rs:35
↓ 31 callers
Method
line
Returns the line number in the source code file where the span occurred, or `None` if the line number is unknown.
tracing-core/src/metadata.rs:313
↓ 30 callers
Method
callsite
(&self)
tracing-core/src/field.rs:757
↓ 30 callers
Method
span
Borrows the `Span` that this type is instrumented by.
tracing-futures/src/lib.rs:401
↓ 30 callers
Method
with_subscriber
Composes this `Layer` with the given [`Subscriber`], returning a `Layered` struct that implements [`Subscriber`]. The returned `Layered` subscriber w
tracing-subscriber/src/layer/mod.rs:1056
↓ 29 callers
Method
entered
(self)
tracing/src/span.rs:896
↓ 29 callers
Function
get_default
(mut f: F)
tracing-core/src/dispatcher.rs:330
↓ 29 callers
Method
init
()
tracing-log/src/log_tracer.rs:150
↓ 29 callers
Method
with_target
(self, target: I)
tracing-mock/src/span.rs:56
↓ 28 callers
Method
level
(&self)
tracing-subscriber/src/filter/directive.rs:267
↓ 28 callers
Method
name
Returns the span's name,
tracing-subscriber/src/registry/mod.rs:418
↓ 27 callers
Method
enter
(&self, _: &Id)
tracing/tests/subscriber.rs:49
↓ 27 callers
Method
event
(&self, event: &Event<'_>)
tracing-core/src/dispatcher.rs:539
↓ 27 callers
Function
msg
(message: impl fmt::Display)
tracing-mock/src/field.rs:68
↓ 26 callers
Method
clone
(&self)
tracing/src/span.rs:1530
↓ 26 callers
Method
clone
(&self)
tracing-subscriber/src/filter/layer_filters/combinator.rs:181
↓ 26 callers
Method
exit
(&self, _: &Id)
tracing/tests/subscriber.rs:51
↓ 26 callers
Method
finish
Completes serializing the visited object, returning `Ok(())` if all fields were serialized correctly, or `Error(S::Error)` if a field could not be ser
tracing-serde/src/lib.rs:372
↓ 26 callers
Function
try_cache
(metadata: &Metadata<'_>, callback: impl FnOnce() -> bool)
tracing-log/src/interest_cache.rs:161
↓ 25 callers
Method
as_str
Returns the string representation of the `Level`. This returns the same string as the `fmt::Display` implementation.
tracing-core/src/metadata.rs:526
↓ 25 callers
Method
module_path
Returns the path to the Rust module where the span occurred, or `None` if the module path is unknown.
tracing-core/src/metadata.rs:301
↓ 24 callers
Method
name
TODO: reference count these strings?
tracing-subscriber/src/filter/env/field.rs:156
↓ 23 callers
Method
clone
(&self)
tracing-subscriber/src/layer/context.rs:425
↓ 23 callers
Method
metadata
Returns a reference to the new span's metadata.
tracing-core/src/span.rs:141
↓ 23 callers
Method
with
Wraps `self` with the provided `layer`.
tracing-subscriber/src/layer/mod.rs:1466
↓ 22 callers
Method
extensions_mut
(&self)
tracing-subscriber/src/registry/mod.rs:556
↓ 22 callers
Function
filter_as_usize
(x: &Option<Level>)
tracing-core/src/metadata.rs:972
↓ 22 callers
Method
or_else
Combines `self` with another type implementing [`MakeWriter`], returning a new [`MakeWriter`] that calls `other`'s [`make_writer`] if `self`'s `make_w
tracing-subscriber/src/fmt/writer.rs:484
↓ 21 callers
Method
fields
Returns the set of all [fields] defined by this span's [`Metadata`]. Note that the [`FieldSet`] returned by this method includes *all* the fields dec
tracing-core/src/span.rs:208
↓ 21 callers
Method
with_explicit_parent
(self, parent: Option<&str>)
tracing-mock/src/span.rs:68
↓ 21 callers
Method
with_max_level
Sets a global maximum level for `log` records. Log records whose level is more verbose than the provided level will be disabled. By default, all `lo
tracing-log/src/log_tracer.rs:221
↓ 20 callers
Method
assert_not_logged
(&self)
tracing/test-log-support/src/lib.rs:80
↓ 20 callers
Function
display
Wraps a type implementing `fmt::Display` as a `Value` that can be recorded using its `Display` implementation.
tracing-core/src/field.rs:353
↓ 20 callers
Method
enter
(&self, id: &span::Id)
tracing-subscriber/src/fmt/mod.rs:412
↓ 20 callers
Method
instrument
Instruments this type with the provided `Span`, returning an `Instrumented` wrapper. If the instrumented type is a future, stream, or sink, the attac
tracing-futures/src/lib.rs:151
↓ 20 callers
Method
is_empty
(&self)
tracing-subscriber/src/filter/directive.rs:53
↓ 20 callers
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-subscriber/tests/support.rs:67
↓ 19 callers
Method
iter
Returns an iterator over the [target]-[`LevelFilter`] pairs in this filter. The order of iteration is undefined. # Examples ``` use tracing_subscri
tracing-subscriber/src/filter/targets.rs:360
↓ 19 callers
Method
wait
Like try, but will spin if the `Once` is in the process of being initialized
tracing-core/src/spin/once.rs:131
↓ 18 callers
Function
parse_directives
(dirs: impl AsRef<str>)
tracing-subscriber/src/filter/env/directive.rs:457
↓ 17 callers
Function
never
Creates a non-rolling, file appender The appender returned by `rolling::never` can be used with `non_blocking` to create a non-blocking, non-rotating
tracing-appender/src/rolling.rs:396
↓ 17 callers
Function
set_default
(dispatcher: &Dispatch)
tracing-core/src/dispatcher.rs:239
↓ 16 callers
Method
into_iter
(self)
tracing-core/src/field.rs:902
next →
1–100 of 2,331, ranked by callers