/third_party/rust/crates/tracing/tracing-subscriber/benches/ |
D | filter.rs | 3 use tracing::{dispatcher::Dispatch, span, Event, Id, Metadata}; 12 impl tracing::Subscriber for EnabledSubscriber { 48 tracing::subscriber::with_default(EnabledSubscriber, || { in bench_static() 50 tracing::info!(target: "static_filter", "hi"); in bench_static() 51 tracing::debug!(target: "static_filter", "hi"); in bench_static() 52 tracing::warn!(target: "static_filter", "hi"); in bench_static() 53 tracing::trace!(target: "foo", "hi"); in bench_static() 61 tracing::subscriber::with_default(EnabledSubscriber.with(filter), || { in bench_static() 63 tracing::info!(target: "static_filter", "hi"); in bench_static() 64 tracing::debug!(target: "static_filter", "hi"); in bench_static() [all …]
|
D | fmt.rs | 33 tracing::dispatcher::with_default(&mk_dispatch(), || { in bench_new_span() 36 let _span = tracing::info_span!("span", n); in bench_new_span() 50 let _span = tracing::info_span!("span", n); in bench_new_span() 55 let _span = tracing::info_span!("span", n); in bench_new_span() 60 let _span = tracing::info_span!("span", n); in bench_new_span() 65 let _span = tracing::info_span!("span", n); in bench_new_span() 89 fn mk_dispatch() -> tracing::Dispatch { in mk_dispatch() 93 tracing::Dispatch::new(subscriber) in mk_dispatch() 100 tracing::dispatcher::with_default(&dispatch, || { in bench_event() 103 tracing::info!(n); in bench_event() [all …]
|
D | enter.rs | 7 .with_max_level(tracing::Level::INFO) in enter() 11 let span = tracing::info_span!("foo"); in enter() 15 let span = tracing::debug_span!("foo"); in enter() 23 .with_max_level(tracing::Level::INFO) in enter_exit() 27 let span = tracing::info_span!("foo"); in enter_exit() 31 let span = tracing::debug_span!("foo"); in enter_exit() 39 .with_max_level(tracing::Level::INFO) in enter_many() 43 let span1 = tracing::info_span!("span1"); in enter_many() 45 let span2 = tracing::info_span!("span2"); in enter_many() 47 let span3 = tracing::info_span!("span3"); in enter_many() [all …]
|
/third_party/rust/crates/tracing/examples/ |
D | Cargo.toml | 2 name = "tracing-examples" 13 # tracing crates 14 tracing = { path = "../tracing", version = "0.1.35" } 15 tracing-core = { path = "../tracing-core", version = "0.1.28" } 16 tracing-error = { path = "../tracing-error" } 17 tracing-flame = { path = "../tracing-flame" } 18 tracing-tower = { version = "0.1.0", path = "../tracing-tower" } 19 tracing-subscriber = { path = "../tracing-subscriber", version = "0.3.0", features = ["json", "env-… 20 tracing-futures = { version = "0.2.1", path = "../tracing-futures", features = ["futures-01"] } 21 tracing-attributes = { path = "../tracing-attributes", version = "0.1.22" } [all …]
|
D | README.md | 4 `tracing` ecosystem: 6 - **tracing**: 11 - **tracing-attributes**: 18 - **tracing-subscriber**: 19 + `fmt`: Demonstrates the use of the [`fmt`] module in `tracing-subscriber`, 25 [`tracing-subscriber::fmt`][`fmt`]. 27 [`tracing-subscriber::fmt`][`fmt`]. 29 [`tracing-subscriber::fmt`][`fmt`]. 38 + `subscriber-filter`: Demonstrates the `tracing-subscriber::filter` module, 47 - **tracing-futures**: [all …]
|
/third_party/rust/crates/tracing/tracing-subscriber/tests/env_filter/ |
D | main.rs | 9 use tracing::{self, subscriber::with_default, Level}; 27 tracing::trace!("this should be disabled"); in level_filter_event() 28 tracing::info!("this shouldn't be"); in level_filter_event() 29 tracing::debug!(target: "foo", "this should also be disabled"); in level_filter_event() 30 tracing::warn!(target: "foo", "this should be enabled"); in level_filter_event() 31 tracing::error!("this should be enabled too"); in level_filter_event() 59 tracing::trace_span!("foo", bar = 1); in same_name_spans() 60 tracing::trace_span!("foo", baz = 1); in same_name_spans() 80 tracing::trace!("this should be disabled"); in level_filter_event_with_target() 81 tracing::info!("this shouldn't be"); in level_filter_event_with_target() [all …]
|
D | per_layer.rs | 20 tracing::trace!("this should be disabled"); in level_filter_event() 21 tracing::info!("this shouldn't be"); in level_filter_event() 22 tracing::debug!(target: "foo", "this should also be disabled"); in level_filter_event() 23 tracing::warn!(target: "foo", "this should be enabled"); in level_filter_event() 24 tracing::error!("this should be enabled too"); in level_filter_event() 54 tracing::trace_span!("foo", bar = 1); in same_name_spans() 55 tracing::trace_span!("foo", baz = 1); in same_name_spans() 76 tracing::trace!("this should be disabled"); in level_filter_event_with_target() 77 tracing::info!("this shouldn't be"); in level_filter_event_with_target() 78 tracing::debug!(target: "stuff", "this should be enabled"); in level_filter_event_with_target() [all …]
|
/third_party/rust/crates/tracing/ |
D | README.md | 3 [splash]: https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/splash.svg 12 [crates-badge]: https://img.shields.io/crates/v/tracing.svg 13 [crates-url]: https://crates.io/crates/tracing 14 [docs-badge]: https://docs.rs/tracing/badge.svg 15 [docs-url]: https://docs.rs/tracing 17 [docs-master-url]: https://tracing-rs.netlify.com 20 [actions-badge]: https://github.com/tokio-rs/tracing/workflows/CI/badge.svg 21 [actions-url]:https://github.com/tokio-rs/tracing/actions?query=workflow%3ACI 26 [Chat](https://discord.gg/EeF3cQw) | [Documentation (master branch)](https://tracing-rs.netlify.com… 30 `tracing` is a framework for instrumenting Rust programs to collect [all …]
|
D | Cargo.toml | 4 "tracing", 5 "tracing-core", 6 "tracing-attributes", 7 "tracing-error", 8 "tracing-flame", 9 "tracing-futures", 10 "tracing-tower", 11 "tracing-log", 12 "tracing-macros", 13 "tracing-mock", [all …]
|
/third_party/rust/crates/tracing/tracing/ |
D | CHANGELOG.md | 3 This release of `tracing` incorporates changes from `tracing-core` 4 [v0.1.30][core-0.1.30] and `tracing-attributes` [v0.1.23][attrs-0.1.23], 8 `bare_trait_objects` lint, which is now a warning on `tracing`'s MSRV and will 28 - `tracing-core`: updated to [0.1.30][core-0.1.30] 29 - `tracing-attributes`: updated to [0.1.23][attrs-0.1.23] 33 - Added [`tracing-web`] and [`reqwest-tracing`] to related crates ([#2283], 40 [core-0.1.30]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.30 41 [attrs-0.1.23]: https://github.com/tokio-rs/tracing/releases/tag/tracing-attributes-0.1.23 42 [`tracing-web`]: https://crates.io/crates/tracing-web/ 43 [`reqwest-tracing`]: https://crates.io/crates/reqwest-tracing/ [all …]
|
D | README.md | 3 [splash]: https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/splash.svg 5 # tracing chapter 7 Application-level tracing for Rust. 18 [crates-badge]: https://img.shields.io/crates/v/tracing.svg 19 [crates-url]: https://crates.io/crates/tracing 20 [docs-badge]: https://docs.rs/tracing/badge.svg 21 [docs-url]: https://docs.rs/tracing 23 [docs-master-url]: https://tracing-rs.netlify.com/tracing 26 [actions-badge]: https://github.com/tokio-rs/tracing/workflows/CI/badge.svg 27 [actions-url]:https://github.com/tokio-rs/tracing/actions?query=workflow%3ACI [all …]
|
/third_party/rust/crates/tracing/tracing-subscriber/ |
D | Cargo.toml | 2 name = "tracing-subscriber" 12 repository = "https://github.com/tokio-rs/tracing" 15 Utilities for implementing and composing `tracing` subscribers. 22 keywords = ["logging", "tracing", "metrics", "subscriber"] 27 default = ["smallvec", "fmt", "ansi", "tracing-log", "std"] 29 std = ["alloc", "tracing-core/std"] 30 env-filter = ["matchers", "regex", "once_cell", "tracing", "std", "thread_local"] 34 json = ["tracing-serde", "serde", "serde_json"] 35 valuable = ["tracing-core/valuable", "valuable_crate", "valuable-serde", "tracing-serde/valuable"] 41 tracing-core = { path = "../tracing-core", version = "0.1.28", default-features = false } [all …]
|
D | CHANGELOG.md | 12 [#2204]: https://github.com/tokio-rs/tracing/pull/2204 32 [#2193]: https://github.com/tokio-rs/tracing/pull/2193 33 [#2195]: https://github.com/tokio-rs/tracing/pull/2195 37 This release of `tracing-subscriber` fixes a compilation failure due to an 38 incorrect `tracing-core` dependency that was introduced in v0.3.12. 44 [#2190]: https://github.com/tokio-rs/tracing/pull/2190 48 This release of `tracing-subscriber` adds a new `Layer::event_enabled` method, 70 - Don't enable `tracing-core` features by default ([#2107]) 77 [#2008]: https://github.com/tokio-rs/tracing/pull/2008 78 [#2159]: https://github.com/tokio-rs/tracing/pull/2159 [all …]
|
/third_party/rust/crates/tracing/tracing/tests/ |
D | macro_imports.rs | 1 use tracing::Level; 6 tracing::span!(Level::DEBUG, "foo"); in prefixed_span_macros() 7 tracing::trace_span!("foo"); in prefixed_span_macros() 8 tracing::debug_span!("foo"); in prefixed_span_macros() 9 tracing::info_span!("foo"); in prefixed_span_macros() 10 tracing::warn_span!("foo"); in prefixed_span_macros() 11 tracing::error_span!("foo"); in prefixed_span_macros() 17 tracing::event!(Level::DEBUG, "foo"); in prefixed_event_macros() 18 tracing::trace!("foo"); in prefixed_event_macros() 19 tracing::debug!("foo"); in prefixed_event_macros() [all …]
|
D | span.rs | 8 use tracing::{ 23 let foo1 = tracing::span!(Level::TRACE, "foo"); in handles_to_the_same_span_are_equal() 36 let foo1 = tracing::span!(Level::TRACE, "foo", bar = 1u64, baz = false); in handles_to_different_spans_are_not_equal() 37 let foo2 = tracing::span!(Level::TRACE, "foo", bar = 1u64, baz = false); in handles_to_different_spans_are_not_equal() 49 tracing::span!(Level::TRACE, "foo", bar = 1u64, baz = false) in handles_to_different_spans_with_the_same_metadata_are_not_equal() 75 let foo = tracing::span!(Level::TRACE, "foo"); in spans_always_go_to_the_subscriber_that_tagged_them() 100 let foo = tracing::span!(Level::TRACE, "foo"); in spans_always_go_to_the_subscriber_that_tagged_them_even_across_threads() 126 let span = tracing::span!(Level::TRACE, "foo"); in dropping_a_span_calls_drop_span() 145 tracing::span!(Level::TRACE, "foo").in_scope(|| { in span_closes_after_event() 146 tracing::event!(Level::DEBUG, {}, "my tracing::event!"); in span_closes_after_event() [all …]
|
/third_party/rust/crates/tracing/.github/ |
D | CODEOWNERS | 2 * @hawkw @tokio-rs/tracing 4 # tracing-error and tracing-flame were contributed by Jane. 5 /tracing-error/ @yaahc @tokio-rs/tracing 6 /tracing-flame/ @yaahc @tokio-rs/tracing 9 /tracing-subscriber/registry @davidbarsky @hawkw @tokio-rs/tracing 12 /tracing-opentelemetry/ @jtescher @tokio-rs/tracing 15 /tracing-appender/ @zekisherif @tokio-rs/tracing
|
/third_party/rust/crates/tracing/tracing-core/ |
D | CHANGELOG.md | 3 This release of `tracing-core` adds a new `on_register_dispatch` method to the 16 [#2269]: https://github.com/tokio-rs/tracing/pull/2269 17 [#2293]: https://github.com/tokio-rs/tracing/pull/2293 21 This release of `tracing-core` adds `PartialEq` and `Eq` implementations for 38 [#2229]: https://github.com/tokio-rs/tracing/pull/2229 39 [#2246]: https://github.com/tokio-rs/tracing/pull/2246 40 [#2250]: https://github.com/tokio-rs/tracing/pull/2250 44 This release of `tracing-core` adds new `Value` implementations, including one 62 [#2164]: https://github.com/tokio-rs/tracing/pull/2164 63 [#2166]: https://github.com/tokio-rs/tracing/pull/2166 [all …]
|
D | README.md | 3 [splash]: https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/splash.svg 5 # tracing-core 7 Core primitives for application-level tracing. 18 [crates-badge]: https://img.shields.io/crates/v/tracing-core.svg 19 [crates-url]: https://crates.io/crates/tracing-core/0.1.30 20 [docs-badge]: https://docs.rs/tracing-core/badge.svg 21 [docs-url]: https://docs.rs/tracing-core/0.1.30 23 [docs-master-url]: https://tracing-rs.netlify.com/tracing_core 26 [actions-badge]: https://github.com/tokio-rs/tracing/workflows/CI/badge.svg 27 [actions-url]:https://github.com/tokio-rs/tracing/actions?query=workflow%3ACI [all …]
|
/third_party/rust/crates/tracing/tracing-subscriber/tests/ |
D | field_filter.rs | 3 use tracing::{self, subscriber::with_default, Level}; 27 tracing::trace!(disabled = true); in field_filter_events() 28 tracing::info!("also disabled"); in field_filter_events() 29 tracing::info!(thing = 1); in field_filter_events() 30 tracing::debug!(thing = 2); in field_filter_events() 31 tracing::trace!(thing = 3); in field_filter_events() 65 tracing::trace!("disabled"); in field_filter_spans() 66 tracing::info!("also disabled"); in field_filter_spans() 67 tracing::info_span!("span1", enabled = true).in_scope(|| { in field_filter_spans() 68 tracing::info!(something = 1); in field_filter_spans() [all …]
|
/third_party/rust/crates/tracing/tracing-subscriber/tests/layer_filters/ |
D | main.rs | 13 use tracing::{level_filters::LevelFilter, Level}; 42 tracing::trace!("hello trace"); in basic_layer_filters() 43 tracing::debug!("hello debug"); in basic_layer_filters() 44 tracing::info!("hello info"); in basic_layer_filters() 77 tracing::trace_span!("hello trace"); in basic_layer_filters_spans() 78 tracing::debug_span!("hello debug"); in basic_layer_filters_spans() 79 tracing::info_span!("hello info"); in basic_layer_filters_spans() 100 tracing::trace!("hello trace"); in global_filters_layers_still_work() 101 tracing::debug!("hello debug"); in global_filters_layers_still_work() 102 tracing::info!("hello info"); in global_filters_layers_still_work() [all …]
|
/third_party/rust/crates/tracing/tracing/test-log-support/tests/ |
D | log_with_trace.rs | 2 use tracing::{error, info, span, trace, warn, Level}; 6 impl tracing::Subscriber for NopSubscriber { 7 fn enabled(&self, _: &tracing::Metadata) -> bool { in enabled() 10 fn new_span(&self, _: &tracing::span::Attributes) -> tracing::span::Id { in new_span() 13 tracing::span::Id::from_u64(NEXT.fetch_add(1, Relaxed)) in new_span() 15 fn record(&self, _: &tracing::span::Id, _: &tracing::span::Record) {} in record() 16 fn record_follows_from(&self, _: &tracing::span::Id, _: &tracing::span::Id) {} in record_follows_from() 17 fn event(&self, _: &tracing::Event) {} in event() 18 fn enter(&self, _: &tracing::span::Id) {} in enter() 19 fn exit(&self, _: &tracing::span::Id) {} in exit() [all …]
|
/third_party/rust/crates/tracing/tracing-log/ |
D | README.md | 3 [splash]: https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/splash.svg 5 # tracing-log 7 [`log`] compatibility for [`tracing`]. 20 [crates-badge]: https://img.shields.io/crates/v/tracing-log.svg 21 [crates-url]: https://crates.io/crates/tracing-log 22 [docs-badge]: https://docs.rs/tracing-log/badge.svg 23 [docs-url]: https://docs.rs/tracing-log 25 [docs-master-url]: https://tracing-rs.netlify.com/tracing_log 28 [actions-badge]: https://github.com/tokio-rs/tracing/workflows/CI/badge.svg 29 [actions-url]:https://github.com/tokio-rs/tracing/actions?query=workflow%3ACI [all …]
|
D | CHANGELOG.md | 14 - **log-tracer**: Fixed `LogTracer` not honoring `tracing` max level filters 21 [#1636]: https://github.com/tokio-rs/tracing/pulls/1636 22 [#1913]: https://github.com/tokio-rs/tracing/pulls/1913 23 [#1543]: https://github.com/tokio-rs/tracing/pulls/1543 24 [#2068]: https://github.com/tokio-rs/tracing/pulls/2068 25 [#2077]: https://github.com/tokio-rs/tracing/pulls/2077 32 - `AsLog` implementation for `tracing::LevelFilter` ([#1248]) 43 [#483]: https://github.com/tokio-rs/tracing/pulls/483 44 [#485]: https://github.com/tokio-rs/tracing/pulls/485 45 [#537]: https://github.com/tokio-rs/tracing/pulls/537 [all …]
|
/third_party/rust/crates/tracing/tracing-opentelemetry/ |
D | Cargo.toml | 2 name = "tracing-opentelemetry" 8 description = "OpenTelemetry integration for tracing" 9 homepage = "https://github.com/tokio-rs/tracing/tree/master/tracing-opentelemetry" 10 repository = "https://github.com/tokio-rs/tracing" 17 keywords = ["tracing", "opentelemetry", "jaeger", "zipkin", "async"] 23 default = ["tracing-log", "metrics"] 29 tracing = { path = "../tracing", version = "0.1.35", default-features = false, features = ["std"] } 30 tracing-core = { path = "../tracing-core", version = "0.1.28" } 31 tracing-subscriber = { path = "../tracing-subscriber", version = "0.3.0", default-features = false,… 32 tracing-log = { path = "../tracing-log", version = "0.1.3", default-features = false, optional = tr…
|
/third_party/rust/crates/tracing/tracing-serde/ |
D | README.md | 3 [splash]: https://raw.githubusercontent.com/tokio-rs/tracing/master/assets/splash.svg 5 # tracing-serde 7 An adapter for serializing [`tracing`] types using [`serde`]. 12 [docs-badge]: https://docs.rs/tracing-serde/badge.svg 13 [docs-url]: https://docs.rs/tracing-serde 15 [docs-master-url]: https://tracing-rs.netlify.com/tracing_serde 19 [`tracing`] is a framework for instrumenting Rust programs to collect 20 scoped, structured, and async-aware diagnostics.`tracing-serde` enables 21 serializing `tracing` types using [`serde`]. 24 `tracing` gives us machine-readable structured diagnostic [all …]
|