You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// <param name="ex">Exception to be recorded.</param>
97
-
/// <remarks> The exception is recorded as per <a href="https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/exceptions.md">specification</a>.
97
+
/// <remarks>
98
+
/// <para>Note: This method is obsolete. Please use <see cref="Activity.AddException"/> instead.</para>
99
+
/// The exception is recorded as per <a href="https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/exceptions.md">specification</a>.
98
100
/// "exception.stacktrace" is represented using the value of <a href="https://learn.microsoft.com/dotnet/api/system.exception.tostring">Exception.ToString</a>.
99
101
/// </remarks>
102
+
[Obsolete("Call Activity.AddException instead this method will be removed in a future version.")]
/// <param name="ex">Exception to be recorded.</param>
109
112
/// <param name="tags">Additional tags to record on the event.</param>
110
-
/// <remarks> The exception is recorded as per <a href="https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/exceptions.md">specification</a>.
113
+
/// <remarks>
114
+
/// <para>Note: This method is obsolete. Please use <see cref="Activity.AddException"/> instead.</para>
115
+
/// The exception is recorded as per <a href="https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/trace/exceptions.md">specification</a>.
111
116
/// "exception.stacktrace" is represented using the value of <a href="https://learn.microsoft.com/dotnet/api/system.exception.tostring">Exception.ToString</a>.
112
117
/// </remarks>
118
+
[Obsolete("Call Activity.AddException instead this method will be removed in a future version.")]
0 commit comments