Add tracing 76/142676/4
authorFiete Ostkamp <fiete.ostkamp@telekom.de>
Sun, 7 Dec 2025 17:54:34 +0000 (18:54 +0100)
committerFiete Ostkamp <fiete.ostkamp@telekom.de>
Mon, 8 Dec 2025 07:25:56 +0000 (08:25 +0100)
commitcc19c62878982a123b85e15d4b741b214bdef834
tree656622ab4d64f314e74f40a0dea4ac242934da17
parent34161ab4ccc7769152bbf04b388e801394b25827
Add tracing

- add otel dependencies [0]
- register otel middleware on router
- use grpc trace exporter
- this also updates gorilla/mux (1.7.3 -> 1.8.0)
- exporter configuration is available via
  environment variables [1]

[0] v1.2.0 of otel dependencies is used due to a dependency
    on v1 of github.com/go-logr/logr in later versions.
    The update from v0 to v1 of that dependency would require
    updating all the k8s.io packages from v0.19 -> v0.21 too.
[1] https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/

Issue-ID: MULTICLOUD-1535
Change-Id: I0cdd9f1682542e96b8808e59f9b83868ab2d8565
Signed-off-by: Fiete Ostkamp <fiete.ostkamp@telekom.de>
.gitignore
src/k8splugin/api/api.go
src/k8splugin/cmd/main.go
src/k8splugin/go.mod
src/k8splugin/go.sum
src/k8splugin/internal/tracing/tracing.go [new file with mode: 0644]