olares: fix the opentelemetry annotations configuration bugs (#1072)

* olares: fix the opentelemetry annotations configuration bug

* fix: wrong annotation configurations

* fix: wrong annotation configurations

---------

Co-authored-by: liuyu <>
This commit is contained in:
eball
2025-03-14 00:02:56 +08:00
committed by GitHub
parent e0a670628c
commit 3a5b53fa57
6 changed files with 43 additions and 19 deletions

View File

@@ -38,15 +38,16 @@ spec:
selector:
matchLabels:
app: files
annotations:
instrumentation.opentelemetry.io/inject-go: "olares-instrumentation"
instrumentation.opentelemetry.io/inject-nginx: "olares-instrumentation"
instrumentation.opentelemetry.io/inject-nginx-container-names: "nginx"
instrumentation.opentelemetry.io/go-container-names: "gateway,files,uploader"
template:
metadata:
labels:
app: files
annotations:
# instrumentation.opentelemetry.io/inject-nginx: "olares-instrumentation"
# instrumentation.opentelemetry.io/inject-nginx-container-names: "nginx"
instrumentation.opentelemetry.io/inject-go: "olares-instrumentation"
instrumentation.opentelemetry.io/go-container-names: "gateway,files,uploader"
instrumentation.opentelemetry.io/otel-go-auto-target-exe: "/filebrowser"
spec:
serviceAccount: os-internal
serviceAccountName: os-internal