Open pimeys opened 1 month ago
Pinging code owners:
exporter/clickhouse: @hanjm @dmitryax @Frapschen @SpencerTorres
See Adding Labels via Comments if you do not have permissions to add labels yourself.
Code owners have approved the PR resolving this, removing needs triage
.
Component(s)
exporter/clickhouse
What happened?
Description
Exporting logs from opentelemetry-rust stores zero timestamps to clickhouse.
Steps to Reproduce
Expected Result
The exporter should look first the timestamp and if null take the value from the observed timestamp field.
Actual Result
The exporter only reads the timestamp field, blindly converts it to timestamp and stores a zero value to clickhouse.
https://github.com/open-telemetry/opentelemetry-collector-contrib/blob/main/exporter/clickhouseexporter/exporter_logs.go#L93
Collector version
v0.105.0
Environment information
Environment
OS: The official collector docker image ghcr.io/open-telemetry/opentelemetry-collector-releases/opentelemetry-collector-contrib:0.105.0
OpenTelemetry Collector configuration
Log output
No response
Additional context
Should be a quick fix, I'm not a Go developer but planning to take a look :)