Skip to content

[exporter/elasticsearch] Serialize the @timestamp field for metrics as a number #41811

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

Merged
merged 4 commits into from
Aug 6, 2025

Conversation

felixbarny
Copy link
Contributor

This improves the ingestion performance in Elasticsearch as it can leverage an optimized code path for date parsing.

See elastic/elasticsearch#132462

This is not a breaking change because we are using the date field type for metrics. Supporting a more granular date format, such as date_nanos doesn't seem sensible for metrics as it would cause a big storage overhead. Most other metrics data stores also don't support more granularity than milliseconds.

… as a number

This improves the ingestion performance in Elasticsearch as it can leverage an optimized code path for date parsing.

See elastic/elasticsearch#132462

This is not a breaking change because we are using the `date` field type for metrics. Supporting a more granular date format, such as `date_nanos` doesn't seem sensible for metrics as it would cause a big storage overhead. Most other metrics data stores also don't support more granularity than milliseconds.
Copy link
Contributor

@carsonip carsonip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks. code change lgtm. Just an issue with changelog

Co-authored-by: Carson Ip <[email protected]>
@atoulme atoulme merged commit 6aee7fa into open-telemetry:main Aug 6, 2025
185 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants