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
↓ 2 callers
Method
into_level
Returns the most verbose [`Level`] that this filter accepts, or `None` if it is [`OFF`]. [`OFF`]: LevelFilter::OFF
tracing-core/src/metadata.rs:669
↓ 2 callers
Method
is_contextual
Returns true if the new span's parent should be determined based on the current context. If this is true and the current thread is currently inside a
tracing-core/src/span.rs:165
↓ 2 callers
Method
is_disabled
(&self)
tracing/src/span.rs:1258
↓ 2 callers
Method
is_empty
(&self)
tracing-mock/src/field.rs:505
↓ 2 callers
Method
is_enabled
(&self, metadata: &Metadata<'_>)
tracing-subscriber/src/filter/filter_fn.rs:277
↓ 2 callers
Method
is_enabled
(self, FilterId(mask): FilterId)
tracing-subscriber/src/filter/layer_filters/mod.rs:1063
↓ 2 callers
Method
is_enabled_inner
(&self, span: &span::Id, filter: FilterId)
tracing-subscriber/src/layer/context.rs:403
↓ 2 callers
Method
is_log
(&self)
tracing-log/src/lib.rs:492
↓ 2 callers
Method
is_sometimes
(&self)
tracing-core/src/subscriber.rs:641
↓ 2 callers
Method
italic
(&self)
tracing-subscriber/src/fmt/format/mod.rs:572
↓ 2 callers
Method
iter
(&self)
tracing-subscriber/src/filter/directive.rs:57
↓ 2 callers
Function
layer_has_plf
Does a type implementing `Layer` contain any per-layer filters?
tracing-subscriber/src/filter/mod.rs:59
↓ 2 callers
Function
layer_is_none
Is a type implementing `Layer` `Option::<_>::None`?
tracing-subscriber/src/layer/mod.rs:1524
↓ 2 callers
Method
len
(&self)
tracing-core/src/field.rs:964
↓ 2 callers
Function
loglevel_to_cs
( level: log::Level, )
tracing-log/src/lib.rs:341
↓ 2 callers
Method
lookup_current
(&self)
tracing-subscriber/src/layer/context.rs:256
↓ 2 callers
Method
make_writer
(&'a self)
tracing-subscriber/src/fmt/writer.rs:689
↓ 2 callers
Method
metadata
(&self)
tracing-core/tests/macros.rs:18
↓ 2 callers
Function
mk_dispatch
()
tracing-subscriber/benches/fmt.rs:89
↓ 2 callers
Method
modify
Invokes a closure with a mutable reference to the current layer or filter, allowing it to be modified in place.
tracing-subscriber/src/reload.rs:308
↓ 2 callers
Method
now
(&self)
tracing-appender/src/rolling.rs:217
↓ 2 callers
Method
paint
(&self, d: impl fmt::Display)
tracing-subscriber/src/fmt/format/mod.rs:1464
↓ 2 callers
Method
parent
Returns the new span's explicitly-specified parent, if there is one. Otherwise (if the new span is a root or is a child of the current span), returns
tracing-core/src/span.rs:173
↓ 2 callers
Method
parse
(input: ParseStream<'_>)
tracing-attributes/src/lib.rs:663
↓ 2 callers
Method
parse
(from: &str, regex: bool)
tracing-subscriber/src/filter/env/directive.rs:121
↓ 2 callers
Method
parse
Returns a new [`EnvFilter`] from the directives in the given string, or an error if any are invalid. If `parse` is called with an empty string, then
tracing-subscriber/src/filter/env/builder.rs:168
↓ 2 callers
Method
parse_lossy
Returns a new [`EnvFilter`] from the directives in the given string, ignoring* any that are invalid. If `parse_lossy` is called with an empty string,
tracing-subscriber/src/filter/env/builder.rs:146
↓ 2 callers
Function
path_to_string
Return a path as a String
tracing-attributes/src/expand.rs:782
↓ 2 callers
Method
print_indent
(&self, writer: &mut impl Write, indent: usize)
examples/examples/sloggish/sloggish_subscriber.rs:188
↓ 2 callers
Method
prune_old_logs
(&self, max_files: usize)
tracing-appender/src/rolling.rs:655
↓ 2 callers
Method
push_default
Push a `DefaultCallsite` to the callsite registry. If we know the callsite being pushed is a `DefaultCallsite`, we can push it to the linked list wit
tracing-core/src/callsite.rs:436
↓ 2 callers
Function
put_field_wellformed
Append arbitrary data with a well-formed name and value. `value` must not contain an internal newline, because this function writes `value` in the ne
tracing-journald/src/lib.rs:606
↓ 2 callers
Function
put_metadata
(buf: &mut Vec<u8>, meta: &Metadata<'_>, prefix: Option<&str>)
tracing-journald/src/lib.rs:549
↓ 2 callers
Method
put_prefix
(&mut self, field: &Field)
tracing-journald/src/lib.rs:406
↓ 2 callers
Method
put_span_prefix
(&mut self)
tracing-journald/src/lib.rs:370
↓ 2 callers
Function
put_value
Write the value portion of a key-value pair, in newline separated format. `value` must not contain an internal newline. For a "newline-safe" variant
tracing-journald/src/lib.rs:617
↓ 2 callers
Method
read
(&self)
tracing-subscriber/src/sync.rs:42
↓ 2 callers
Method
rebuild_interest
Rebuild `Interest`s for all callsites in the registry. This also re-computes the max level hint.
tracing-core/src/callsite.rs:406
↓ 2 callers
Function
rebuild_interest_cache
Clear and reregister interest on every [`Callsite`] This function is intended for runtime reconfiguration of filters on traces when the filter recalc
tracing-core/src/callsite.rs:221
↓ 2 callers
Method
record
(&self, _: &Id, values: &span::Record<'_>)
examples/examples/counters.rs:89
↓ 2 callers
Method
record
(&self, span: &tracing::Id, values: &tracing::span::Record<'_>)
examples/examples/sloggish/sloggish_subscriber.rs:209
↓ 2 callers
Method
record
(&self, _span: &Id, values: &span::Record<'_>)
tracing/benches/shared.rs:99
↓ 2 callers
Method
record
(&self, _span: &span::Id, _values: &span::Record<'_>)
tracing-subscriber/src/filter/env/mod.rs:870
↓ 2 callers
Method
record
(&self, _: &Id, _: &Record<'_>)
tracing-subscriber/tests/reload.rs:28
↓ 2 callers
Method
record_debug
(&mut self, field: &Field, value: &dyn fmt::Debug)
tracing-subscriber/src/fmt/format/pretty.rs:476
↓ 2 callers
Method
record_debug
(&mut self, field: &Field, value: &dyn fmt::Debug)
tracing-subscriber/src/fmt/format/mod.rs:1299
↓ 2 callers
Method
refresh_writer
(&self, now: OffsetDateTime, file: &mut File)
tracing-appender/src/rolling.rs:728
↓ 2 callers
Method
sanitizes_ansi_escapes
Returns `true` if ANSI escape codes should be sanitized.
tracing-subscriber/src/fmt/format/mod.rs:546
↓ 2 callers
Method
scope_mut
(&mut self)
tracing-mock/src/event.rs:530
↓ 2 callers
Method
select_preset
Selects a preset filter by index and updates the filter text area.
examples/examples/env-filter-explorer.rs:115
↓ 2 callers
Method
send_payload
(&self, _opayload: &[u8])
tracing-journald/src/lib.rs:235
↓ 2 callers
Method
should_rollover
Checks whether or not it's time to roll over the log file. Rather than returning a `bool`, this returns the current value of `next_date` so that we c
tracing-appender/src/rolling.rs:758
↓ 2 callers
Method
span_and_inner_pin_mut
Get a mutable reference to the [`Span`] a pinned mutable reference to the wrapped type.
tracing/src/instrument.rs:293
↓ 2 callers
Method
span_data
(&'a self, id: &Id)
tracing-subscriber/src/registry/sharded.rs:372
↓ 2 callers
Function
test_ansi
( is_ansi: bool, expected: &str, builder: crate::fmt::SubscriberBuilder<DefaultFields,
tracing-subscriber/src/fmt/format/mod.rs:1836
↓ 2 callers
Method
thread_with_setup
(&self, f: impl FnOnce(&Barrier) + Send + 'static)
tracing-subscriber/benches/support/mod.rs:31
↓ 2 callers
Method
time_since_last_event
(&self)
tracing-flame/src/lib.rs:472
↓ 2 callers
Method
to_static
(&self)
tracing-subscriber/src/filter/env/directive.rs:46
↓ 2 callers
Method
visitor
(&self)
tracing-subscriber/src/filter/env/field.rs:474
↓ 2 callers
Method
with_ansi
(self, ansi: bool)
tracing-subscriber/src/fmt/format/pretty.rs:379
↓ 2 callers
Method
with_ansi_sanitization
Sets whether ANSI control character sanitization is enabled. This defaults to `true` as a protective measure against terminal injection attacks. If t
tracing-subscriber/src/fmt/mod.rs:646
↓ 2 callers
Method
with_ansi_sanitization
Sets whether ANSI control character sanitization is enabled. This defaults to `true` as a protective measure against terminal injection attacks. If t
tracing-subscriber/src/fmt/fmt_layer.rs:354
↓ 2 callers
Method
with_env_var
Sets the name of the environment variable used by the [`from_env`], [`from_env_lossy`], and [`try_from_env`] methods. By default, this is the value o
tracing-subscriber/src/filter/env/builder.rs:132
↓ 2 callers
Method
with_filter
(self, filter: FilterId)
tracing-subscriber/src/registry/mod.rs:510
↓ 2 callers
Method
with_filter_reloading
Configures the subscriber being built to allow filter reloading at runtime.
tracing-subscriber/src/fmt/mod.rs:851
↓ 2 callers
Method
with_max_level_hint
Sets the max level that will be provided to the `tracing` system. This method can be used to test the internals of `tracing`, but it is also useful t
tracing-mock/src/subscriber.rs:958
↓ 2 callers
Method
with_priority_mappings
Sets how [`tracing_core::Level`]s are mapped to [journald priorities](Priority). # Examples ```rust use tracing_journald::{Priority, PriorityMapping
tracing-journald/src/lib.rs:169
↓ 2 callers
Method
with_span_events
Configures how synthesized events are emitted at points in the [span lifecycle][lifecycle]. The following options are available: - `FmtSpan::NONE`:
tracing-subscriber/src/fmt/mod.rs:611
↓ 2 callers
Method
with_subscriber
Attaches the provided [`Subscriber`] to this type, returning a `WithDispatch` wrapper. When the wrapped type is a future, stream, or sink, the attach
tracing-futures/src/lib.rs:218
↓ 2 callers
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/format/mod.rs:792
↓ 2 callers
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/mod.rs:731
↓ 2 callers
Function
write
(dest: &mut String, span: SpanRef<'_, S>, config: &Config)
tracing-flame/src/lib.rs:485
↓ 2 callers
Method
write
(&self)
tracing-appender/src/sync.rs:55
↓ 2 callers
Method
write
(&mut self, buf: &[u8])
examples/examples/env-filter-explorer.rs:151
↓ 2 callers
Method
write_fmt
Glue for usage of the [`write!`] macro with [`Writer`]s. This method should generally not be invoked manually, but rather through the [`write!`] macr
tracing-subscriber/src/fmt/format/mod.rs:531
↓ 1 callers
Method
add_fields
Record additional field(s) on an existing span. By default, this appends a space to the current set of fields if it is non-empty, and then calls `sel
tracing-subscriber/src/fmt/format/json.rs:380
↓ 1 callers
Method
add_input
Handles normal keyboard input by adding it to the filter text area.
examples/examples/env-filter-explorer.rs:123
↓ 1 callers
Method
add_interest
(&self, interest: Interest)
tracing-subscriber/src/filter/layer_filters/mod.rs:1126
↓ 1 callers
Method
and
Returns the common interest between these two Interests. If both interests are the same, this propagates that interest. Otherwise, if they differ, th
tracing-core/src/subscriber.rs:658
↓ 1 callers
Method
any_enabled
(self)
tracing-subscriber/src/filter/layer_filters/mod.rs:1068
↓ 1 callers
Method
as_log
(&self)
tracing-log/src/lib.rs:220
↓ 1 callers
Method
as_serde
(&'a self)
tracing-serde/src/lib.rs:529
↓ 1 callers
Method
as_str
(&self)
tracing/src/lib.rs:1095
↓ 1 callers
Method
assert_closed
(&self, span: &str)
tracing-subscriber/src/registry/sharded.rs:662
↓ 1 callers
Method
assert_closed_in_order
(&self, order: impl AsRef<[&'static str]>)
tracing-subscriber/src/registry/sharded.rs:737
↓ 1 callers
Function
assert_lookup_span
(_: T)
tracing-subscriber/src/fmt/mod.rs:1384
↓ 1 callers
Function
assert_lookup_span
(_: T)
tracing-subscriber/src/fmt/fmt_layer.rs:1352
↓ 1 callers
Method
bar
(&self)
tracing-attributes/tests/async_fn.rs:189
↓ 1 callers
Method
base_interest
(&self)
tracing-subscriber/src/filter/env/mod.rs:648
↓ 1 callers
Method
baz
(&self)
tracing-attributes/tests/async_fn.rs:197
↓ 1 callers
Method
call_with_mut_self
(&mut self)
tracing-attributes/tests/async_fn.rs:330
↓ 1 callers
Method
call_with_self
(&self)
tracing-attributes/tests/async_fn.rs:325
↓ 1 callers
Method
callsite_enabled
(&self, meta: &'static Metadata<'static>)
tracing-subscriber/src/filter/layer_filters/mod.rs:467
↓ 1 callers
Method
cares_about
(&self, meta: &Metadata<'_>)
tracing-subscriber/src/filter/directive.rs:246
↓ 1 callers
Method
cares_about_target
(&self, to_check: &str)
tracing-subscriber/src/filter/directive.rs:178
↓ 1 callers
Method
check_event_scope
( &self, current_scope: Option<tracing_subscriber::registry::Scope<'_, C>>, expected_s
tracing-mock/src/layer.rs:872
↓ 1 callers
Function
check_message
(level: &str, priority: &str)
tracing-journald/tests/journal.rs:182
↓ 1 callers
Function
check_number
(x: i32)
examples/examples/panic_hook.rs:51
↓ 1 callers
Function
check_number
(x: i32)
examples/examples/tokio_panic_hook.rs:45
↓ 1 callers
Method
clear
Clears the span's data in place, dropping the parent's reference count.
tracing-subscriber/src/registry/sharded.rs:495
← previous
next →
401–500 of 2,480, ranked by callers