cmdtrace

package
v0.0.0-...-011cc8a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(cmd *cobra.Command, dockerCli command.Cli, args []string) error

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL