Skip to content

Commit a0e1daa

Browse files
authored
docs: Convert even more intra-doc links (#1077)
## Motivation #940 ## Solution This changes the docs.rs links, many of which were broken (or would have been broken on the next release). It also converts some links I missed the first time (maybe they were added after I opened the PR?).
1 parent 879b350 commit a0e1daa

File tree

33 files changed

+221
-245
lines changed

33 files changed

+221
-245
lines changed

tracing-appender/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@
9191
//! [write]: https://doc.rust-lang.org/std/io/trait.Write.html
9292
//! [non_blocking]: mod@non_blocking
9393
//! [guard]: non_blocking::WorkerGuard
94-
//! [make_writer]: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/fmt/trait.MakeWriter.html
94+
//! [make_writer]: tracing_subscriber::fmt::MakeWriter
9595
//! [`RollingFileAppender`]: rolling::RollingFileAppender
96-
//! [fmt_subscriber]: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/fmt/struct.Subscriber.html
96+
//! [fmt_subscriber]: tracing_subscriber::fmt::Subscriber
9797
//!
9898
//! ## Non-Blocking Rolling File Appender
9999
//!

tracing-appender/src/non_blocking.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ pub struct WorkerGuard {
119119
/// crate. Therefore, it can be used with the [`tracing_subscriber::fmt`][fmt] module
120120
/// or with any other subscriber/layer implementation that uses the `MakeWriter` trait.
121121
///
122-
/// [make_writer]: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/fmt/trait.MakeWriter.html
123-
/// [fmt]: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/fmt/index.html
122+
/// [make_writer]: tracing_subscriber::fmt::MakeWriter
123+
/// [fmt]: mod@tracing_subscriber::fmt
124124
#[derive(Clone, Debug)]
125125
pub struct NonBlocking {
126126
error_counter: Arc<AtomicU64>,

tracing-core/src/collect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ pub trait Collect: 'static {
388388
/// inside of a `try_close` function may cause a double panic, if the span
389389
/// was dropped due to a thread unwinding.
390390
///
391-
/// [span ID]: super::span::Id
391+
/// [`span ID`]: super::span::Id
392392
/// [`clone_span`]: Collect::clone_span
393393
/// [`drop_span`]: Collect::drop_span
394394
fn try_close(&self, id: span::Id) -> bool {

tracing-error/src/backtrace.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,9 @@ use tracing::{Metadata, Span};
5555
///
5656
/// [`tracing`]: https://docs.rs/tracing
5757
/// [`Backtrace`]: https://doc.rust-lang.org/std/backtrace/struct.Backtrace.html
58-
/// [span]: https://docs.rs/tracing/latest/tracing/span/index.html
59-
/// [parents]: https://docs.rs/tracing/latest/tracing/span/index.html#span-relationships
60-
/// [fields]: https://docs.rs/tracing/latest/tracing/field/index.html
58+
/// [span]: mod@tracing::span
59+
/// [parents]: mod@tracing::span#span-relationships
60+
/// [fields]: tracing::field
6161
/// [futures]: https://doc.rust-lang.org/std/future/trait.Future.html
6262
/// [`tracing-futures`]: https://docs.rs/tracing-futures/
6363
/// [`with_spans`]: SpanTrace::with_spans()
@@ -111,8 +111,8 @@ impl SpanTrace {
111111
/// indicate whether to continue iterating over spans; if it returns
112112
/// `false`, no additional spans will be visited.
113113
///
114-
/// [fields]: https://docs.rs/tracing/latest/tracing/field/index.html
115-
/// [`Metadata`]: https://docs.rs/tracing/latest/tracing/struct.Metadata.html
114+
/// [fields]: tracing::field
115+
/// [`Metadata`]: tracing::Metadata
116116
pub fn with_spans(&self, f: impl FnMut(&'static Metadata<'static>, &str) -> bool) {
117117
self.span.with_collector(|(id, s)| {
118118
if let Some(getcx) = s.downcast_ref::<WithContext>() {

tracing-error/src/layer.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ use tracing_subscriber::{
1515
/// when formatting the fields of each span in a trace. When no formatter is
1616
/// provided, the [default format] is used instead.
1717
///
18-
/// [subscriber]: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/subscriber/trait.Subscribe.html
18+
/// [subscriber]: tracing_subscriber::subscribe::Subscribe
1919
/// [`SpanTrace`]: super::SpanTrace
20-
/// [field formatter]: https://docs.rs/tracing-subscriber/0.2.10/tracing_subscriber/fmt/trait.FormatFields.html
21-
/// [default format]: https://docs.rs/tracing-subscriber/0.2.10/tracing_subscriber/fmt/format/struct.DefaultFields.html
20+
/// [field formatter]: tracing_subscriber::fmt::FormatFields
21+
/// [default format]: tracing_subscriber::fmt::format::DefaultFields
2222
pub struct ErrorSubscriber<S, F = DefaultFields> {
2323
format: F,
2424

@@ -75,7 +75,7 @@ where
7575
{
7676
/// Returns a new `ErrorSubscriber` with the provided [field formatter].
7777
///
78-
/// [field formatter]: https://docs.rs/tracing-subscriber/0.2.10/tracing_subscriber/fmt/trait.FormatFields.html
78+
/// [field formatter]: tracing_subscriber::fmt::FormatFields
7979
pub fn new(format: F) -> Self {
8080
Self {
8181
format,

tracing-error/src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@
158158
//! ```
159159
//!
160160
//! [`in_current_span()`]: InstrumentResult::in_current_span
161-
//! [span]: https://docs.rs/tracing/latest/tracing/span/index.html
162-
//! [events]: https://docs.rs/tracing/latest/tracing/struct.Event.html
163-
//! [collector]: https://docs.rs/tracing/latest/tracing/trait.Collect.html
164-
//! [subscriber layer]: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/layer/trait.Layer.html
161+
//! [span]: mod@tracing::span
162+
//! [events]: tracing::Event
163+
//! [collector]: tracing::Collect
164+
//! [subscriber layer]: tracing_subscriber::subscribe::Subscribe
165165
//! [`tracing`]: https://docs.rs/tracing
166166
//! [`std::error::Error`]: https://doc.rust-lang.org/stable/std/error/trait.Error.html
167167
//!

tracing-futures/src/lib.rs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@
5353
//! The `tokio`, `std-future` and `std` features are enabled by default.
5454
//!
5555
//! [`tracing`]: https://crates.io/crates/tracing
56-
//! [span]: https://docs.rs/tracing/latest/tracing/span/index.html
57-
//! [collector]: https://docs.rs/tracing/latest/tracing/collect/index.html
56+
//! [span]: mod@tracing::span
57+
//! [collector]: tracing::collect
5858
//! [`futures`]: https://crates.io/crates/futures
5959
//!
6060
//! ## Supported Rust Versions
@@ -118,7 +118,7 @@ pub mod executor;
118118
/// Extension trait allowing futures, streams, sinks, and executors to be
119119
/// instrumented with a `tracing` [span].
120120
///
121-
/// [span]: https://docs.rs/tracing/latest/tracing/span/index.html
121+
/// [span]: mod@tracing::span
122122
pub trait Instrument: Sized {
123123
/// Instruments this type with the provided `Span`, returning an
124124
/// `Instrumented` wrapper.
@@ -147,7 +147,7 @@ pub trait Instrument: Sized {
147147
/// # }
148148
/// ```
149149
///
150-
/// [entered]: https://docs.rs/tracing/latest/tracing/span/struct.Span.html#method.enter
150+
/// [entered]: tracing::span::Span::enter()
151151
fn instrument(self, span: Span) -> Instrumented<Self> {
152152
Instrumented { inner: self, span }
153153
}
@@ -182,8 +182,8 @@ pub trait Instrument: Sized {
182182
/// # }
183183
/// ```
184184
///
185-
/// [current]: https://docs.rs/tracing/latest/tracing/span/struct.Span.html#method.current
186-
/// [entered]: https://docs.rs/tracing/latest/tracing/span/struct.Span.html#method.enter
185+
/// [current]: tracing::span::Span::current()
186+
/// [entered]: tracing::span::Span::enter()
187187
#[inline]
188188
fn in_current_span(self) -> Instrumented<Self> {
189189
self.instrument(Span::current())
@@ -193,7 +193,7 @@ pub trait Instrument: Sized {
193193
/// Extension trait allowing futures, streams, and sinks to be instrumented with
194194
/// a `tracing` [collector].
195195
///
196-
/// [collector]: https://docs.rs/tracing/latest/tracing/collect/trait.Collect.html
196+
/// [collector]: tracing::collect::Collect
197197
#[cfg(feature = "std")]
198198
#[cfg_attr(docsrs, doc(cfg(feature = "std")))]
199199
pub trait WithCollector: Sized {
@@ -205,8 +205,8 @@ pub trait WithCollector: Sized {
205205
/// When the wrapped type is an executor, the subscriber will be set as the
206206
/// default for any futures spawned on that executor.
207207
///
208-
/// [collector]: https://docs.rs/tracing/latest/tracing/collect/trait.Collect.html
209-
/// [default]: https://docs.rs/tracing/latest/tracing/dispatcher/index.html#setting-the-default-subscriber
208+
/// [collector]: tracing::collect::Collect
209+
/// [default]: tracing::dispatch#setting-the-default-collector
210210
fn with_collector<S>(self, collector: S) -> WithDispatch<Self>
211211
where
212212
S: Into<Dispatch>,
@@ -228,8 +228,8 @@ pub trait WithCollector: Sized {
228228
/// This can be used to propagate the current dispatcher context when
229229
/// spawning a new future.
230230
///
231-
/// [collector]: https://docs.rs/tracing/latest/tracing/collect/trait.Collect.html
232-
/// [default]: https://docs.rs/tracing/latest/tracing/dispatcher/index.html#setting-the-default-subscriber
231+
/// [collector]: tracing::collect::Collect
232+
/// [default]: tracing::dispatch#setting-the-default-collector
233233
#[inline]
234234
fn with_current_collector(self) -> WithDispatch<Self> {
235235
WithDispatch {

tracing-journald/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
//!
1616
//! [msrv]: #supported-rust-versions
1717
//! [`tracing`]: https://crates.io/crates/tracing
18-
//! [subscriber]: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/subscriber/trait.Subscriber.html
18+
//! [subscriber]: tracing_subscriber::subscribe::Subscribe
1919
//! [journald]: https://www.freedesktop.org/software/systemd/man/systemd-journald.service.html
2020
//!
2121
//! ## Supported Rust Versions

tracing-log/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,6 @@
9292
//! [`tracing`]: https://crates.io/crates/tracing
9393
//! [`log`]: https://crates.io/crates/log
9494
//! [`env_logger` crate]: https://crates.io/crates/env-logger
95-
//! [`log::Log`]: https://docs.rs/log/latest/log/trait.Log.html
96-
//! [`log::Record`]: https://docs.rs/log/latest/log/struct.Record.html
9795
//! [`tracing::Collector`]: https://docs.rs/tracing/latest/tracing/trait.Collect.html
9896
//! [`Collect`]: https://docs.rs/tracing/latest/tracing/trait.Collect.html
9997
//! [`tracing::Event`]: https://docs.rs/tracing/latest/tracing/struct.Event.html
@@ -376,7 +374,6 @@ impl AsTrace for log::Level {
376374
/// regardless of the source of its source.
377375
///
378376
/// [`normalized_metadata`]: trait.NormalizeEvent.html#normalized_metadata
379-
/// [`log::Record`]: https://docs.rs/log/0.4.7/log/struct.Record.html
380377
pub trait NormalizeEvent<'a>: crate::sealed::Sealed {
381378
/// If this `Event` comes from a `log`, this method provides a new
382379
/// normalized `Metadata` which has all available attributes

tracing-log/src/log_tracer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
//! default.
2121
//!
2222
//! [`log`]: https://docs.rs/log/0.4.8/log/
23-
//! [logger interface]: https://docs.rs/log/0.4.8/log/trait.Log.html
23+
//! [logger interface]: log::Log
2424
//! [`init`]: LogTracer.html#method.init
2525
//! [`init_with_filter`]: LogTracer.html#method.init_with_filter
2626
//! [builder]: LogTracer::builder()

tracing-opentelemetry/src/layer.rs

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ struct SpanEventVisitor<'a>(&'a mut api::Event);
105105
impl<'a> field::Visit for SpanEventVisitor<'a> {
106106
/// Record events on the underlying OpenTelemetry [`Span`] from `bool` values.
107107
///
108-
/// [`Span`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/span/trait.Span.html
108+
/// [`Span`]: opentelemetry::api::trace::span::Span
109109
fn record_bool(&mut self, field: &field::Field, value: bool) {
110110
match field.name() {
111111
"message" => self.0.name = value.to_string(),
@@ -120,7 +120,7 @@ impl<'a> field::Visit for SpanEventVisitor<'a> {
120120

121121
/// Record events on the underlying OpenTelemetry [`Span`] from `i64` values.
122122
///
123-
/// [`Span`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/span/trait.Span.html
123+
/// [`Span`]: opentelemetry::api::trace::span::Span
124124
fn record_i64(&mut self, field: &field::Field, value: i64) {
125125
match field.name() {
126126
"message" => self.0.name = value.to_string(),
@@ -135,7 +135,7 @@ impl<'a> field::Visit for SpanEventVisitor<'a> {
135135

136136
/// Record events on the underlying OpenTelemetry [`Span`] from `u64` values.
137137
///
138-
/// [`Span`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/span/trait.Span.html
138+
/// [`Span`]: opentelemetry::api::trace::span::Span
139139
fn record_u64(&mut self, field: &field::Field, value: u64) {
140140
match field.name() {
141141
"message" => self.0.name = value.to_string(),
@@ -150,7 +150,7 @@ impl<'a> field::Visit for SpanEventVisitor<'a> {
150150

151151
/// Record events on the underlying OpenTelemetry [`Span`] from `&str` values.
152152
///
153-
/// [`Span`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/span/trait.Span.html
153+
/// [`Span`]: opentelemetry::api::trace::span::Span
154154
fn record_str(&mut self, field: &field::Field, value: &str) {
155155
match field.name() {
156156
"message" => self.0.name = value.to_string(),
@@ -166,7 +166,7 @@ impl<'a> field::Visit for SpanEventVisitor<'a> {
166166
/// Record events on the underlying OpenTelemetry [`Span`] from values that
167167
/// implement Debug.
168168
///
169-
/// [`Span`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/span/trait.Span.html
169+
/// [`Span`]: opentelemetry::api::trace::span::Span
170170
fn record_debug(&mut self, field: &field::Field, value: &dyn fmt::Debug) {
171171
match field.name() {
172172
"message" => self.0.name = format!("{:?}", value),
@@ -187,7 +187,7 @@ struct SpanAttributeVisitor<'a>(&'a mut api::SpanBuilder);
187187
impl<'a> field::Visit for SpanAttributeVisitor<'a> {
188188
/// Set attributes on the underlying OpenTelemetry [`Span`] from `bool` values.
189189
///
190-
/// [`Span`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/span/trait.Span.html
190+
/// [`Span`]: opentelemetry::api::trace::span::Span
191191
fn record_bool(&mut self, field: &field::Field, value: bool) {
192192
let attribute = api::KeyValue::new(field.name(), value);
193193
if let Some(attributes) = &mut self.0.attributes {
@@ -199,7 +199,7 @@ impl<'a> field::Visit for SpanAttributeVisitor<'a> {
199199

200200
/// Set attributes on the underlying OpenTelemetry [`Span`] from `i64` values.
201201
///
202-
/// [`Span`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/span/trait.Span.html
202+
/// [`Span`]: opentelemetry::api::trace::span::Span
203203
fn record_i64(&mut self, field: &field::Field, value: i64) {
204204
let attribute = api::KeyValue::new(field.name(), value);
205205
if let Some(attributes) = &mut self.0.attributes {
@@ -211,7 +211,7 @@ impl<'a> field::Visit for SpanAttributeVisitor<'a> {
211211

212212
/// Set attributes on the underlying OpenTelemetry [`Span`] from `u64` values.
213213
///
214-
/// [`Span`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/span/trait.Span.html
214+
/// [`Span`]: opentelemetry::api::trace::span::Span
215215
fn record_u64(&mut self, field: &field::Field, value: u64) {
216216
let attribute = api::KeyValue::new(field.name(), value);
217217
if let Some(attributes) = &mut self.0.attributes {
@@ -223,7 +223,7 @@ impl<'a> field::Visit for SpanAttributeVisitor<'a> {
223223

224224
/// Set attributes on the underlying OpenTelemetry [`Span`] from `&str` values.
225225
///
226-
/// [`Span`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/span/trait.Span.html
226+
/// [`Span`]: opentelemetry::api::trace::span::Span
227227
fn record_str(&mut self, field: &field::Field, value: &str) {
228228
if field.name() == SPAN_NAME_FIELD {
229229
self.0.name = value.to_string();
@@ -242,7 +242,7 @@ impl<'a> field::Visit for SpanAttributeVisitor<'a> {
242242
/// Set attributes on the underlying OpenTelemetry [`Span`] from values that
243243
/// implement Debug.
244244
///
245-
/// [`Span`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/span/trait.Span.html
245+
/// [`Span`]: opentelemetry::api::trace::span::Span
246246
fn record_debug(&mut self, field: &field::Field, value: &dyn fmt::Debug) {
247247
if field.name() == SPAN_NAME_FIELD {
248248
self.0.name = format!("{:?}", value);
@@ -267,8 +267,8 @@ where
267267
/// Set the [`Tracer`] that this layer will use to produce and track
268268
/// OpenTelemetry [`Span`]s.
269269
///
270-
/// [`Tracer`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/tracer/trait.Tracer.html
271-
/// [`Span`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/span/trait.Span.html
270+
/// [`Tracer`]: opentelemetry::api::trace::tracer::Tracer
271+
/// [`Span`]: opentelemetry::api::trace::span::Span
272272
///
273273
/// # Examples
274274
///
@@ -318,8 +318,8 @@ where
318318
/// Set the [`Tracer`] that this layer will use to produce and track
319319
/// OpenTelemetry [`Span`]s.
320320
///
321-
/// [`Tracer`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/tracer/trait.Tracer.html
322-
/// [`Span`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/span/trait.Span.html
321+
/// [`Tracer`]: opentelemetry::api::trace::tracer::Tracer
322+
/// [`Span`]: opentelemetry::api::trace::span::Span
323323
///
324324
/// # Examples
325325
///
@@ -373,9 +373,9 @@ where
373373
/// tracing [`span`] through the [`Registry`]. This [`SpanContext`]
374374
/// links spans to their parent for proper hierarchical visualization.
375375
///
376-
/// [`SpanContext`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/span_context/struct.SpanContext.html
377-
/// [`span`]: https://docs.rs/tracing/latest/tracing/struct.Span.html
378-
/// [`Registry`]: https://docs.rs/tracing-subscriber/latest/tracing_subscriber/struct.Registry.html
376+
/// [`SpanContext`]: opentelemetry::api::trace::span_context::SpanContext
377+
/// [`span`]: tracing::Span
378+
/// [`Registry`]: tracing_subscriber::Registry
379379
fn parent_span_context(
380380
&self,
381381
attrs: &Attributes<'_>,
@@ -431,8 +431,8 @@ where
431431
{
432432
/// Creates an [OpenTelemetry `Span`] for the corresponding [tracing `Span`].
433433
///
434-
/// [OpenTelemetry `Span`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/span/trait.Span.html
435-
/// [tracing `Span`]: https://docs.rs/tracing/latest/tracing/struct.Span.html
434+
/// [OpenTelemetry `Span`]: opentelemetry::api::trace::span::Span
435+
/// [tracing `Span`]: tracing::Span
436436
fn new_span(&self, attrs: &Attributes<'_>, id: &span::Id, ctx: Context<'_, S>) {
437437
let span = ctx.span(id).expect("Span not found, this is a bug");
438438
let mut extensions = span.extensions_mut();
@@ -463,7 +463,7 @@ where
463463

464464
/// Record OpenTelemetry [`attributes`] for the given values.
465465
///
466-
/// [`attributes`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/tracer/struct.SpanBuilder.html#structfield.attributes
466+
/// [`attributes`]: opentelemetry::api::trace::tracer::SpanBuilder::attributes
467467
fn on_record(&self, id: &Id, values: &Record<'_>, ctx: Context<'_, S>) {
468468
let span = ctx.span(id).expect("Span not found, this is a bug");
469469
let mut extensions = span.extensions_mut();
@@ -501,9 +501,9 @@ where
501501
/// Note: an [`ERROR`]-level event will also set the OpenTelemetry span status code to
502502
/// [`Unknown`], signaling that an error has occurred.
503503
///
504-
/// [`Event`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/event/struct.Event.html
505-
/// [`ERROR`]: https://docs.rs/tracing/latest/tracing/struct.Level.html#associatedconstant.ERROR
506-
/// [`Unknown`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/span/enum.StatusCode.html#variant.Unknown
504+
/// [`Event`]: opentelemetry::api::trace::event::Event
505+
/// [`ERROR`]: tracing::Level::ERROR
506+
/// [`Unknown`]: opentelemetry::api::trace::span::StatusCode::Unknown
507507
fn on_event(&self, event: &Event<'_>, ctx: Context<'_, S>) {
508508
// Ignore events that are not in the context of a span
509509
if let Some(span) = ctx.lookup_current() {
@@ -542,7 +542,7 @@ where
542542

543543
/// Exports an OpenTelemetry [`Span`] on close.
544544
///
545-
/// [`Span`]: https://docs.rs/opentelemetry/latest/opentelemetry/api/trace/span/trait.Span.html
545+
/// [`Span`]: opentelemetry::api::trace::span::Span
546546
fn on_close(&self, id: span::Id, ctx: Context<'_, S>) {
547547
let span = ctx.span(&id).expect("Span not found, this is a bug");
548548
let mut extensions = span.extensions_mut();

0 commit comments

Comments
 (0)