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
↓ 5 callers
Method
contains
Returns `true` if this set of `Attributes` contains a value for the given `Field`.
tracing-core/src/span.rs:190
↓ 5 callers
Method
delimit
(&mut self)
tracing-subscriber/src/field/delimited.rs:66
↓ 5 callers
Method
directives
(&self)
tracing-subscriber/src/filter/directive.rs:72
↓ 5 callers
Function
dynamic_filter_fn
Constructs a [`DynFilterFn`] from a function or closure that returns `true` if a span or event should be enabled within a particular [span context][`C
tracing-subscriber/src/filter/filter_fn.rs:175
↓ 5 callers
Method
enter
(&self, span: &Id)
tracing-subscriber/benches/filter.rs:35
↓ 5 callers
Method
flush
(&mut self)
tracing-appender/src/rolling.rs:238
↓ 5 callers
Function
get_ancestry
Determines the ancestry of an actual span or event. The rules for determining the ancestry are as follows: +------------+--------------+------------
tracing-mock/src/ancestry.rs:151
↓ 5 callers
Method
if_enabled_for
(self, span: &span::Id, filter: FilterId)
tracing-subscriber/src/layer/context.rs:391
↓ 5 callers
Method
init
Install this Subscriber as the global default. If the `tracing-log` feature is enabled, this will also install the LogTracer to convert `Log` records
tracing-subscriber/src/fmt/mod.rs:518
↓ 5 callers
Method
is_never
(&self)
tracing-core/src/subscriber.rs:634
↓ 5 callers
Method
is_span
Return true if the callsite kind is `Span`.
tracing-core/src/metadata.rs:330
↓ 5 callers
Method
metadata
(&self)
tracing-log/src/interest_cache.rs:127
↓ 5 callers
Method
metadata
(&self, id: &Id)
tracing-subscriber/src/fmt/fmt_layer.rs:1140
↓ 5 callers
Method
on_register_dispatch
Adds an expectation that [`Layer::on_register_dispatch`] will be called next. Note**: This expectation is usually fulfilled automatically when a laye
tracing-mock/src/layer.rs:719
↓ 5 callers
Method
register_callsite
(&self, metadata: &'static Metadata<'static>)
tracing-subscriber/src/filter/env/mod.rs:656
↓ 5 callers
Method
reload
Replace the current [`Layer`] or [`Filter`] with the provided `new_value`. [`Handle::reload`] cannot be used with the [`Filtered`] layer; use [`Handl
tracing-subscriber/src/reload.rs:300
↓ 5 callers
Method
remove
Remove a type from this `Extensions`. If a extension of this type existed, it will be returned.
tracing-subscriber/src/registry/extensions.rs:106
↓ 5 callers
Method
set_default
(new_dispatch: Dispatch)
tracing-core/src/dispatcher.rs:841
↓ 5 callers
Method
span_for
(&self, target: &T)
tracing-tower/src/lib.rs:87
↓ 5 callers
Function
test_appender
(rotation: Rotation, file_prefix: &str)
tracing-appender/src/rolling.rs:864
↓ 5 callers
Function
test_callsite
(level: log::Level)
tracing-log/src/lib.rs:555
↓ 5 callers
Method
with_filter
Wraps `self` with a predicate that takes a span or event's [`Metadata`] and returns a `bool`. The returned [`MakeWriter`]'s [`MakeWriter::make_writer_
tracing-subscriber/src/fmt/writer.rs:400
↓ 4 callers
Method
add
(&mut self, directive: T)
tracing-subscriber/src/filter/directive.rs:83
↓ 4 callers
Method
and
Combines two `FilterId`s, returning a new `FilterId` that will match a [`FilterMap`] where the span was disabled by _either_ this `FilterId` or* the c
tracing-subscriber/src/filter/layer_filters/mod.rs:995
↓ 4 callers
Method
boxed
(self)
tracing-subscriber/src/layer/mod.rs:1235
↓ 4 callers
Method
call
(&mut self, _v: usize)
tracing-attributes/tests/async_fn.rs:263
↓ 4 callers
Method
compact
Sets the subscriber being built to use a less verbose formatter. See [`format::Compact`].
tracing-subscriber/src/fmt/mod.rs:758
↓ 4 callers
Function
create
(flags: c_uint)
tracing-journald/src/memfd.rs:10
↓ 4 callers
Method
date_format
(&self)
tracing-appender/src/rolling.rs:560
↓ 4 callers
Function
events
()
tracing-subscriber/tests/hinted_layer_filters_dont_break_other_layers.rs:99
↓ 4 callers
Function
events
()
tracing-subscriber/tests/cached_layer_filters_dont_break_other_layers.rs:96
↓ 4 callers
Function
events
()
tracing-subscriber/tests/unhinted_layer_filters_dont_break_other_layers.rs:96
↓ 4 callers
Function
expect_parse
(dirs: impl AsRef<str>)
tracing-subscriber/src/filter/env/directive.rs:494
↓ 4 callers
Method
extend
(&mut self, iter: I)
tracing-subscriber/src/filter/targets.rs:408
↓ 4 callers
Method
field
Returns a [`Field`][super::field::Field] for the field with the given `name`, if one exists,
tracing/src/span.rs:1121
↓ 4 callers
Function
filter
()
tracing-subscriber/tests/hinted_layer_filters_dont_break_other_layers.rs:107
↓ 4 callers
Function
filter
()
tracing-subscriber/tests/cached_layer_filters_dont_break_other_layers.rs:104
↓ 4 callers
Function
filter
()
tracing-subscriber/tests/unhinted_layer_filters_dont_break_other_layers.rs:104
↓ 4 callers
Function
filtered
(name: &str)
tracing-subscriber/tests/hinted_layer_filters_dont_break_other_layers.rs:127
↓ 4 callers
Function
filtered
(name: &str)
tracing-subscriber/tests/cached_layer_filters_dont_break_other_layers.rs:119
↓ 4 callers
Function
filtered
(name: &str)
tracing-subscriber/tests/unhinted_layer_filters_dont_break_other_layers.rs:119
↓ 4 callers
Method
finish
(self)
tracing-subscriber/src/field/mod.rs:348
↓ 4 callers
Method
finish
(self)
tracing-subscriber/src/fmt/format/mod.rs:1344
↓ 4 callers
Function
for_all_dispatches
( group: &mut criterion::BenchmarkGroup<'_, WallTime>, mut iter: impl FnMut(&mut Bencher<'_, WallTime>
tracing/benches/shared.rs:35
↓ 4 callers
Function
for_all_recording
( group: &mut criterion::BenchmarkGroup<'_, WallTime>, mut iter: impl FnMut(&mut Bencher<'_, WallTime>
tracing/benches/shared.rs:10
↓ 4 callers
Method
has_ansi_escapes
Returns `true` if [ANSI escape codes] may be used to add colors and other formatting when writing to this `Writer`. If this returns `false`, formatte
tracing-subscriber/src/fmt/format/mod.rs:541
↓ 4 callers
Function
has_lines
(buf: &Mutex<Vec<u8>>, msgs: &[(tracing::Level, &str)])
tracing-subscriber/src/fmt/writer.rs:1260
↓ 4 callers
Function
id
Returns a new, unset `ExpectedId`. The `ExpectedId` needs to be attached to a [`NewSpan`] or an [`ExpectedSpan`] passed to [`MockSubscriber::new_span
tracing-mock/src/expect.rs:262
↓ 4 callers
Method
id
The Id of the actual span.
tracing-mock/src/span.rs:196
↓ 4 callers
Method
into_inner
Consumes `self` and returns the span `Id` and `Metadata` of the current span, if one exists and is known.
tracing-core/src/span.rs:294
↓ 4 callers
Method
into_u64
Returns the span's ID as a `u64`.
tracing-core/src/span.rs:86
↓ 4 callers
Method
is_always
(&self)
tracing-core/src/subscriber.rs:648
↓ 4 callers
Method
is_enabled_for
(&self, filter: FilterId)
tracing-subscriber/src/registry/mod.rs:504
↓ 4 callers
Method
is_event
Returns true if the callsite kind is `Event`.
tracing-core/src/metadata.rs:325
↓ 4 callers
Method
join_date
Returns the full filename for the provided date, using [`Rotation`] to round accordingly.
tracing-appender/src/rolling.rs:629
↓ 4 callers
Function
layer
()
tracing-subscriber/tests/layer_filters/boxed.rs:5
↓ 4 callers
Method
layer
(&self, inner: S)
tracing-tower/src/service_span.rs:54
↓ 4 callers
Method
len
For `"prefix.r#keyword.suffix"` compute `"prefix.keyword.suffix".len()`.
tracing/src/lib.rs:1106
↓ 4 callers
Method
level
(&self)
tracing-subscriber/src/filter/env/directive.rs:271
↓ 4 callers
Method
lookup_current
(&self)
tracing-subscriber/src/fmt/fmt_layer.rs:1177
↓ 4 callers
Method
metadata
Returns a static reference to the span's metadata.
tracing-subscriber/src/registry/mod.rs:346
↓ 4 callers
Function
my_fn
()
tracing-attributes/tests/instrument.rs:19
↓ 4 callers
Method
name
Returns a string representing the name of the field.
tracing-core/src/field.rs:813
↓ 4 callers
Method
normalized_metadata
(&'a self)
tracing-log/src/lib.rs:471
↓ 4 callers
Function
parse_date_from_filename
( filename: &str, date_format: &Vec<format_description::FormatItem<'static>>, prefix: Option<&str>
tracing-appender/src/rolling.rs:813
↓ 4 callers
Method
pretty
( self, )
tracing-subscriber/src/fmt/mod.rs:771
↓ 4 callers
Function
put_field_length_encoded
Append a sanitized and length-encoded field into `buf`. Unlike `put_field_wellformed` this function handles arbitrary field names and values. `name`
tracing-journald/src/lib.rs:578
↓ 4 callers
Method
record
(&self, _: &tracing::span::Id, _: &tracing::span::Record)
tracing/test-log-support/tests/log_with_trace.rs:15
↓ 4 callers
Method
replace
Replaces an existing `T` into this extensions. If `T` is not present, `Option::None` will be returned.
tracing-subscriber/src/registry/extensions.rs:94
↓ 4 callers
Method
round_date
Rounds the date towards the past using the [`Rotation`] interval. # Panics This method will panic if `self`` uses [`Rotation::NEVER`].
tracing-appender/src/rolling.rs:528
↓ 4 callers
Method
span
Returns a [`SpanRef`] for the span with the given `Id`, if it exists. A `SpanRef` is similar to [`SpanData`], but it allows performing additional loo
tracing-subscriber/src/registry/mod.rs:118
↓ 4 callers
Method
spawn
( &mut self, future: Box<dyn Future<Error = (), Item = ()> + 'static + Send>,
tracing-futures/src/executor/futures_01.rs:54
↓ 4 callers
Method
trace_close
(&self)
tracing-subscriber/src/fmt/format/mod.rs:1756
↓ 4 callers
Function
unfiltered
(name: &str)
tracing-subscriber/tests/hinted_layer_filters_dont_break_other_layers.rs:116
↓ 4 callers
Function
unfiltered
(name: &str)
tracing-subscriber/tests/cached_layer_filters_dont_break_other_layers.rs:108
↓ 4 callers
Function
unfiltered
(name: &str)
tracing-subscriber/tests/unhinted_layer_filters_dont_break_other_layers.rs:108
↓ 4 callers
Function
warn
()
tracing-attributes/tests/levels.rs:18
↓ 4 callers
Method
with_default_directive
Sets a default [filtering directive] that will be added to the filter if the parsed string or environment variable contains no filter directives. By
tracing-subscriber/src/filter/env/builder.rs:116
↓ 4 callers
Method
with_field_prefix
Sets the prefix to apply to names of user-defined fields other than the event `message` field. Defaults to `Some("F")`.
tracing-journald/src/lib.rs:134
↓ 4 callers
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/format/mod.rs:814
↓ 4 callers
Function
with_journald_layer
(layer: Layer, f: impl FnOnce())
tracing-journald/tests/journal.rs:32
↓ 4 callers
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/format/mod.rs:825
↓ 4 callers
Method
with_max_level
Wraps `self` and returns a [`MakeWriter`] that will only write output for events at or below the provided verbosity [`Level`]. For instance, `Level::T
tracing-subscriber/src/fmt/writer.rs:279
↓ 4 callers
Method
write_str
(&mut self, s: &str)
tracing-subscriber/src/filter/env/field.rs:377
↓ 3 callers
Method
as_trace
(&self)
tracing-log/src/lib.rs:231
↓ 3 callers
Method
assert_not_logged
(&self)
tracing/test-log-support/src/lib.rs:80
↓ 3 callers
Method
assert_removed
(&self, span: &str)
tracing-subscriber/src/registry/sharded.rs:690
↓ 3 callers
Function
assert_subscriber
(_s: impl Subscriber)
tracing-subscriber/src/layer/tests.rs:45
↓ 3 callers
Method
bold
(&self)
tracing-subscriber/src/fmt/format/pretty.rs:431
↓ 3 callers
Method
bold
(&self)
tracing-subscriber/src/fmt/format/mod.rs:550
↓ 3 callers
Method
checker
( &'a mut self, ctx: &'a str, subscriber_name: &'a str, )
tracing-mock/src/field.rs:493
↓ 3 callers
Method
dimmed
(&self)
tracing-subscriber/src/fmt/format/mod.rs:561
↓ 3 callers
Method
enabled
(&self, _metadata: &log::Metadata)
tracing/benches/shared.rs:60
↓ 3 callers
Method
enter
(&self)
tracing/src/span.rs:800
↓ 3 callers
Method
env_var_name
(&self)
tracing-subscriber/src/filter/env/builder.rs:343
↓ 3 callers
Function
error
()
tracing-attributes/tests/levels.rs:21
↓ 3 callers
Method
error_counter
Returns a counter for the number of times logs where dropped. This will always return zero if `NonBlocking` is not lossy.
tracing-appender/src/non_blocking.rs:178
↓ 3 callers
Method
event_format
Sets the [event formatter][`FormatEvent`] that the layer being built will use to format events. The event formatter may be any type implementing the
tracing-subscriber/src/fmt/fmt_layer.rs:116
↓ 3 callers
Method
event_span
(&self, event: &Event<'_>)
tracing-subscriber/src/layer/context.rs:169
↓ 3 callers
Function
expect_parse_level_directives
(s: &str)
tracing-subscriber/src/filter/targets.rs:630
← previous
next →
201–300 of 2,480, ranked by callers