package cmdtrace
import "github.com/docker/compose/v2/cmd/cmdtrace"
Index ¶
Functions ¶
func Setup ¶
Setup should be called as part of the command's PersistentPreRunE as soon as possible after initializing the dockerCli.
It initializes the tracer for the CLI using both auto-detection from the Docker context metadata as well as standard OTEL_ env vars, creates a root span for the command, and wraps the actual command invocation to ensure the span is properly finalized and exported before exit.
Source Files ¶
- Version
- v2.29.3
- Published
- Sep 12, 2024
- Platform
- js/wasm
- Imports
- 16 packages
- Last checked
- 32 seconds ago –
Tools for package owners.