Description
When setting an Activity status to Error in a catch block, the exception should be recorded as an event on the span for proper observability. Use activity.AddEvent with exception details or a RecordException helper.Properties
- Category: OpenTelemetry
- Severity: Warning
- Enabled by default: True
- Code fix available: False
