-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Observed timestamp in logs is not exported to clickhouse #34150
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Code owners have approved the PR resolving this, removing |
**Description:** Some senders, such as the rust-opentelemetry do _not_ send timestamp in their logs. In these cases, if the timestamp is not set, we must use the observed timestamp instead. **Link to tracking Issue:** #34150 **Testing:** Added a test which does not define timestamp --------- Co-authored-by: Curtis Robert <[email protected]> Co-authored-by: Pablo Baeyens <[email protected]> Co-authored-by: Alex Boten <[email protected]>
…34151) **Description:** Some senders, such as the rust-opentelemetry do _not_ send timestamp in their logs. In these cases, if the timestamp is not set, we must use the observed timestamp instead. **Link to tracking Issue:** open-telemetry#34150 **Testing:** Added a test which does not define timestamp --------- Co-authored-by: Curtis Robert <[email protected]> Co-authored-by: Pablo Baeyens <[email protected]> Co-authored-by: Alex Boten <[email protected]>
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This was fixed/merged in #34151 and should've been closed automatically cc @crobert-1 |
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 :)
The text was updated successfully, but these errors were encountered: