-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
Description
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 attributes data_stream.dataset
or data_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