Closed
Description
Component(s)
exporter/elasticsearch
What happened?
Description
In objmodel, a double value e.g. 1.0 is encoded as 1 in the resulting json, causes it to be dynamically mapped in Elasticsearch as a long instead of a double / float.
Steps to Reproduce
- Send 1.0 to Elasticsearch to a field with dynamic mapping
- Query it back
- Check resulting mapping
Expected Result
Getting 1.0 back, mapped as double.
Actual Result
Get 1 back, mapped as long
Collector version
v0.107.0
Environment information
Environment
OS: (e.g., "Ubuntu 20.04")
Compiler(if manually compiled): (e.g., "go 14.2")
OpenTelemetry Collector configuration
No response
Log output
No response
Additional context
No response