Repository navigation
Conversation
sipsma
force-pushed
the
sipsma/exec-gauge-exemplars
branch
from
October 30, 2026 19:02
0717732 to
962d2a1
Compare
Each exec's resource gauges already carry its trace and span IDs as attributes. Their default exemplar reservoirs held GOMAXPROCS slots per exec series and were collected every interval, though nothing reads the exemplars. A view on the session's meter provider gives that scope a reservoir that keeps nothing; metric values are unchanged. Signed-off-by: Erik Sipsma <[email protected]>
sipsma
force-pushed
the
sipsma/exec-gauge-exemplars
branch
from
October 30, 2026 20:51
962d2a1 to
ce53d72
Compare
Contributor
Author
|
Superseded by #15007, which carries this commit unchanged as part of the engine performance batch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Each exec's resource gauges (CPU, memory, disk I/O, network, pressure) record through the session's meter provider. The OTel SDK gives every new attribute set a reservoir of GOMAXPROCS exemplar slots, and every exec has its own attribute set, since its span ID is one of the attributes. So each exec series allocated a reservoir that was reset at every collection, though nothing uses the exemplars: the exec's trace and span IDs are already on every point as attributes.
This adds a view on the session's meter provider that gives the exec resource gauges' scope (
dagger.io/engine.buildkit) a reservoir that keeps nothing. Names, units, aggregation and values are unchanged, and other instruments keep their exemplars. The view applies to every reader of the provider, including the Cloud reader that #14930 moved to delta temporality.Measured on a cold build of dagger's CLI with per-package Go builds (one 16-vCPU Graviton machine, 2 profiled and 4 timed runs per arm, against the same base without the change):
These gauges' points no longer carry exemplars.
TestResourceMetricsViewDropsOnlyExecExemplarschecks that an exec gauge's point keeps its value and has no exemplars, while a gauge in another scope still records one. It fails without the view.