Skip to content

feat(otlp-metrics): added support for histogram, exp. histogram, and summary#1853

Draft
lucastemb wants to merge 11 commits intomainfrom
lt/add-otlp-metrics
Draft

feat(otlp-metrics): added support for histogram, exp. histogram, and summary#1853
lucastemb wants to merge 11 commits intomainfrom
lt/add-otlp-metrics

Conversation

@lucastemb
Copy link
Copy Markdown

…m, and summary metrics

What does this PR do?

Adds support for the remaining OTLP metrics (Exponential Histogram, Histogram, and Summary) in the correctness tests

Motivation

Will be used to test whether these metric types are being properly handled by ADP in the Saluki repo.

Related issues

A list of issues either fixed, containing architectural discussions, otherwise relevant
for this Pull Request.

Additional Notes

Anything else we should know when reviewing?

@lucastemb lucastemb force-pushed the lt/add-otlp-metrics branch from 512959a to 5bc3dc5 Compare April 15, 2026 18:21
@lucastemb lucastemb changed the title feat(OTLP metrics): added support for histogram, exponential histogra… feat(otlp-metrics): added support for histogram, exp. histogram, and summary Apr 15, 2026
@lucastemb lucastemb marked this pull request as ready for review April 15, 2026 20:09
@lucastemb lucastemb requested a review from a team as a code owner April 15, 2026 20:09
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 37bf8c92cf

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lading_payload/src/opentelemetry/metric.rs Outdated
Comment thread lading_payload/src/opentelemetry/metric.rs
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e0421e01c1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lading_payload/src/opentelemetry/metric.rs Outdated
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e5b1c795ed

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread lading_payload/src/opentelemetry/metric.rs
}

self.data_points_per_resource = total_data_points(&tpl);
self.last_collection_time_unix_nano = current_time_unix_nano;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Advance collection clock only after payload acceptance

This updates the generator-wide last_collection_time_unix_nano inside generate, but to_bytes can still discard the returned ResourceMetrics when request framing pushes it over max_bytes (the pop-and-break path). That means a collection tick is recorded even though nothing was emitted, so newly created delta series can get start_time_unix_nano anchored to an unseen collection interval. Defer this assignment until the resource is actually retained in the request.

Useful? React with 👍 / 👎.

@lucastemb lucastemb marked this pull request as draft April 18, 2026 00:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant