You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OTel spec states that attributes with the same key should not be exported. However, duplicates can occur with the .NET SDK when using the IncludeScopes option. I'll raise an issue for that separately. When these are sent to a collector using the Elasticsearch exporter, the indexing fails with:
Send a log record with duplicate attributes to the collector. In an ASP.NET Core app, this can occur when using this registration, which enables IncludeScopes.
Pinging code owners for exporter/elasticsearch: @JaredTan95@carsonip@lahsivjar. See Adding Labels via Comments if you do not have permissions to add labels yourself. For example, comment '/label priority:p2 -needs-triaged' to set the priority and remove the needs-triaged label.
Component(s)
exporter/elasticsearch
What happened?
Description
The OTel spec states that attributes with the same key should not be exported. However, duplicates can occur with the .NET SDK when using the
IncludeScopes
option. I'll raise an issue for that separately. When these are sent to a collector using the Elasticsearch exporter, the indexing fails with:Steps to Reproduce
Send a log record with duplicate attributes to the collector. In an ASP.NET Core app, this can occur when using this registration, which enables
IncludeScopes
.See open-telemetry/opentelemetry-dotnet#4324, which acknowledges this behaviour and non-compliance with the spec.
Expected Result
The log is exported to Elasticsearch
Actual Result
An error occurs, and the log (batch) is lost.
Collector version
0.120.1
Environment information
OpenTelemetry Collector configuration
Log output
Additional context
No response
The text was updated successfully, but these errors were encountered: