Description
Package
OpenTelemetry.Exporter.OpenTelemetryProtocol
Is your feature request related to a problem?
The Application Insights SDK and the Datadog Tracer SDK both include the fully qualified exception type name (such as System.Threading.Tasks.TaskCanceledException
) when exporting error logs (Type.FullName
). I've been researching switching to the OpenTelemetry SDK and discovered that the OTLP exporter only includes the exception type name (such as TaskCanceledException
) when exporting error logs (logRecord.Exception.GetType().Name
). That limits the amount of information available when querying logs.
What is the expected behavior?
It feels that logRecord.Exception.GetType().FullName
would be better. The semantic convention recommends using the fully qualified class name too: https://opentelemetry.io/docs/specs/semconv/exceptions/exceptions-logs/#attributes.
Which alternative solutions or features have you considered?
The fully qualified type name is available in the stack trace, but that's less convenient/efficient to use. Plus the stack trace may not always be present in the future (see #6068).
Additional context
No response