@@ -601,35 +601,6 @@ where
601
601
}
602
602
}
603
603
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
-
633
604
/// Sets whether or not span and event metadata should include OpenTelemetry
634
605
/// exception fields such as `exception.message` and `exception.backtrace`
635
606
/// when an `Error` value is recorded. If multiple error values are recorded
@@ -690,35 +661,6 @@ where
690
661
}
691
662
}
692
663
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
-
722
664
/// Sets whether or not reporting an `Error` value on an event will
723
665
/// propagate the OpenTelemetry exception fields such as `exception.message`
724
666
/// and `exception.backtrace` to the corresponding span. You do not need to
@@ -757,26 +699,6 @@ where
757
699
Self { location, ..self }
758
700
}
759
701
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
-
780
702
/// Sets whether or not spans metadata should include the _busy time_
781
703
/// (total time for which it was entered), and _idle time_ (total time
782
704
/// the span existed but was not entered).
0 commit comments