From b1485058a40af6f0d202d95f721b5d470512d58a Mon Sep 17 00:00:00 2001 From: Mikel Blanchard Date: Tue, 24 Sep 2024 10:00:45 -0700 Subject: [PATCH] Tweaks. --- src/OpenTelemetry.Api/Trace/ActivityExtensions.cs | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/OpenTelemetry.Api/Trace/ActivityExtensions.cs b/src/OpenTelemetry.Api/Trace/ActivityExtensions.cs index e71ec798c03..7c2a0854419 100644 --- a/src/OpenTelemetry.Api/Trace/ActivityExtensions.cs +++ b/src/OpenTelemetry.Api/Trace/ActivityExtensions.cs @@ -94,9 +94,10 @@ public static Status GetStatus(this Activity? activity) /// /// Activity instance. /// Exception to be recorded. - /// The exception is recorded as per specification. + /// + /// Note: This method is obsolete. Please use instead. + /// The exception is recorded as per specification. /// "exception.stacktrace" is represented using the value of Exception.ToString. - /// This method is obsolete. Please use instead. The end result will be the same when using this alternative. /// [Obsolete("Call Activity.AddException instead this method will be removed in a future version.")] [MethodImpl(MethodImplOptions.AggressiveInlining)] @@ -109,9 +110,10 @@ public static void RecordException(this Activity? activity, Exception? ex) /// Activity instance. /// Exception to be recorded. /// Additional tags to record on the event. - /// The exception is recorded as per specification. + /// + /// Note: This method is obsolete. Please use instead. + /// The exception is recorded as per specification. /// "exception.stacktrace" is represented using the value of Exception.ToString. - /// This method is obsolete. Please use instead. The end result will be the same when using this alternative. /// [Obsolete("Call Activity.AddException instead this method will be removed in a future version.")] [MethodImpl(MethodImplOptions.AggressiveInlining)]