Doc fix for RecordException (#5143)
This commit is contained in:
parent
58e8f24782
commit
93fd7d34a7
|
|
@ -57,20 +57,26 @@ public static class ActivityExtensions
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Adds an activity event containing information from the specified exception.
|
||||
/// Adds an <see cref="ActivityEvent"/> containing information from the specified exception.
|
||||
/// </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>.
|
||||
/// "exception.stacktrace" is represented using the value of <a href="https://learn.microsoft.com/dotnet/api/system.exception.tostring">Exception.ToString</a>.
|
||||
/// </remarks>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void RecordException(this Activity activity, Exception? ex)
|
||||
=> RecordException(activity, ex, default);
|
||||
|
||||
/// <summary>
|
||||
/// Adds an activity event containing information from the specified exception and additional tags.
|
||||
/// Adds an <see cref="ActivityEvent"/> containing information from the specified exception and additional tags.
|
||||
/// </summary>
|
||||
/// <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>.
|
||||
/// "exception.stacktrace" is represented using the value of <a href="https://learn.microsoft.com/dotnet/api/system.exception.tostring">Exception.ToString</a>.
|
||||
/// </remarks>
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static void RecordException(this Activity activity, Exception? ex, in TagList tags)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue