Skip to content

commands: adds metrics associated with the debugger#3633

Merged
tonistiigi merged 1 commit intodocker:masterfrom
jsternberg:debugger-build-metrics
Jan 28, 2026
Merged

commands: adds metrics associated with the debugger#3633
tonistiigi merged 1 commit intodocker:masterfrom
jsternberg:debugger-build-metrics

Conversation

@jsternberg
Copy link
Collaborator

Add metrics associated with the debugger that are reported through the
metrics writer. This adds a few attributes that are only added when a
debugger is used with either the debug command or dap command.

At the moment, these metrics show up the exact same as a build and we
can't identify if something is using dap or debug since they use the
same code path.

This also adds a new available metric that can be utilized by plugins to
report additional information. The metrics will check if an environment
variable BUILDX_DAP_USER_AGENT is sent and that will get included in
the metrics if they are enabled.

Add metrics associated with the debugger that are reported through the
metrics writer. This adds a few attributes that are only added when a
debugger is used with either the `debug` command or `dap` command.

At the moment, these metrics show up the exact same as a build and we
can't identify if something is using `dap` or `debug` since they use the
same code path.

This also adds a new available metric that can be utilized by plugins to
report additional information. The metrics will check if an environment
variable `BUILDX_DAP_USER_AGENT` is sent and that will get included in
the metrics if they are enabled.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
@jsternberg
Copy link
Collaborator Author

@chelnak sorry I was trying to type in @crazy-max and auto complete put your name first when I was pressing enter.

@tonistiigi tonistiigi merged commit d88bf66 into docker:master Jan 28, 2026
160 checks passed
@jsternberg jsternberg deleted the debugger-build-metrics branch January 29, 2026 03:26
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