Skip to content

Update metrics generation such that timestamps, sums are updated#1356

Merged
blt merged 3 commits intomainfrom
blt/update_metrics_generation_such_that_timestamps_sums_are_updated
May 19, 2025
Merged

Update metrics generation such that timestamps, sums are updated#1356
blt merged 3 commits intomainfrom
blt/update_metrics_generation_such_that_timestamps_sums_are_updated

Conversation

@blt
Copy link
Copy Markdown
Collaborator

@blt blt commented May 15, 2025

What does this PR do?

This commit modifies the OpentelemetryMetrics generation of metrics
such that timestamps are always increasing -- with a loop around
once the block is exhausted -- and also accumulating sums do in
fact accumulate, until wrap-around.

Motivation

REF SMPTNG-659

@blt blt added the no-changelog label May 15, 2025 — with Graphite App
@blt blt marked this pull request as ready for review May 15, 2025 23:00
@blt blt requested a review from a team as a code owner May 15, 2025 23:00
@blt blt force-pushed the blt/create_a_sizedgenerator_for_use_in_otel_metrics branch from 5f62df5 to 7390b52 Compare May 15, 2025 23:16
@blt blt force-pushed the blt/update_metrics_generation_such_that_timestamps_sums_are_updated branch from 9c9fc4b to e5c8b40 Compare May 15, 2025 23:16
@blt blt force-pushed the blt/create_a_sizedgenerator_for_use_in_otel_metrics branch from 7390b52 to 19b629a Compare May 15, 2025 23:30
@blt blt force-pushed the blt/update_metrics_generation_such_that_timestamps_sums_are_updated branch from e5c8b40 to 590f3a0 Compare May 15, 2025 23:31
@blt blt force-pushed the blt/create_a_sizedgenerator_for_use_in_otel_metrics branch from 19b629a to fb7a2b1 Compare May 15, 2025 23:44
@blt blt force-pushed the blt/update_metrics_generation_such_that_timestamps_sums_are_updated branch from 590f3a0 to c580f01 Compare May 15, 2025 23:45
@blt blt force-pushed the blt/create_a_sizedgenerator_for_use_in_otel_metrics branch 2 times, most recently from 62c1fbf to 7fe5e85 Compare May 16, 2025 00:02
@blt blt force-pushed the blt/update_metrics_generation_such_that_timestamps_sums_are_updated branch from c580f01 to baad21d Compare May 16, 2025 00:02
@blt blt changed the base branch from blt/create_a_sizedgenerator_for_use_in_otel_metrics to graphite-base/1356 May 16, 2025 16:55
@blt blt force-pushed the graphite-base/1356 branch from 7fe5e85 to 3b56011 Compare May 16, 2025 16:55
@blt blt force-pushed the blt/update_metrics_generation_such_that_timestamps_sums_are_updated branch from baad21d to bee6f6b Compare May 16, 2025 16:55
@graphite-app graphite-app bot changed the base branch from graphite-base/1356 to main May 16, 2025 16:56
@blt blt force-pushed the blt/update_metrics_generation_such_that_timestamps_sums_are_updated branch from bee6f6b to 15583ed Compare May 16, 2025 16:56
blt added 3 commits May 16, 2025 11:11
This commit modifies the OpentelemetryMetrics generation of metrics
such that timestamps are always increasing -- with a loop around
once the block is exhausted -- and also accumulating sums do in
fact accumulate, until wrap-around.

REF SMPTNG-659

Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
This commit changes how points are randomly created, being zero valued. This
means that the Opentelemetry generator is responsible for setting point values
as they are generated, which is ideal. Allows us to prove that monotonic
increases happen and we reduce the computation burden on the pool.

This is effectively what we were doing already -- the underlying point value
was entirely discarded.

Signed-off-by: Brian L. Troutwine <brian.troutwine@datadoghq.com>
@blt blt force-pushed the blt/update_metrics_generation_such_that_timestamps_sums_are_updated branch from 15583ed to 9ca1fbd Compare May 16, 2025 18:11
@blt blt merged commit 4a88fdf into main May 19, 2025
21 checks passed
Copy link
Copy Markdown
Collaborator Author

blt commented May 19, 2025

Merge activity

  • May 19, 4:21 PM EDT: @blt merged this pull request with Graphite.

@blt blt deleted the blt/update_metrics_generation_such_that_timestamps_sums_are_updated branch May 19, 2025 20:21
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.

2 participants