From daa63eb753e812eb43336d9895f8360fb7fb87d9 Mon Sep 17 00:00:00 2001
From: Pavol Loffay
Date: Fri, 18 Oct 2024 13:26:52 +0200
Subject: [PATCH] OBSDOCS-1430: Fix instrumentation example in OTEL docs
Signed-off-by: Pavol Loffay
---
modules/otel-config-instrumentation.adoc | 31 ++++++++++++++++++------
1 file changed, 24 insertions(+), 7 deletions(-)
diff --git a/modules/otel-config-instrumentation.adoc b/modules/otel-config-instrumentation.adoc
index 447f2f868c..1c42fe3a76 100644
--- a/modules/otel-config-instrumentation.adoc
+++ b/modules/otel-config-instrumentation.adoc
@@ -24,7 +24,7 @@ Instrumentation options are specified in an `Instrumentation` custom resource (C
apiVersion: opentelemetry.io/v1alpha1
kind: Instrumentation
metadata:
- name: java-instrumentation
+ name: instrumentation
spec:
env:
- name: OTEL_EXPORTER_OTLP_TIMEOUT
@@ -32,15 +32,32 @@ spec:
exporter:
endpoint: http://production-collector.observability.svc.cluster.local:4317
propagators:
- - w3c
+ - tracecontext
+ - baggage
sampler:
type: parentbased_traceidratio
- argument: "0.25"
- java:
- env:
- - name: OTEL_JAVAAGENT_DEBUG
- value: "true"
+ argument: "1"
+ python: # <1>
+ env: # <2>
+ - name: OTEL_EXPORTER_OTLP_ENDPOINT
+ value: http://production-collector.observability.svc.cluster.local:4318
+ dotnet: # <3>
+ env: # <4>
+ - name: OTEL_EXPORTER_OTLP_ENDPOINT
+ value: http://production-collector.observability.svc.cluster.local:4318
+ go: # <5>
+ env: # <6>
+ - name: OTEL_EXPORTER_OTLP_ENDPOINT
+ value: http://production-collector.observability.svc.cluster.local:4318
----
+<1> Python auto-instrumentation uses protocol buffers over HTTP (HTTP/proto or HTTP/protobuf) by default.
+<2> Required if endpoint is set to `:4317`.
+<3> .NET auto-instrumentation uses protocol buffers over HTTP (HTTP/proto or HTTP/protobuf) by default.
+<4> Required if endpoint is set to `:4317`.
+<5> Go auto-instrumentation uses protocol buffers over HTTP (HTTP/proto or HTTP/protobuf) by default.
+<6> Required if endpoint is set to `:4317`.
++
+For more information about procol buffers, see link:https://protobuf.dev/overview/[Overview] (Protocol Buffers Documentation).
//[cols=",,",options="header",]