-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
`crictl` now features 3 new CLI parameters: - `--enable-tracing`: Enable OpenTelemetry tracing. (default: false) - `--tracing-endpoint`: Address to which the gRPC tracing collector will send spans to. (default: "0.0.0.0:4317") - `--tracing-sampling-rate-per-million`: Number of samples to collect per million OpenTelemetry spans. Set to 1000000 or -1 to always sample. (default: -1) The tracer provider will be created on startup and the `Shutdown()` invocation will ensure that all spans are processed before exiting the binary. The `hack/tracing` directory contains scripts for local testing: ``` > ./hack/tracing/start … Everything is ready, open http://localhost:16686 to access jaeger ``` When now running `crictl` with `--enable-tracing`: ``` > sudo ./build/bin/linux/amd64/crictl --enable-tracing ps ``` Then jaeger should show collected traces and spans for the 3 RPCs `ListContainers`, `ImageFsInfo` as well as `Version`. Signed-off-by: Sascha Grunert <[email protected]>
- Loading branch information
1 parent
052273d
commit f6e57a2
Showing
175 changed files
with
14,195 additions
and
8,597 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.