Skip to content

Commit 33af6c0

Browse files
authored
Merge pull request #86131 from openshift-cherrypick-robot/cherry-pick-84370-to-enterprise-4.16
[enterprise-4.16] OBSDOCS-1423: Document that instrumentation injection is GA
2 parents c0176d1 + a6532cd commit 33af6c0

File tree

2 files changed

+77
-22
lines changed

2 files changed

+77
-22
lines changed

modules/otel-config-instrumentation.adoc

Lines changed: 77 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,46 @@ spec:
9898

9999
|===
100100

101+
[id="otel-configuration-of-opentelemetry-sdk-variables_{context}"]
102+
== Configuration of the OpenTelemetry SDK variables
103+
104+
You can use the `instrumentation.opentelemetry.io/inject-sdk` annotation in the OpenTelemetry Collector custom resource to instruct the {OTELName} Operator to inject some of the following OpenTelemetry SDK environment variables, depending on the `Instrumentation` CR, into your pod:
105+
106+
* `OTEL_SERVICE_NAME`
107+
* `OTEL_TRACES_SAMPLER`
108+
* `OTEL_TRACES_SAMPLER_ARG`
109+
* `OTEL_PROPAGATORS`
110+
* `OTEL_RESOURCE_ATTRIBUTES`
111+
* `OTEL_EXPORTER_OTLP_ENDPOINT`
112+
* `OTEL_EXPORTER_OTLP_CERTIFICATE`
113+
* `OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE`
114+
* `OTEL_EXPORTER_OTLP_CLIENT_KEY`
115+
116+
.Values for the `instrumentation.opentelemetry.io/inject-sdk` annotation
117+
[cols="a, a"]
118+
|===
119+
| Value | Description
120+
121+
|`"true"`
122+
|Injects the `+Instrumentation+` resource with the default name from the current namespace.
123+
124+
|`"false"`
125+
|Injects no `+Instrumentation+` resource.
126+
127+
|`"<instrumentation_name>"`
128+
|Specifies the name of the `+Instrumentation+` resource to inject from the current namespace.
129+
130+
|`"<namespace>/<instrumentation_name>"`
131+
|Specifies the name of the `+Instrumentation+` resource to inject from another namespace.
132+
133+
|===
134+
101135
[id="otel-configuration-of-apache-http-server-auto-instrumentation_{context}"]
102136
== Configuration of the Apache HTTP Server auto-instrumentation
103137

138+
:FeatureName: The Apache HTTP Server auto-instrumentation
139+
include::snippets/technology-preview.adoc[leveloffset=+1]
140+
104141
.Parameters for the `+.spec.apacheHttpd+` field
105142
[options="header"]
106143
[cols="a, a, a"]
@@ -142,6 +179,14 @@ instrumentation.opentelemetry.io/inject-apache-httpd: "true"
142179
[id="otel-configuration-of-dotnet-auto-instrumentation_{context}"]
143180
== Configuration of the .NET auto-instrumentation
144181

182+
:FeatureName: The .NET auto-instrumentation
183+
include::snippets/technology-preview.adoc[leveloffset=+1]
184+
185+
[IMPORTANT]
186+
====
187+
By default, this feature injects unsupported, upstream instrumentation libraries.
188+
====
189+
145190
[options="header"]
146191
[cols="a, a"]
147192
|===
@@ -169,6 +214,14 @@ instrumentation.opentelemetry.io/inject-dotnet: "true"
169214
[id="otel-configuration-of-go-auto-instrumentation_{context}"]
170215
== Configuration of the Go auto-instrumentation
171216

217+
:FeatureName: The Go auto-instrumentation
218+
include::snippets/technology-preview.adoc[leveloffset=+1]
219+
220+
[IMPORTANT]
221+
====
222+
By default, this feature injects unsupported, upstream instrumentation libraries.
223+
====
224+
172225
[options="header"]
173226
[cols="a, a"]
174227
|===
@@ -227,6 +280,14 @@ $ oc adm policy add-scc-to-user otel-go-instrumentation-scc -z <service_account>
227280
[id="otel-configuration-of-java-auto-instrumentation_{context}"]
228281
== Configuration of the Java auto-instrumentation
229282

283+
:FeatureName: The Java auto-instrumentation
284+
include::snippets/technology-preview.adoc[leveloffset=+1]
285+
286+
[IMPORTANT]
287+
====
288+
By default, this feature injects unsupported, upstream instrumentation libraries.
289+
====
290+
230291
[options="header"]
231292
[cols="a, a"]
232293
|===
@@ -252,6 +313,14 @@ instrumentation.opentelemetry.io/inject-java: "true"
252313
[id="otel-configuration-of-nodejs-auto-instrumentation_{context}"]
253314
== Configuration of the Node.js auto-instrumentation
254315

316+
:FeatureName: The Node.js auto-instrumentation
317+
include::snippets/technology-preview.adoc[leveloffset=+1]
318+
319+
[IMPORTANT]
320+
====
321+
By default, this feature injects unsupported, upstream instrumentation libraries.
322+
====
323+
255324
[options="header"]
256325
[cols="a, a"]
257326
|===
@@ -280,6 +349,14 @@ The `+instrumentation.opentelemetry.io/otel-go-auto-target-exe+` annotation sets
280349
[id="otel-configuration-of-python-auto-instrumentation_{context}"]
281350
== Configuration of the Python auto-instrumentation
282351

352+
:FeatureName: The Python auto-instrumentation
353+
include::snippets/technology-preview.adoc[leveloffset=+1]
354+
355+
[IMPORTANT]
356+
====
357+
By default, this feature injects unsupported, upstream instrumentation libraries.
358+
====
359+
283360
[options="header"]
284361
[cols="a, a"]
285362
|===
@@ -304,26 +381,6 @@ For Python auto-instrumentation, the `OTEL_EXPORTER_OTLP_ENDPOINT` environment v
304381
instrumentation.opentelemetry.io/inject-python: "true"
305382
----
306383

307-
[id="otel-configuration-of-opentelemetry-sdk-variables_{context}"]
308-
== Configuration of the OpenTelemetry SDK variables
309-
310-
The OpenTelemetry SDK variables in your pod are configurable by using the following annotation:
311-
312-
[source,yaml]
313-
----
314-
instrumentation.opentelemetry.io/inject-sdk: "true"
315-
----
316-
317-
Note that all the annotations accept the following values:
318-
319-
`true`:: Injects the `+Instrumentation+` resource from the namespace.
320-
321-
`false`:: Does not inject any instrumentation.
322-
323-
`instrumentation-name`:: The name of the instrumentation resource to inject from the current namespace.
324-
325-
`other-namespace/instrumentation-name`:: The name of the instrumentation resource to inject from another namespace.
326-
327384
[id="otel-multi-container-pods_{context}"]
328385
== Multi-container pods
329386

observability/otel/otel-configuration-of-instrumentation.adoc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9-
:FeatureName: OpenTelemetry instrumentation injection
10-
include::snippets/technology-preview.adoc[leveloffset=+1]
119

1210
The {OTELName} Operator uses a custom resource definition (CRD) file that defines the configuration of the instrumentation.
1311

0 commit comments

Comments
 (0)