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
…open-telemetry#35494)
**Description:** Adds util functions to sanitize data stream fields
**Link to tracking Issue:** Fixesopen-telemetry#34285
**Testing:** Added unit tests
Component(s)
exporter/elasticsearch
What happened?
Description
Data stream attributes are not sanitized, resulting in non-compliant data stream names. Sanitization should be implemented according to https://www.elastic.co/guide/en/ecs/current/ecs-data_stream.html. There is also an implementation of DS fields sanitization in ES, but in this implementation there is in incorrect handling of an edge case where string limit should be 100 unicode characters instead of 100 bytes.
Steps to Reproduce
Supply a value with
-
in resource attributesdata_stream.dataset
ordata_stream.namespace
Expected Result
The value is sanitized so that the resulting data stream does not contain
-
Actual Result
The resulting data stream contains
-
.Collector version
v0.105.0
Environment information
No response
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: