OpenTelemetry.Trace.ActivityHelperExtensions
Extension methods on Activity.
Gets the value of a specific tag on an Activity.
Checks if the user provided tag name is the first tag of the Activity and retrieves the tag value.
public static bool TryGetStatus(this Activity activity, out StatusCode statusCode, out string statusDescription)
Gets the status of activity execution.
Activity class in .NET does not support 'Status'.
This extension provides a workaround to retrieve Status from special tags with key name otel.status_code and otel.status_description.