-
Notifications
You must be signed in to change notification settings - Fork 858
Closed as not planned
Closed as not planned
Copy link
Labels
StaleIssues and pull requests which have been flagged for closing due to inactivityIssues and pull requests which have been flagged for closing due to inactivityenhancementNew feature or requestNew feature or requestlogsLogging signal relatedLogging signal relatedpkg:OpenTelemetry.Exporter.OpenTelemetryProtocolIssues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet packageIssues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package
Description
Feature Request
EventId is part of .NET's stable log data model. Log events carry an event id, which may contain an Id for the log event (type), and an additional human-readable Name.
Currently, the OTLP exporter flattens these structure members into Id and Name attributes on resulting log records. These are extremely common attribute names to find in user log messages, for example:
logger.LogInformation(new EventId(42, "UserCreated"), "Created user {Name} with id {Id}", user.Name, user.Id);generates two important attributes on the resulting log event, Name and Id, yet these will conflict with the EventId-derived Name and Id attached by the exporter.
Describe the solution you'd like:
Something akin to the way category names are handled could work? I.e.:
dotnet.ilogger.event_id.id
dotnet.ilogger.event_id.name
Describe alternatives you've considered.
--
Additional Context
See also #3491
cijothomas and skwasjer
Metadata
Metadata
Assignees
Labels
StaleIssues and pull requests which have been flagged for closing due to inactivityIssues and pull requests which have been flagged for closing due to inactivityenhancementNew feature or requestNew feature or requestlogsLogging signal relatedLogging signal relatedpkg:OpenTelemetry.Exporter.OpenTelemetryProtocolIssues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet packageIssues related to OpenTelemetry.Exporter.OpenTelemetryProtocol NuGet package