MCPcopy Create free account

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

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

↓ 1 callersFunctiontransfer
(mut inbound: TcpStream, proxy_addr: SocketAddr)
examples/examples/futures-proxy-server.rs:40
↓ 1 callersFunctiontry_cache_interest
(_: &log::Metadata<'_>, callback: impl FnOnce() -> bool)
tracing-log/src/log_tracer.rs:165
↓ 1 callersMethodtry_close
(&self, id: span::Id)
tracing-core/src/subscriber.rs:767
↓ 1 callersMethodtry_close
(&self, _: tracing::span::Id)
tracing/test-log-support/tests/log_with_trace.rs:20
↓ 1 callersMethodtry_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 callersMethodtry_close
(&self, id: span::Id)
tracing-subscriber/src/layer/layered.rs:184
↓ 1 callersMethodtry_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 callersFunctiontry_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 callersMethodtry_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 callersMethodvalues
Returns a reference to a `ValueSet` containing any values the new span was created with.
tracing-core/src/span.rs:149
↓ 1 callersMethodvisit
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 callersMethodvisit_type_mut
(&mut self, ty: &mut Type)
tracing-attributes/src/expand.rs:817
↓ 1 callersFunctionwarn_span
()
examples/examples/env-filter-explorer.rs:231
↓ 1 callersMethodwarnings
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 callersMethodwith_context
( &self, dispatch: &Dispatch, id: &span::Id, mut f: impl FnMut(&'static Metada
tracing-error/src/layer.rs:106
↓ 1 callersMethodwith_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 callersMethodwith_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 callersMethodwith_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 callersFunctionwith_default_parent
()
tracing-attributes/tests/parents.rs:6
↓ 1 callersFunctionwith_explicit_parent
(parent_span: P)
tracing-attributes/tests/parents.rs:9
↓ 1 callersFunctionwith_fields
(foo: u32, bar: &'static str)
examples/examples/env-filter-explorer.rs:205
↓ 1 callersMethodwith_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 callersFunctionwith_follows_from_async
(causes: impl IntoIterator<Item = impl Into<Option<Id>>>)
tracing-attributes/tests/follows_from.rs:10
↓ 1 callersFunctionwith_follows_from_sync
(causes: impl IntoIterator<Item = impl Into<Option<Id>>>)
tracing-attributes/tests/follows_from.rs:7
↓ 1 callersMethodwith_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 callersMethodwith_interest_cache
(mut self, config: crate::InterestCacheConfig)
tracing-log/src/log_tracer.rs:274
↓ 1 callersMethodwith_kind
(self, kind: FmtSpan)
tracing-subscriber/src/fmt/format/mod.rs:1741
↓ 1 callersMethodwith_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 callersMethodwith_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 callersMethodwith_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 callersMethodwith_style
(self, style: Style)
tracing-subscriber/src/fmt/format/pretty.rs:417
↓ 1 callersMethodwith_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 callersMethodwith_target
Sets whether or not an event's target is displayed.
tracing-subscriber/src/fmt/fmt_layer.rs:509
↓ 1 callersMethodwith_target
Sets whether or not an event's target is displayed.
tracing-subscriber/src/fmt/format/mod.rs:773
↓ 1 callersMethodwith_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 callersMethodwith_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 callersMethodwith_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 callersMethodwithout_time
Do not emit timestamps with spans and event.
tracing-subscriber/src/fmt/fmt_layer.rs:447
↓ 1 callersMethodwithout_time
Do not emit timestamps with log messages.
tracing-subscriber/src/fmt/format/mod.rs:749
↓ 1 callersMethodwork
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 callersMethodworker_thread
Creates a worker thread that processes a channel until it's disconnected
tracing-appender/src/worker.rs:70
↓ 1 callersFunctionwrite
(stream: &mut TcpStream)
examples/examples/async-fn.rs:35
↓ 1 callersMethodwrite
(&mut self, buf: &[u8])
tracing-appender/src/rolling.rs:227
↓ 1 callersMethodwrite
(&mut self, buf: &[u8])
tracing-appender/src/non_blocking.rs:239
↓ 1 callersMethodwrite
(&mut self, _: &[u8])
tracing-subscriber/src/registry/extensions.rs:21
↓ 1 callersFunctionwrite_non_blocking
(non_blocking: &mut NonBlocking, msg: &[u8])
tracing-appender/src/non_blocking.rs:406
↓ 1 callersMethodwrite_padded
(&mut self, value: &impl fmt::Debug)
tracing-subscriber/src/fmt/format/pretty.rs:421
↓ 1 callersFunctionwrite_to_log
(appender: &mut RollingFileAppender, msg: &str)
tracing-appender/src/rolling.rs:857
↓ 1 callersMethodwriter
(&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
Functionadd_directive_enables_event
()
tracing-subscriber/tests/env_filter/main.rs:160
Functionadd_directive_enables_event
()
tracing-subscriber/tests/env_filter/per_layer.rs:157
Methodadd_fields
( &self, current: &'writer mut FormattedFields<Self>, fields: &span::Record<'_>, )
tracing-subscriber/src/fmt/format/pretty.rs:344
Methodadd_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
Functionall_filtered_max_level_hint
()
tracing-subscriber/tests/layer_filters/vec.rs:97
Methodalways
()
tracing-core/src/subscriber.rs:627
Functionand
()
tracing-subscriber/tests/layer_filters/combinators.rs:8
Methodand
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
Functionansi_sanitization_can_be_disabled_for_messages
()
tracing-subscriber/tests/ansi_escaping.rs:296
Functionansi_sanitization_can_be_disabled_for_pretty_messages
()
tracing-subscriber/tests/ansi_escaping.rs:321
Functionansi_sanitization_prevents_injection
()
tracing-subscriber/tests/ansi_escaping.rs:193
Functionarced_subscriber
()
tracing/tests/subscriber.rs:91
Methodas_array
(&self)
tracing-journald/tests/journal.rs:54
Methodas_text
(&self)
tracing-journald/tests/journal.rs:62
Methodassert_last_closed
may want this for future tests
tracing-subscriber/src/registry/sharded.rs:726
Functionasync_block_is_send
()
tracing/tests/future_send.rs:16
Functionasync_fn_is_send
()
tracing/tests/future_send.rs:7
Functionasync_fn_nested
()
tracing-attributes/tests/async_fn.rs:113
Functionasync_fn_only_enters_for_polls
()
tracing-attributes/tests/async_fn.rs:93
Functionasync_fn_with_async_trait
()
tracing-attributes/tests/async_fn.rs:151
Functionasync_fn_with_async_trait_and_fields_expressions
()
tracing-attributes/tests/async_fn.rs:242
Functionasync_fn_with_async_trait_and_fields_expressions_with_generic_parameter
()
tracing-attributes/tests/async_fn.rs:293
Methodat_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
Functionbackpressure_exerted
()
tracing-appender/src/non_blocking.rs:372
Methodbad_request
(e: impl std::error::Error + Send + 'static)
examples/examples/tower-load.rs:279
Functionbasic_layer_filter_spans
()
tracing-subscriber/tests/layer_filters/main.rs:51
Functionbasic_layer_filters
()
tracing-subscriber/tests/layer_filters/main.rs:16
Functionbasic_trees
()
tracing-subscriber/tests/layer_filters/trees.rs:5
Functionbench
(c: &mut Criterion)
tracing/benches/span_repeated.rs:6
Functionbench
(c: &mut Criterion)
tracing/benches/empty_span.rs:5
Functionbench
(c: &mut Criterion)
tracing/benches/enter_span.rs:6
Functionbench
(c: &mut Criterion)
tracing/benches/dispatch_get_ref.rs:5
Functionbench
(c: &mut Criterion)
tracing/benches/event.rs:5
Functionbench
(c: &mut Criterion)
tracing/benches/span_no_fields.rs:6
Functionbench
(c: &mut Criterion)
tracing/benches/baseline.rs:3
Functionbench
(c: &mut Criterion)
tracing/benches/span_fields.rs:6
Functionbench
(c: &mut Criterion)
tracing/benches/dispatch_get_clone.rs:5
Functionbench_dynamic
(c: &mut Criterion)
tracing-subscriber/benches/filter.rs:184
Functionbench_dynamic
(c: &mut Criterion)
tracing-subscriber/benches/filter_log.rs:186
Functionbench_event
(c: &mut Criterion)
tracing-subscriber/benches/fmt.rs:96
Functionbench_logger
(c: &mut Criterion)
tracing-log/benches/logging.rs:47
Functionbench_mixed
(c: &mut Criterion)
tracing-subscriber/benches/filter.rs:283
Functionbench_mixed
(c: &mut Criterion)
tracing-subscriber/benches/filter_log.rs:287
Functionbench_new_span
(c: &mut Criterion)
tracing-subscriber/benches/fmt.rs:30
Functionbench_static
(c: &mut Criterion)
tracing-subscriber/benches/filter.rs:44
Functionbench_static
(c: &mut Criterion)
tracing-subscriber/benches/filter_log.rs:44
Methodblock_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
Functionborrow_val_events
()
tracing/tests/macros.rs:1375
← previousnext →801–900 of 2,480, ranked by callers