Conversation
Add client-side distributed tracing using OpenTelemetry with OTLP gRPC exporter. Wraps http.DefaultTransport with otelhttp for outbound call tracing. Creates root spans for sign and sign-blob operations. Uses the shared tracing library from sigstore/model-validation-operator. Signed-off-by: Nina Bongartz <nolear@redhat.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--tracing-enabled,--tracing-endpoint,--tracing-insecure,--tracing-stdouthttp.DefaultTransportwrapped withotelhttp.NewTransportfor outbound call tracingsignandsign-bloboperationstracingTransportbridges span context for HTTP clients that create requests without contextsigstore/model-validation-operator/pkg/tracingChanges
cmd/cosign/cli/options/root.go: Add tracing fields to RootOptions and persistent flagscmd/cosign/cli/commands.go: Add tracing init, transport wrapping, and shutdowncmd/cosign/cli/sign/sign.go: Add root span for sign operationcmd/cosign/cli/sign/sign_blob.go: Add root span for sign-blob operationinternal/tracing/context.go: New file for ActiveCtx context bridgego.mod/go.sum: Add tracing dependenciesTest plan
cosign sign --tracing-enabled --tracing-endpoint <collector>and verify traces in Jaeger