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> |
||
---|---|---|
.. | ||
internal/signals | ||
winresources | ||
aliases.go | ||
builder.go | ||
builder_test.go | ||
builder_windows_test.go | ||
completions.go | ||
docker.go | ||
docker_test.go | ||
docker_windows_386.go | ||
docker_windows_amd64.go | ||
docker_windows_arm.go | ||
docker_windows_arm64.go |