Skip to content

feat: add OpenTelemetry tracing support to log server#737

Draft
miyunari wants to merge 1 commit into
mainfrom
tracing
Draft

feat: add OpenTelemetry tracing support to log server#737
miyunari wants to merge 1 commit into
mainfrom
tracing

Conversation

@miyunari

Copy link
Copy Markdown

Summary

  • Add OpenTelemetry tracing to the Trillian log server
  • New CLI flags: --tracing-enabled, --tracing-endpoint, --tracing-insecure, --tracing-stdout
  • gRPC server instrumented with otelgrpc.NewServerHandler() to receive trace context from Rekor
  • Uses shared tracing library from sigstore/model-validation-operator/pkg/tracing

Changes

  • cmd/trillian_log_server/main.go: Add tracing flags, initialization, and gRPC server handler
  • go.mod/go.sum: Add tracing dependencies

Test plan

  • Verify build passes
  • Deploy with --tracing-enabled --tracing-endpoint <collector> alongside Rekor
  • Verify Rekor->Trillian traces appear as connected spans in Jaeger
  • Verify no impact when tracing is disabled (default)

Add distributed tracing using OpenTelemetry with OTLP gRPC exporter.
gRPC server instrumented with otelgrpc to receive trace context from
upstream services (e.g., Rekor). Tracing is controlled via CLI flags.

Uses the shared tracing library from sigstore/model-validation-operator.

Signed-off-by: Nina Bongartz <nolear@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant