Skip to content

add opentelemetry tracing - #136

Merged
miyunari merged 4 commits into
mainfrom
feat/opentelemetry-tracing
May 15, 2026
Merged

miyunari merged 4 commits into
mainfrom
feat/opentelemetry-tracing

Conversation

@miyunari

Copy link
Copy Markdown
Member

Summary

Release Note

Documentation

miyunari added 4 commits May 11, 2026 14:06
Introduce a standalone Go module at pkg/tracing that configures
the OpenTelemetry trace SDK with OTLP gRPC or stdout exporters.
The package uses functional options and can be imported by this
project and other projects independently.

Signed-off-by: Nina Bongartz <pninak@web.de>
Initialize the trace SDK at agent startup using pkg/tracing and
create spans around each model validation run with method, path,
and type (initial/periodic) attributes. Tracing failure is
non-fatal — the agent continues without it. Also updates the
agent Dockerfile to include the pkg/tracing sub-module and adds
a test-tracing Makefile target.

Signed-off-by: Nina Bongartz <pninak@web.de>
Introduce a namespace-scoped TelemetryConfig CRD that controls
OpenTelemetry environment variables injected into validation agent
containers. Uses Prometheus-style namespaceSelector and selector
fields to match across the cluster — an empty selector matches
everything, specific selectors narrow scope. The webhook looks up
the best matching TelemetryConfig at injection time and sets
OTEL_* env vars on the container.

Signed-off-by: Nina Bongartz <pninak@web.de>
Signed-off-by: Nina Bongartz <pninak@web.de>
@miyunari
miyunari force-pushed the feat/opentelemetry-tracing branch from c69216c to be1ac5c Compare May 11, 2026 12:06
@miyunari
miyunari requested review from SequeI and knrc May 11, 2026 12:56

@fghanmi fghanmi left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM w/r tracing

@miyunari
miyunari merged commit 8649412 into main May 15, 2026
5 checks passed
@miyunari
miyunari deleted the feat/opentelemetry-tracing branch May 15, 2026 19:58
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.

3 participants