Skip to content

Commit 70f6948

Browse files
committed
Remove deprecated APIs
1 parent 901fde6 commit 70f6948

File tree

1 file changed

+0
-78
lines changed

1 file changed

+0
-78
lines changed

src/layer.rs

-78
Original file line numberDiff line numberDiff line change
@@ -591,35 +591,6 @@ where
591591
}
592592
}
593593

594-
/// Sets whether or not span and event metadata should include OpenTelemetry
595-
/// exception fields such as `exception.message` and `exception.backtrace`
596-
/// when an `Error` value is recorded. If multiple error values are recorded
597-
/// on the same span/event, only the most recently recorded error value will
598-
/// show up under these fields.
599-
///
600-
/// These attributes follow the [OpenTelemetry semantic conventions for
601-
/// exceptions][conv].
602-
///
603-
/// By default, these attributes are recorded.
604-
/// Note that this only works for `(dyn Error + 'static)`.
605-
/// See [Implementations on Foreign Types of tracing::Value][impls] or [`OpenTelemetryLayer::with_error_events_to_exceptions`]
606-
///
607-
/// [conv]: https://github.com/open-telemetry/semantic-conventions/tree/main/docs/exceptions/
608-
/// [impls]: https://docs.rs/tracing/0.1.37/tracing/trait.Value.html#foreign-impls
609-
#[deprecated(
610-
since = "0.21.0",
611-
note = "renamed to `OpenTelemetryLayer::with_error_fields_to_exceptions`"
612-
)]
613-
pub fn with_exception_fields(self, exception_fields: bool) -> Self {
614-
Self {
615-
sem_conv_config: SemConvConfig {
616-
error_fields_to_exceptions: exception_fields,
617-
..self.sem_conv_config
618-
},
619-
..self
620-
}
621-
}
622-
623594
/// Sets whether or not span and event metadata should include OpenTelemetry
624595
/// exception fields such as `exception.message` and `exception.backtrace`
625596
/// when an `Error` value is recorded. If multiple error values are recorded
@@ -680,35 +651,6 @@ where
680651
}
681652
}
682653

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

750-
/// Sets whether or not span and event metadata should include OpenTelemetry
751-
/// attributes with location information, such as the file, module and line number.
752-
///
753-
/// These attributes follow the [OpenTelemetry semantic conventions for
754-
/// source locations][conv].
755-
///
756-
/// By default, locations are enabled.
757-
///
758-
/// [conv]: https://github.com/open-telemetry/semantic-conventions/blob/main/docs/general/attributes.md#source-code-attributes/
759-
#[deprecated(
760-
since = "0.17.3",
761-
note = "renamed to `OpenTelemetrySubscriber::with_location`"
762-
)]
763-
pub fn with_event_location(self, event_location: bool) -> Self {
764-
Self {
765-
location: event_location,
766-
..self
767-
}
768-
}
769-
770692
/// Sets whether or not spans metadata should include the _busy time_
771693
/// (total time for which it was entered), and _idle time_ (total time
772694
/// the span existed but was not entered).

0 commit comments

Comments
 (0)