Files
vote/overlays/otel/patches/otel-patch.yaml
demo-bot eedd68c470
Some checks failed
CI Pipeline / Build and Test (push) Successful in 5s
Build and Publish TechDocs / build-and-publish (push) Has been cancelled
feat(otel): auto-detected language instrumentation patch
2026-03-23 17:40:25 +00:00

80 lines
2.0 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: redis
spec:
template:
metadata:
annotations:
instrumentation.opentelemetry.io/inject-python: monitoring/otel-instrumentation
spec:
containers:
- name: redis
env:
- name: OTEL_SERVICE_NAME
value: redis
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://otel-collector.monitoring.svc.cluster.local:4317
- name: OTEL_RESOURCE_ATTRIBUTES
value: app=vote
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: result
spec:
template:
metadata:
annotations:
instrumentation.opentelemetry.io/inject-nodejs: monitoring/otel-instrumentation
spec:
containers:
- name: result
env:
- name: OTEL_SERVICE_NAME
value: result
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://otel-collector.monitoring.svc.cluster.local:4317
- name: OTEL_RESOURCE_ATTRIBUTES
value: app=vote
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: vote
spec:
template:
metadata:
annotations:
instrumentation.opentelemetry.io/inject-python: monitoring/otel-instrumentation
spec:
containers:
- name: vote
env:
- name: OTEL_SERVICE_NAME
value: vote
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://otel-collector.monitoring.svc.cluster.local:4317
- name: OTEL_RESOURCE_ATTRIBUTES
value: app=vote
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: worker
spec:
template:
metadata:
annotations:
instrumentation.opentelemetry.io/inject-dotnet: monitoring/otel-instrumentation
spec:
containers:
- name: worker
env:
- name: OTEL_SERVICE_NAME
value: worker
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://otel-collector.monitoring.svc.cluster.local:4317
- name: OTEL_RESOURCE_ATTRIBUTES
value: app=vote