From f672336c43662794263559f53ce902f283ca2f6e Mon Sep 17 00:00:00 2001
From: Pavol Loffay
Date: Fri, 18 Oct 2024 13:26:52 +0200
Subject: [PATCH] OTEL: fix instrumentation example
Signed-off-by: Pavol Loffay
---
modules/otel-config-instrumentation.adoc | 27 ++++++++++++++++++------
1 file changed, 21 insertions(+), 6 deletions(-)
diff --git a/modules/otel-config-instrumentation.adoc b/modules/otel-config-instrumentation.adoc
index 23127935db03..92d0bafc1dce 100644
--- a/modules/otel-config-instrumentation.adoc
+++ b/modules/otel-config-instrumentation.adoc
@@ -26,7 +26,7 @@ Instrumentation options are specified in the `OpenTelemetryCollector` custom res
apiVersion: opentelemetry.io/v1alpha1
kind: Instrumentation
metadata:
- name: java-instrumentation
+ name: instrumentation
spec:
env:
- name: OTEL_EXPORTER_OTLP_TIMEOUT
@@ -34,14 +34,29 @@ spec:
exporter:
endpoint: http://production-collector.observability.svc.cluster.local:4317
propagators:
- - w3c
+ - tracecontext
+ - baggage
sampler:
type: parentbased_traceidratio
- argument: "0.25"
- java:
+ argument: "1"
+ python:
env:
- - name: OTEL_JAVAAGENT_DEBUG
- value: "true"
+ # Required if endpoint is set to :4317.
+ # Python auto-instrumentation uses http/proto by default
+ - name: OTEL_EXPORTER_OTLP_ENDPOINT
+ value: http://production-collector.observability.svc.cluster.local:4318
+ dotnet:
+ env:
+ # Required if endpoint is set to :4317.
+ # Dotnet auto-instrumentation uses http/proto by default
+ - name: OTEL_EXPORTER_OTLP_ENDPOINT
+ value: http://production-collector.observability.svc.cluster.local:4318
+ go:
+ env:
+ # Required if endpoint is set to :4317.
+ # Go auto-instrumentation uses http/proto by default
+ - name: OTEL_EXPORTER_OTLP_ENDPOINT
+ value: http://production-collector.observability.svc.cluster.local:4318
----
//[cols=",,",options="header",]