Skip to content

[feature request] [otlp-logs] Include full name of exception type #6238

Open
@IGx89

Description

@IGx89

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds-triageNew issues which have not been classified or triaged by a community memberpkg:OpenTelemetry.Exporter.OpenTelemetryProtocolIssues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions