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
↓ 1 callers
Function
transfer
(mut inbound: TcpStream, proxy_addr: SocketAddr)
examples/examples/futures-proxy-server.rs:40
↓ 1 callers
Function
try_cache_interest
(_: &log::Metadata<'_>, callback: impl FnOnce() -> bool)
tracing-log/src/log_tracer.rs:165
↓ 1 callers
Method
try_close
(&self, id: span::Id)
tracing-core/src/subscriber.rs:767
↓ 1 callers
Method
try_close
(&self, _: tracing::span::Id)
tracing/test-log-support/tests/log_with_trace.rs:20
↓ 1 callers
Method
try_close
Decrements the reference count of the span with the given `id`, and removes the span if it is zero. The allocated span slot will be reused when a new
tracing-subscriber/src/registry/sharded.rs:346
↓ 1 callers
Method
try_close
(&self, id: span::Id)
tracing-subscriber/src/layer/layered.rs:184
↓ 1 callers
Method
try_from_env
Returns a new `EnvFilter` from the value of the given environment variable, or an error if the environment variable is unset or contains any invalid f
tracing-subscriber/src/filter/env/mod.rs:420
↓ 1 callers
Function
try_init
Install a global tracing subscriber that listens for events and filters based on the value of the [`RUST_LOG` environment variable], if one is not alr
tracing-subscriber/src/fmt/mod.rs:1200
↓ 1 callers
Method
try_init
Attempts to set `self` as the [global default subscriber] in the current scope, returning an error if one is already set. If the "tracing-log" featur
tracing-subscriber/src/util.rs:61
↓ 1 callers
Method
values
Returns a reference to a `ValueSet` containing any values the new span was created with.
tracing-core/src/span.rs:149
↓ 1 callers
Method
visit
Visit a set of fields, and return the output of finishing the visitor once the fields have been visited.
tracing-subscriber/src/field/mod.rs:45
↓ 1 callers
Method
visit_type_mut
(&mut self, ty: &mut Type)
tracing-attributes/src/expand.rs:817
↓ 1 callers
Function
warn_span
()
examples/examples/env-filter-explorer.rs:231
↓ 1 callers
Method
warnings
Generate "deprecation" warnings for any unrecognized attribute inputs that we skipped. For backwards compatibility, we need to emit compiler warnings
tracing-attributes/src/attr.rs:53
↓ 1 callers
Method
with_context
( &self, dispatch: &Dispatch, id: &span::Id, mut f: impl FnMut(&'static Metada
tracing-error/src/layer.rs:106
↓ 1 callers
Method
with_current
Invokes a closure with a borrowed reference to the current layer or filter, returning the result (or an error if the subscriber no longer exists).
tracing-subscriber/src/reload.rs:344
↓ 1 callers
Method
with_current_span
Sets whether or not the JSON subscriber being built will include the current span in formatted events. See [`format::Json`] for details.
tracing-subscriber/src/fmt/mod.rs:818
↓ 1 callers
Method
with_custom_fields
Adds fields that will get be passed to journald with every log entry. The input values of this function are interpreted as `(field, value)` pairs. T
tracing-journald/src/lib.rs:217
↓ 1 callers
Function
with_default_parent
()
tracing-attributes/tests/parents.rs:6
↓ 1 callers
Function
with_explicit_parent
(parent_span: P)
tracing-attributes/tests/parents.rs:9
↓ 1 callers
Function
with_fields
(foo: u32, bar: &'static str)
examples/examples/env-filter-explorer.rs:205
↓ 1 callers
Method
with_file
Constructs a `FlameLayer` that outputs to a `BufWriter` to the given path, and a `FlushGuard` to ensure the writer is flushed.
tracing-flame/src/lib.rs:370
↓ 1 callers
Function
with_follows_from_async
(causes: impl IntoIterator<Item = impl Into<Option<Id>>>)
tracing-attributes/tests/follows_from.rs:10
↓ 1 callers
Function
with_follows_from_sync
(causes: impl IntoIterator<Item = impl Into<Option<Id>>>)
tracing-attributes/tests/follows_from.rs:7
↓ 1 callers
Method
with_id
Sets the `ID` to expect when matching a span. The [`ExpectedId`] can be used to differentiate spans that are otherwise identical. An [`ExpectedId`] n
tracing-mock/src/span.rs:424
↓ 1 callers
Method
with_interest_cache
(mut self, config: crate::InterestCacheConfig)
tracing-log/src/log_tracer.rs:274
↓ 1 callers
Method
with_kind
(self, kind: FmtSpan)
tracing-subscriber/src/fmt/format/mod.rs:1741
↓ 1 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/mod.rs:706
↓ 1 callers
Method
with_lru_cache_size
Sets the number of entries in the LRU cache used to cache interests for `log` records. The bigger the cache, the more unlikely it will be for the int
tracing-log/src/interest_cache.rs:78
↓ 1 callers
Method
with_spans
Apply a function to all captured spans in the trace until it returns `false`. This will call the provided function with a reference to the [`Metadata
tracing-error/src/backtrace.rs:118
↓ 1 callers
Method
with_style
(self, style: Style)
tracing-subscriber/src/fmt/format/pretty.rs:417
↓ 1 callers
Method
with_syslog_identifier
Sets the syslog identifier for this logger. The syslog identifier comes from the classic syslog interface (`openlog()` and `syslog()`) and tags log e
tracing-journald/src/lib.rs:190
↓ 1 callers
Method
with_target
Sets whether or not an event's target is displayed.
tracing-subscriber/src/fmt/fmt_layer.rs:509
↓ 1 callers
Method
with_target
Sets whether or not an event's target is displayed.
tracing-subscriber/src/fmt/format/mod.rs:773
↓ 1 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/mod.rs:745
↓ 1 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/format/mod.rs:803
↓ 1 callers
Method
with_timer
Use the given [`timer`] for log message timestamps. See the [`time` module] for the provided timer implementations. Note that using the `"time`"" fe
tracing-subscriber/src/fmt/mod.rs:555
↓ 1 callers
Method
without_time
Do not emit timestamps with spans and event.
tracing-subscriber/src/fmt/fmt_layer.rs:447
↓ 1 callers
Method
without_time
Do not emit timestamps with log messages.
tracing-subscriber/src/fmt/format/mod.rs:749
↓ 1 callers
Method
work
Blocks on the first recv of each batch of logs, unless the channel is disconnected. Afterwards, grabs as many logs as it can off the channel, buffers
tracing-appender/src/worker.rs:56
↓ 1 callers
Method
worker_thread
Creates a worker thread that processes a channel until it's disconnected
tracing-appender/src/worker.rs:70
↓ 1 callers
Function
write
(stream: &mut TcpStream)
examples/examples/async-fn.rs:35
↓ 1 callers
Method
write
(&mut self, buf: &[u8])
tracing-appender/src/rolling.rs:227
↓ 1 callers
Method
write
(&mut self, buf: &[u8])
tracing-appender/src/non_blocking.rs:239
↓ 1 callers
Method
write
(&mut self, _: &[u8])
tracing-subscriber/src/registry/extensions.rs:21
↓ 1 callers
Function
write_non_blocking
(non_blocking: &mut NonBlocking, msg: &[u8])
tracing-appender/src/non_blocking.rs:406
↓ 1 callers
Method
write_padded
(&mut self, value: &impl fmt::Debug)
tracing-subscriber/src/fmt/format/pretty.rs:421
↓ 1 callers
Function
write_to_log
(appender: &mut RollingFileAppender, msg: &str)
tracing-appender/src/rolling.rs:857
↓ 1 callers
Method
writer
(&mut self)
tracing-subscriber/src/field/delimited.rs:130
Function
__disabled_span
(meta: &'static Metadata<'static>)
tracing/src/lib.rs:1025
Function
__is_enabled
/!\ WARNING: This is *not* a stable API! /!\ This function, and all code contained in the `__macro_support` module, is a *private* API of `tracing`. I
tracing/src/lib.rs:1013
Function
__tracing_log
( meta: &Metadata<'static>, logger: &'static dyn log::Log, log_meta: log::Metadata<'_>
tracing/src/lib.rs:1048
Function
add_directive_enables_event
()
tracing-subscriber/tests/env_filter/main.rs:160
Function
add_directive_enables_event
()
tracing-subscriber/tests/env_filter/per_layer.rs:157
Method
add_fields
( &self, current: &'writer mut FormattedFields<Self>, fields: &span::Record<'_>, )
tracing-subscriber/src/fmt/format/pretty.rs:344
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/mod.rs:244
Function
all_filtered_max_level_hint
()
tracing-subscriber/tests/layer_filters/vec.rs:97
Method
always
()
tracing-core/src/subscriber.rs:627
Function
and
()
tracing-subscriber/tests/layer_filters/combinators.rs:8
Method
and
Combines this [`Filter`] with another [`Filter`] s so that spans and events are enabled if and only if *both* filters return `true`. # Examples Enab
tracing-subscriber/src/filter/layer_filters/mod.rs:224
Function
ansi_sanitization_can_be_disabled_for_messages
()
tracing-subscriber/tests/ansi_escaping.rs:296
Function
ansi_sanitization_can_be_disabled_for_pretty_messages
()
tracing-subscriber/tests/ansi_escaping.rs:321
Function
ansi_sanitization_prevents_injection
()
tracing-subscriber/tests/ansi_escaping.rs:193
Function
arced_subscriber
()
tracing/tests/subscriber.rs:91
Method
as_array
(&self)
tracing-journald/tests/journal.rs:54
Method
as_text
(&self)
tracing-journald/tests/journal.rs:62
Method
assert_last_closed
may want this for future tests
tracing-subscriber/src/registry/sharded.rs:726
Function
async_block_is_send
()
tracing/tests/future_send.rs:16
Function
async_fn_is_send
()
tracing/tests/future_send.rs:7
Function
async_fn_nested
()
tracing-attributes/tests/async_fn.rs:113
Function
async_fn_only_enters_for_polls
()
tracing-attributes/tests/async_fn.rs:93
Function
async_fn_with_async_trait
()
tracing-attributes/tests/async_fn.rs:151
Function
async_fn_with_async_trait_and_fields_expressions
()
tracing-attributes/tests/async_fn.rs:242
Function
async_fn_with_async_trait_and_fields_expressions_with_generic_parameter
()
tracing-attributes/tests/async_fn.rs:293
Method
at_level
Sets the [`Level`](tracing::Level) to expect when matching an event. If an event is recorded at a different level, this expectation will fail. # Exa
tracing-mock/src/event.rs:190
Function
backpressure_exerted
()
tracing-appender/src/non_blocking.rs:372
Method
bad_request
(e: impl std::error::Error + Send + 'static)
examples/examples/tower-load.rs:279
Function
basic_layer_filter_spans
()
tracing-subscriber/tests/layer_filters/main.rs:51
Function
basic_layer_filters
()
tracing-subscriber/tests/layer_filters/main.rs:16
Function
basic_trees
()
tracing-subscriber/tests/layer_filters/trees.rs:5
Function
bench
(c: &mut Criterion)
tracing/benches/span_repeated.rs:6
Function
bench
(c: &mut Criterion)
tracing/benches/empty_span.rs:5
Function
bench
(c: &mut Criterion)
tracing/benches/enter_span.rs:6
Function
bench
(c: &mut Criterion)
tracing/benches/dispatch_get_ref.rs:5
Function
bench
(c: &mut Criterion)
tracing/benches/event.rs:5
Function
bench
(c: &mut Criterion)
tracing/benches/span_no_fields.rs:6
Function
bench
(c: &mut Criterion)
tracing/benches/baseline.rs:3
Function
bench
(c: &mut Criterion)
tracing/benches/span_fields.rs:6
Function
bench
(c: &mut Criterion)
tracing/benches/dispatch_get_clone.rs:5
Function
bench_dynamic
(c: &mut Criterion)
tracing-subscriber/benches/filter.rs:184
Function
bench_dynamic
(c: &mut Criterion)
tracing-subscriber/benches/filter_log.rs:186
Function
bench_event
(c: &mut Criterion)
tracing-subscriber/benches/fmt.rs:96
Function
bench_logger
(c: &mut Criterion)
tracing-log/benches/logging.rs:47
Function
bench_mixed
(c: &mut Criterion)
tracing-subscriber/benches/filter.rs:283
Function
bench_mixed
(c: &mut Criterion)
tracing-subscriber/benches/filter_log.rs:287
Function
bench_new_span
(c: &mut Criterion)
tracing-subscriber/benches/fmt.rs:30
Function
bench_static
(c: &mut Criterion)
tracing-subscriber/benches/filter.rs:44
Function
bench_static
(c: &mut Criterion)
tracing-subscriber/benches/filter_log.rs:44
Method
block_on
Run an instrumented future to completion on the Tokio runtime. This runs the given future on the runtime, blocking until it is complete, and yielding
tracing-futures/src/executor/futures_01.rs:110
Function
borrow_val_events
()
tracing/tests/macros.rs:1375
← previous
next →
801–900 of 2,480, ranked by callers