mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 21:46:22 +01:00
OBSDOCS-1430: Fix instrumentation example in OTEL docs
Signed-off-by: Pavol Loffay <p.loffay@gmail.com>
This commit is contained in:
@@ -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",]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user