feat(otel): auto-detected language instrumentation patch
This commit is contained in:
19
overlays/otel/patches/otel-patch.yaml
Normal file
19
overlays/otel/patches/otel-patch.yaml
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: petclinic
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
annotations:
|
||||||
|
instrumentation.opentelemetry.io/inject-java: monitoring/otel-instrumentation
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: workload
|
||||||
|
env:
|
||||||
|
- name: OTEL_SERVICE_NAME
|
||||||
|
value: petclinic
|
||||||
|
- name: OTEL_EXPORTER_OTLP_ENDPOINT
|
||||||
|
value: http://otel-collector.monitoring.svc.cluster.local:4318
|
||||||
|
- name: OTEL_RESOURCE_ATTRIBUTES
|
||||||
|
value: app=petclinic
|
||||||
Reference in New Issue
Block a user