-
Notifications
You must be signed in to change notification settings - Fork 407
fix(id): drop stale telemetry and RC tag on identity refresh #9814
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
Open
litianningdatadog
wants to merge
44
commits into
BridgeAR/2026-08-05-microvm-identity-refresh-review
Choose a base branch
from
tianning.li/2026-08-05-microvm-identity-refresh-review-followup
base: BridgeAR/2026-08-05-microvm-identity-refresh-review
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+2,063
−158
Open
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
a531130
fix(id): reseed all PRNG consumers from kernel CSPRNG on Lambda Micro…
litianningdatadog e7c26e1
fix(remote_config): make RC client id and runtime_id live getters
litianningdatadog 587bd10
test(id): cover fillFromKernel read-failure and zero-byte paths
litianningdatadog 89395ba
refactor(id): trim verbose JSDoc and use #private for registerMicroVm…
litianningdatadog bd18572
fix(id): address CI lint errors from ESLint run
litianningdatadog 11d4f05
fix(id): refresh process-discovery metadata on MicroVM clone resume
litianningdatadog 77214e2
test(id): add coverage for DatadogTracer#refreshMetadata
litianningdatadog fae295f
fix(id): reuse existing crypto uuid/randomFillSync instead of reading…
litianningdatadog 2d837d2
refactor(id): trigger MicroVM identity reseed via diagnostic channel
litianningdatadog f1323e6
refactor(id): move MicroVM identity-refresh listeners into their own …
litianningdatadog 3fdd19e
fix(id): address Copilot review findings on PR #9075
litianningdatadog a322286
fix(id): remove public resetRuntimeId() escape hatch for day 1
litianningdatadog 9990d20
fix(id): stop exporting refreshRuntimeId/refreshClientId/reseed
litianningdatadog 6931793
fix(id): read AWS_LAMBDA_MICROVM_IMAGE_ARN via getEnvironmentVariable()
litianningdatadog 1d5b0ce
fix(id): route MicroVM identity refresh through the diagnostic channel
litianningdatadog 6b43f2a
fix(id): move refreshMetadata to #9355, which is the only caller
litianningdatadog dc5479b
fix(id): disable UUID entropy cache when refreshing MicroVM identity
litianningdatadog 812743c
fix(id): contain errors thrown by identity-refresh diagnostics-channe…
litianningdatadog 3944626
fix(id): refresh remaining runtime-id/client-id copies on MicroVM clo…
litianningdatadog 5bc894c
fix(id): stop copying env/service off tags in CI Visibility agentless…
litianningdatadog 17dd194
fix(id): address Codex review feedback on MicroVM identity refresh gaps
litianningdatadog e07d7fa
fix(id): extend MicroVM identity refresh to remaining exporters and s…
litianningdatadog 352e61a
fix(id): remove pending-state resets unrelated to identity refresh
litianningdatadog e13d3c9
fix(id): preserve buffered metrics when identity refresh tags are unc…
litianningdatadog 33f315e
revert(id): keep DogStatsDClient's _underscore fields instead of #pri…
litianningdatadog d82d316
fix(id): refresh crashtracker metadata on MicroVM clone resume
litianningdatadog 5d71d38
fix(id): drop redundant tags optional chaining in agentless exporter/…
litianningdatadog 027fcc8
fix(id): subscribe to identity refresh from Crashtracker's own constr…
litianningdatadog 65d76a8
fix(id): update CustomMetrics directly on identity refresh
litianningdatadog 775cfdf
test(opentelemetry): use fake timers in identity-refresh delta baseli…
litianningdatadog a71f43f
fix(id): keep CustomMetrics identity-refresh hook internal
litianningdatadog 632c70c
fix(debugger): remove unreachable MicroVM identity refresh
BridgeAR 81cc5b7
fix(crashtracking): subscribe after successful startup
BridgeAR 42cae1a
refactor(dogstatsd): use the client lifetime for identity refresh
BridgeAR b72f45b
refactor(opentelemetry): share resource attribute construction
BridgeAR 8ecc3b2
test(opentelemetry): cover refreshed span stats resources
BridgeAR d7a812f
test(remote-config): isolate identity refresh listener
BridgeAR 409489f
refactor(opentelemetry): centralize identity refresh
BridgeAR cfaa003
fix(id): complete MicroVM identity refresh
BridgeAR f66748a
fix(id): drain Node's buffered UUID pool on MicroVM clone resume
BridgeAR 92f12b4
docs(dogstatsd): explain cloned buffer handling
BridgeAR f9adccc
fix(id): preserve MicroVM hook after initialization errors
BridgeAR 6cac3ff
fix(id): finalize MicroVM identity refresh
BridgeAR 579c97e
fix(id): drop stale telemetry and RC tag on identity refresh
litianningdatadog File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On a MicroVM resume, the generated DogStatsD tags commonly remain unchanged:
DogStatsDClient.generateClientConfig()excludesruntime-idunlessruntimeMetricsRuntimeIdis enabled, which defaults to false, and serverless configuration disables Remote Config so there may be no changing RC client-id tag either. In that default caseupdateTags()returns false and this branch retains counters, gauges, and histograms accumulated in the snapshot, causing every clone to flush duplicate pre-snapshot values; the identity-refresh subscriber should reset aggregation regardless of whether the serialized tag prefix changes. The added tests only exercise the non-default runtime-id-enabled case and explicitly preserve the faulty sibling case.AGENTS.md reference: AGENTS.md:L127-L129
Useful? React with 👍 / 👎.