From 4a94e809581a482c2f2f6174331e9a00c795f787 Mon Sep 17 00:00:00 2001 From: Israel Blancas Date: Mon, 10 Jun 2024 18:10:19 +0200 Subject: [PATCH] OBSDOCS-1058: Update docs about instrumentation for multi-container pods Signed-off-by: Israel Blancas --- modules/otel-config-instrumentation.adoc | 42 +++++++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/modules/otel-config-instrumentation.adoc b/modules/otel-config-instrumentation.adoc index 8c868f365df5..2a1af94e0302 100644 --- a/modules/otel-config-instrumentation.adoc +++ b/modules/otel-config-instrumentation.adoc @@ -150,7 +150,7 @@ include::snippets/technology-preview.adoc[leveloffset=+1] |`configPath` |Location of the Apache HTTP Server configuration. -|/usr/local/apache2/conf +|`/usr/local/apache2/conf` |`env` |Environment variables specific to the Apache HTTP Server. @@ -397,6 +397,46 @@ instrumentation.opentelemetry.io/container-names: "," The Go auto-instrumentation does not support multi-container auto-instrumentation injection. ==== +[id="otel-multi-container-pods-multi-instrumentations_{context}"] +== Multi-container pods with multiple instrumentations + +Injecting instrumentation for an application language to one or more containers in a multi-container pod requires the following annotation: + +[source,yaml] +---- +instrumentation.opentelemetry.io/-container-names: "," # <1> +---- +<1> You can inject instrumentation for only one language per container. For the list of supported `` values, see the following table. + +.Supported values for the `` +[options="header"] +[cols="a, a"] +|=== +|Language |Value for `` + +|ApacheHTTPD +|`apache` + +|DotNet +|`dotnet` + +|Java +|`java` + +|NGINX +|`inject-nginx` + +|NodeJS +|`nodejs` + +|Python +|`python` + +|SDK +|`sdk` + +|=== + [id="otel-using-instrumentation-cr-with-service-mesh_{context}"] == Using the instrumentation CR with Service Mesh