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.35.1 (latest)
- Published
- Apr 17, 2025
- Platform
- linux/amd64
- Imports
- 16 packages
- Last checked
- 20 hours ago –
Tools for package owners.