Skip to content

Commit fd9c797

Browse files
committed
Remove deprecated APIs
1 parent de67c33 commit fd9c797

File tree

1 file changed

+0
-78
lines changed

1 file changed

+0
-78
lines changed

src/layer.rs

Lines changed: 0 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -601,35 +601,6 @@ where
601601
}
602602
}
603603

604-
/// Sets whether or not span and event metadata should include OpenTelemetry
605-
/// exception fields such as `exception.message` and `exception.backtrace`
606-
/// when an `Error` value is recorded. If multiple error values are recorded
607-
/// on the same span/event, only the most recently recorded error value will
608-
/// show up under these fields.
609-
///
610-
/// These attributes follow the [OpenTelemetry semantic conventions for
611-
/// exceptions][conv].
612-
///
613-
/// By default, these attributes are recorded.
614-
/// Note that this only works for `(dyn Error + 'static)`.
615-
/// See [Implementations on Foreign Types of tracing::Value][impls] or [`OpenTelemetryLayer::with_error_events_to_exceptions`]
616-
///
617-
/// [conv]: https://github.com/open-telemetry/semantic-conventions/tree/main/docs/exceptions/
618-
/// [impls]: https://docs.rs/tracing/0.1.37/tracing/trait.Value.html#foreign-impls
619-
#[deprecated(
620-
since = "0.21.0",
621-
note = "renamed to `OpenTelemetryLayer::with_error_fields_to_exceptions`"
622-
)]
623-
pub fn with_exception_fields(self, exception_fields: bool) -> Self {
624-
Self {
625-
sem_conv_config: SemConvConfig {
626-
error_fields_to_exceptions: exception_fields,
627-
..self.sem_conv_config
628-
},
629-
..self
630-
}
631-
}
632-
633604
/// Sets whether or not span and event metadata should include OpenTelemetry
634605
/// exception fields such as `exception.message` and `exception.backtrace`
635606
/// when an `Error` value is recorded. If multiple error values are recorded
@@ -690,35 +661,6 @@ where
690661
}
691662
}
692663

693-
/// Sets whether or not reporting an `Error` value on an event will
694-
/// propagate the OpenTelemetry exception fields such as `exception.message`
695-
/// and `exception.backtrace` to the corresponding span. You do not need to
696-
/// enable `with_exception_fields` in order to enable this. If multiple
697-
/// error values are recorded on the same span/event, only the most recently
698-
/// recorded error value will show up under these fields.
699-
///
700-
/// These attributes follow the [OpenTelemetry semantic conventions for
701-
/// exceptions][conv].
702-
///
703-
/// By default, these attributes are propagated to the span. Note that this only works for `(dyn Error + 'static)`.
704-
/// See [Implementations on Foreign Types of tracing::Value][impls] or [`OpenTelemetryLayer::with_error_events_to_exceptions`]
705-
///
706-
/// [conv]: https://github.com/open-telemetry/semantic-conventions/tree/main/docs/exceptions/
707-
/// [impls]: https://docs.rs/tracing/0.1.37/tracing/trait.Value.html#foreign-impls
708-
#[deprecated(
709-
since = "0.21.0",
710-
note = "renamed to `OpenTelemetryLayer::with_error_records_to_exceptions`"
711-
)]
712-
pub fn with_exception_field_propagation(self, exception_field_propagation: bool) -> Self {
713-
Self {
714-
sem_conv_config: SemConvConfig {
715-
error_records_to_exceptions: exception_field_propagation,
716-
..self.sem_conv_config
717-
},
718-
..self
719-
}
720-
}
721-
722664
/// Sets whether or not reporting an `Error` value on an event will
723665
/// propagate the OpenTelemetry exception fields such as `exception.message`
724666
/// and `exception.backtrace` to the corresponding span. You do not need to
@@ -757,26 +699,6 @@ where
757699
Self { location, ..self }
758700
}
759701

760-
/// Sets whether or not span and event metadata should include OpenTelemetry
761-
/// attributes with location information, such as the file, module and line number.
762-
///
763-
/// These attributes follow the [OpenTelemetry semantic conventions for
764-
/// source locations][conv].
765-
///
766-
/// By default, locations are enabled.
767-
///
768-
/// [conv]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/attributes.md#source-code-attributes/
769-
#[deprecated(
770-
since = "0.17.3",
771-
note = "renamed to `OpenTelemetrySubscriber::with_location`"
772-
)]
773-
pub fn with_event_location(self, event_location: bool) -> Self {
774-
Self {
775-
location: event_location,
776-
..self
777-
}
778-
}
779-
780702
/// Sets whether or not spans metadata should include the _busy time_
781703
/// (total time for which it was entered), and _idle time_ (total time
782704
/// the span existed but was not entered).

0 commit comments

Comments
 (0)