-
Notifications
You must be signed in to change notification settings - Fork 16
Remove span.id enrichment for Elastic Transactions
#258
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
…ion `span.id` attribute
axw
left a comment
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.
@isaacaflores2 Couldn't we just set clear_span_id: false, so the top-level SpanID field is set?
|
@axw I tried that but that did not help. The issue I am trying to fix is that the final index document has |
|
@isaacaflores2 just to make sure we're on the same page, I should have said:
attribute.PutStr(span.Attributes(), elasticattr.SpanID, transactionID)
So the outcome is that we'll never set Does that work/make sense? |
|
Ah I see now @axw . I added this line previously to achieve parity with apm-data. attribute.PutStr(span.Attributes(), elasticattr.SpanID, transactionID)So we would like this attribute when the mapping-mode is |
elastic_transaction::span_id config to control Elastic transaction span.id attributespan.id enrichment for Elastic Transactions
|
@axw I updated to remove |
axw
left a comment
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 :)
Overview
Thespan.idattribute was previously added to Elastic Transactions in #251 to match legacy apm-data behavior, but this attribute is not always needed (example: x-elastic-mapping-mode: otel)Adding a config so that this enrichment can be controlledThe
span.idenrichment for Elastic Transaction is no longer need since Elasticsearch Exporter will continue to add thespan.idattribute for the ECS mapping mode