mirror of https://github.com/docker/cli.git
85dcacd78f
When a plugin is invoked, the docker cli will now set `OTEL_RESOURCE_ATTRIBUTES` to pass OTEL resource attribute names to the plugin as additional resource attributes. At the moment, the only resource attribute passed is `cobra.command_path`. All resource attributes passed by the CLI are prepended with the namespace `docker.cli` to avoid clashing with existing ones the plugin uses or ones defined by the user. For aliased commands like the various builder commands, the command path is overwritten to match with the original name (such as `docker builder`) instead of the forwarded name (such as `docker buildx build`). Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com> |
||
---|---|---|
.. | ||
candidate.go | ||
candidate_test.go | ||
cobra.go | ||
error.go | ||
error_test.go | ||
manager.go | ||
manager_test.go | ||
manager_unix.go | ||
manager_windows.go | ||
metadata.go | ||
plugin.go | ||
suffix_unix.go | ||
suffix_windows.go |