Skip to content

Commit daa63eb

Browse files
pavolloffaymax-cx
authored andcommitted
OBSDOCS-1430: Fix instrumentation example in OTEL docs
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
1 parent a017fec commit daa63eb

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

modules/otel-config-instrumentation.adoc

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,23 +24,40 @@ Instrumentation options are specified in an `Instrumentation` custom resource (C
2424
apiVersion: opentelemetry.io/v1alpha1
2525
kind: Instrumentation
2626
metadata:
27-
name: java-instrumentation
27+
name: instrumentation
2828
spec:
2929
env:
3030
- name: OTEL_EXPORTER_OTLP_TIMEOUT
3131
value: "20"
3232
exporter:
3333
endpoint: http://production-collector.observability.svc.cluster.local:4317
3434
propagators:
35-
- w3c
35+
- tracecontext
36+
- baggage
3637
sampler:
3738
type: parentbased_traceidratio
38-
argument: "0.25"
39-
java:
40-
env:
41-
- name: OTEL_JAVAAGENT_DEBUG
42-
value: "true"
39+
argument: "1"
40+
python: # <1>
41+
env: # <2>
42+
- name: OTEL_EXPORTER_OTLP_ENDPOINT
43+
value: http://production-collector.observability.svc.cluster.local:4318
44+
dotnet: # <3>
45+
env: # <4>
46+
- name: OTEL_EXPORTER_OTLP_ENDPOINT
47+
value: http://production-collector.observability.svc.cluster.local:4318
48+
go: # <5>
49+
env: # <6>
50+
- name: OTEL_EXPORTER_OTLP_ENDPOINT
51+
value: http://production-collector.observability.svc.cluster.local:4318
4352
----
53+
<1> Python auto-instrumentation uses protocol buffers over HTTP (HTTP/proto or HTTP/protobuf) by default.
54+
<2> Required if endpoint is set to `:4317`.
55+
<3> .NET auto-instrumentation uses protocol buffers over HTTP (HTTP/proto or HTTP/protobuf) by default.
56+
<4> Required if endpoint is set to `:4317`.
57+
<5> Go auto-instrumentation uses protocol buffers over HTTP (HTTP/proto or HTTP/protobuf) by default.
58+
<6> Required if endpoint is set to `:4317`.
59+
+
60+
For more information about procol buffers, see link:https://protobuf.dev/overview/[Overview] (Protocol Buffers Documentation).
4461

4562
//[cols=",,",options="header",]
4663

0 commit comments

Comments
 (0)