-
Notifications
You must be signed in to change notification settings - Fork 2.9k
[exporter/elasticsearchexporter] Add function to encode spans in ECS mapping mode #40807
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/cc @carsonip @lahsivjar @JaredTan95 For some reason I cannot assign @carsonip and @lahsivjar as reviewers 🤔 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! I believe the implementation details need to be ironed out before the PR can proceed
.chloggen/add-function-to-encode-spans-in-ecs-mapping-mode.yaml
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adding a few things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
@carsonip is out these days, dismissing his review to unblock this PR
Description
elasticsearchexporter
marks traces as supported when using ECS as the mapping mode. However, no actual SemConv to ECS mapping is implemented for traces.Instead, the exporter falls back to the generic
nonOtelEncoder
, which doesn't perform any meaningful mapping. This breaks consumers that expect ECS-compliant data (e.g., Elastic APM).This PR adds a new
encodeSpan
function forecsModeEncoder
that follows similar logic toencodeLog
.