From 66a4852b922f3f7c046a64fb521ed2520832b8ed Mon Sep 17 00:00:00 2001 From: Dylan Russell Date: Thu, 11 Dec 2025 16:57:15 +0000 Subject: [PATCH 1/2] Fix readme --- .../README.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/instrumentation-genai/opentelemetry-instrumentation-google-genai/README.rst b/instrumentation-genai/opentelemetry-instrumentation-google-genai/README.rst index 45fc185525..eab00fdafe 100644 --- a/instrumentation-genai/opentelemetry-instrumentation-google-genai/README.rst +++ b/instrumentation-genai/opentelemetry-instrumentation-google-genai/README.rst @@ -60,6 +60,12 @@ Make sure to configure OpenTelemetry tracing, logging, metrics, and events to ca model="gemini-1.5-flash-002", contents="Write a short poem on OpenTelemetry.") +Enabling experimental semconvs +****************************** + +Set the environment variable `OTEL_SEMCONV_STABILITY_OPT_IN` to `gen_ai_latest_experimental` to +emit the latest experimental version of GenAI conventions and do not emit the old ones (v1.36.0 or prior). + Enabling message content ************************* @@ -67,6 +73,10 @@ Message content such as the contents of the prompt and response are not captured by default. To capture message content as log events, set the environment variable `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT` to `true`. +If `OTEL_SEMCONV_STABILITY_OPT_IN` is set to `gen_ai_latest_experimental` then `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT` +must instead be one of `SPAN_AND_EVENT`, `NO_CONTENT`, `EVENT_ONLY` or `SPAN_ONLY`. This controls whether message content +is captured in spans, events, or neither. + Uninstrument ************ From ba05f650f7ec176f450e0e690175a8a2439e1f80 Mon Sep 17 00:00:00 2001 From: Dylan Russell Date: Tue, 16 Dec 2025 16:47:46 +0000 Subject: [PATCH 2/2] ADdress comment --- .../opentelemetry-instrumentation-google-genai/README.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instrumentation-genai/opentelemetry-instrumentation-google-genai/README.rst b/instrumentation-genai/opentelemetry-instrumentation-google-genai/README.rst index eab00fdafe..0260563b24 100644 --- a/instrumentation-genai/opentelemetry-instrumentation-google-genai/README.rst +++ b/instrumentation-genai/opentelemetry-instrumentation-google-genai/README.rst @@ -64,7 +64,7 @@ Enabling experimental semconvs ****************************** Set the environment variable `OTEL_SEMCONV_STABILITY_OPT_IN` to `gen_ai_latest_experimental` to -emit the latest experimental version of GenAI conventions and do not emit the old ones (v1.36.0 or prior). +emit the latest experimental version of GenAI conventions and to not emit the ones at v1.36.0 or prior. Enabling message content *************************