Skip to content

Commit

Permalink
Tweaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeBlanch committed Sep 24, 2024
1 parent 3e14d7f commit b148505
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/OpenTelemetry.Api/Trace/ActivityExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ public static Status GetStatus(this Activity? activity)
/// </summary>
/// <param name="activity">Activity instance.</param>
/// <param name="ex">Exception to be recorded.</param>
/// <remarks> The exception is recorded as per <a href="https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/exceptions.md">specification</a>.
/// <remarks>
/// <para>Note: This method is obsolete. Please use <see cref="Activity.AddException"/> instead.</para>
/// The exception is recorded as per <a href="https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/exceptions.md">specification</a>.
/// "exception.stacktrace" is represented using the value of <a href="https://learn.microsoft.com/dotnet/api/system.exception.tostring">Exception.ToString</a>.
/// <para>This method is obsolete. Please use <see cref="Activity.AddException"/> instead. The end result will be the same when using this alternative.</para>
/// </remarks>
[Obsolete("Call Activity.AddException instead this method will be removed in a future version.")]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
Expand All @@ -109,9 +110,10 @@ public static void RecordException(this Activity? activity, Exception? ex)
/// <param name="activity">Activity instance.</param>
/// <param name="ex">Exception to be recorded.</param>
/// <param name="tags">Additional tags to record on the event.</param>
/// <remarks> The exception is recorded as per <a href="https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/exceptions.md">specification</a>.
/// <remarks>
/// <para>Note: This method is obsolete. Please use <see cref="Activity.AddException"/> instead.</para>
/// The exception is recorded as per <a href="https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/exceptions.md">specification</a>.
/// "exception.stacktrace" is represented using the value of <a href="https://learn.microsoft.com/dotnet/api/system.exception.tostring">Exception.ToString</a>.
/// <para>This method is obsolete. Please use <see cref="Activity.AddException"/> instead. The end result will be the same when using this alternative.</para>
/// </remarks>
[Obsolete("Call Activity.AddException instead this method will be removed in a future version.")]
[MethodImpl(MethodImplOptions.AggressiveInlining)]
Expand Down

0 comments on commit b148505

Please sign in to comment.