MCPcopy Create free account

hub / github.com/tokio-rs/tracing / functions

Functions2,331 in github.com/tokio-rs/tracing

↓ 601 callersFunctionmock
()
tracing-mock/src/span.rs:21
↓ 281 callersFunctionmock
()
tracing-subscriber/tests/support.rs:27
↓ 279 callersMethodat_level
(self, level: tracing::Level)
tracing-mock/src/span.rs:47
↓ 278 callersMethodnamed
(self, name: I)
tracing-mock/src/span.rs:35
↓ 265 callersMethodclone
(&self)
tracing-core/src/field.rs:798
↓ 232 callersMethodassert_finished
(&self)
tracing-mock/src/subscriber.rs:478
↓ 204 callersMethodwith
(f: impl FnOnce(Attributes<'_>) -> T)
tracing-subscriber/src/field/mod.rs:255
↓ 181 callersMethodevent
(mut self, event: MockEvent)
tracing-subscriber/tests/support.rs:82
↓ 173 callersFunctionwith_default
(dispatcher: &Dispatch, f: impl FnOnce() -> T)
tracing-core/src/dispatcher.rs:217
↓ 125 callersMethodenter
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 callersMethodwith_value
Expect a field with the given name and value.
tracing-mock/src/field.rs:77
↓ 121 callersMethodfield
Returns the [`Field`] named `name`, or `None` if no such field exists. [`Field`]: super::Field
tracing-core/src/field.rs:829
↓ 117 callersMethodrun_with_handle
(self)
tracing-mock/src/subscriber.rs:177
↓ 112 callersMethoddone
(mut self)
tracing-mock/src/subscriber.rs:132
↓ 112 callersMethodlock
(&self)
tracing-core/src/stdlib.rs:73
↓ 108 callersMethodwith_filter
(self, filter: FilterId)
tracing-subscriber/src/layer/context.rs:372
↓ 95 callersMethodexit
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 callersMethodas_ref
(&self)
tracing-core/src/field.rs:774
↓ 81 callersMethodnew_span
(&self, span: &span::Attributes<'_>)
tracing-core/src/dispatcher.rs:487
↓ 77 callersMethoddone
(mut self)
tracing-subscriber/tests/support.rs:92
↓ 77 callersMethodrun_with_handle
(self)
tracing-subscriber/tests/support.rs:121
↓ 76 callersFunctionwith_default
(subscriber: S, f: impl FnOnce() -> T)
tracing/src/subscriber.rs:20
↓ 74 callersMethoddrop_span
(&self, id: span::Id)
tracing-core/src/dispatcher.rs:610
↓ 71 callersMethodand_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 callersFunctionfmt
()
tracing-subscriber/src/fmt/mod.rs:321
↓ 71 callersMethodname
(&self)
tracing-mock/src/span.rs:92
↓ 67 callersMethodassert_logged
(&self, expected: &str)
tracing/test-log-support/src/lib.rs:67
↓ 65 callersFunctionnamed
(name: impl std::fmt::Display)
tracing-subscriber/tests/support.rs:37
↓ 62 callersMethodin_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 callersMethodwith_target
Sets whether or not an event's target is displayed.
tracing-subscriber/src/fmt/mod.rs:647
↓ 59 callersMethodin_scope
(self, spans: impl IntoIterator<Item = span::MockSpan>)
tracing-mock/src/event.rs:120
↓ 59 callersMethodtarget
(&self)
tracing-mock/src/span.rs:100
↓ 58 callersMethoditer
Returns an iterator over the `Field`s in this `FieldSet`.
tracing-core/src/field.rs:859
↓ 55 callersMethodset_default
(self)
tracing-subscriber/src/util.rs:38
↓ 54 callersMethodonly
(self)
tracing-mock/src/field.rs:93
↓ 53 callersMethodenter
(mut self, span: MockSpan)
tracing-subscriber/tests/support.rs:77
↓ 51 callersMethodclone
(&self)
tracing-subscriber/src/reload.rs:324
↓ 51 callersMethodwith_field
(self, fields: I)
tracing-mock/src/span.rs:104
↓ 50 callersMethodget
Immutably borrows a type previously inserted into this `Extensions`.
tracing-subscriber/src/registry/extensions.rs:50
↓ 49 callersMethodpush
(&mut self, id: Id)
tracing-subscriber/src/registry/stack.rs:20
↓ 48 callersMethodand
(self, other: MockField)
tracing-mock/src/field.rs:84
↓ 48 callersMethodclone
(&self)
tracing-subscriber/src/filter/filter_fn.rs:684
↓ 48 callersMethodinsert
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 callersMethodparse
(s: &str, regex: bool)
tracing-subscriber/src/filter/env/field.rs:160
↓ 47 callersMethoditer
(&self)
tracing-subscriber/src/registry/stack.rs:42
↓ 47 callersMethodlevel
(&self)
tracing-mock/src/span.rs:96
↓ 44 callersMethodevent
(&self, event: &Event<'_>)
tracing/tests/subscriber.rs:44
↓ 44 callersMethodwith_fields
(self, fields: I)
tracing-mock/src/event.rs:42
↓ 42 callersMethodexit
(mut self, span: MockSpan)
tracing-subscriber/tests/support.rs:87
↓ 40 callersMethodthread
(&self, f: impl FnOnce() + Send + 'static)
tracing-subscriber/benches/support/mod.rs:24
↓ 37 callersMethodas_ref
(&self)
tracing-subscriber/src/filter/env/field.rs:301
↓ 37 callersMethodwith_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 callersMethodfinish
Finish the builder, returning a new `FmtSubscriber`.
tracing-subscriber/src/fmt/mod.rs:483
↓ 35 callersMethodlen
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 callersMethodnew_span
(&self, _: &Attributes<'_>)
tracing/tests/subscriber.rs:36
↓ 33 callersMethodbuild
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 callersMethodfile
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 callersMethodenter
(&self, span: &Id)
tracing-subscriber/benches/filter.rs:35
↓ 31 callersMethodline
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 callersMethodcallsite
(&self)
tracing-core/src/field.rs:757
↓ 30 callersMethodspan
Borrows the `Span` that this type is instrumented by.
tracing-futures/src/lib.rs:401
↓ 30 callersMethodwith_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 callersMethodentered
(self)
tracing/src/span.rs:896
↓ 29 callersFunctionget_default
(mut f: F)
tracing-core/src/dispatcher.rs:330
↓ 29 callersMethodinit
()
tracing-log/src/log_tracer.rs:150
↓ 29 callersMethodwith_target
(self, target: I)
tracing-mock/src/span.rs:56
↓ 28 callersMethodlevel
(&self)
tracing-subscriber/src/filter/directive.rs:267
↓ 28 callersMethodname
Returns the span's name,
tracing-subscriber/src/registry/mod.rs:418
↓ 27 callersMethodenter
(&self, _: &Id)
tracing/tests/subscriber.rs:49
↓ 27 callersMethodevent
(&self, event: &Event<'_>)
tracing-core/src/dispatcher.rs:539
↓ 27 callersFunctionmsg
(message: impl fmt::Display)
tracing-mock/src/field.rs:68
↓ 26 callersMethodclone
(&self)
tracing/src/span.rs:1530
↓ 26 callersMethodclone
(&self)
tracing-subscriber/src/filter/layer_filters/combinator.rs:181
↓ 26 callersMethodexit
(&self, _: &Id)
tracing/tests/subscriber.rs:51
↓ 26 callersMethodfinish
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 callersFunctiontry_cache
(metadata: &Metadata<'_>, callback: impl FnOnce() -> bool)
tracing-log/src/interest_cache.rs:161
↓ 25 callersMethodas_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 callersMethodmodule_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 callersMethodname
TODO: reference count these strings?
tracing-subscriber/src/filter/env/field.rs:156
↓ 23 callersMethodclone
(&self)
tracing-subscriber/src/layer/context.rs:425
↓ 23 callersMethodmetadata
Returns a reference to the new span's metadata.
tracing-core/src/span.rs:141
↓ 23 callersMethodwith
Wraps `self` with the provided `layer`.
tracing-subscriber/src/layer/mod.rs:1466
↓ 22 callersMethodextensions_mut
(&self)
tracing-subscriber/src/registry/mod.rs:556
↓ 22 callersFunctionfilter_as_usize
(x: &Option<Level>)
tracing-core/src/metadata.rs:972
↓ 22 callersMethodor_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 callersMethodfields
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 callersMethodwith_explicit_parent
(self, parent: Option<&str>)
tracing-mock/src/span.rs:68
↓ 21 callersMethodwith_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 callersMethodassert_not_logged
(&self)
tracing/test-log-support/src/lib.rs:80
↓ 20 callersFunctiondisplay
Wraps a type implementing `fmt::Display` as a `Value` that can be recorded using its `Display` implementation.
tracing-core/src/field.rs:353
↓ 20 callersMethodenter
(&self, id: &span::Id)
tracing-subscriber/src/fmt/mod.rs:412
↓ 20 callersMethodinstrument
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 callersMethodis_empty
(&self)
tracing-subscriber/src/filter/directive.rs:53
↓ 20 callersMethodnamed
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 callersMethoditer
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 callersMethodwait
Like try, but will spin if the `Once` is in the process of being initialized
tracing-core/src/spin/once.rs:131
↓ 18 callersFunctionparse_directives
(dirs: impl AsRef<str>)
tracing-subscriber/src/filter/env/directive.rs:457
↓ 17 callersFunctionnever
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 callersFunctionset_default
(dispatcher: &Dispatch)
tracing-core/src/dispatcher.rs:239
↓ 16 callersMethodinto_iter
(self)
tracing-core/src/field.rs:902
next →1–100 of 2,331, ranked by callers