-
Notifications
You must be signed in to change notification settings - Fork 160
Add OTel data stream routing page #1260
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
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.
First pass. How would you see moving this content inside https://www.elastic.co/docs/solutions/observability/apm/data-streams ?
I thought about it, but since this is specific to OTel, I wasn't sure if that was the appropriate place. |
Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]>
Let's keep it separate for now then. Thanks Erik! |
|
||
To automatically route OTLP data, set the `data_stream.dataset` and `data_stream.namespace` attributes. These attributes map to the respective [ECS fields](ecs://reference/ecs-data_stream.md). | ||
|
||
You can set the `data_stream` attributes at resource level, scope level, span level, or span event level. Elastic parses the attributes in increasing order of precedence. For example, span event `data_stream` attributes override the span `data_stream` attributes. This implies that `data_stream` attributes are inherited from previous levels. If a span doesn't specify `data_stream` attributes, it uses the scope attributes. |
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.
resource level, scope level, span level, or span event level
Not entirely accurate. It works at resource level, scope level, and record level (span, span event, log record, data point)
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.
@carsonip Feel free to open a small patch and I'll merge
Apply suggestion from #1260 (comment). Co-authored-by: Fabrizio Ferri-Benedetti <[email protected]>
This PR adds a new page under APM OTel to describe data stream routing.
Closes elastic/apm-server#16204.