diff --git a/instrumentation-genai/opentelemetry-instrumentation-google-genai/README.rst b/instrumentation-genai/opentelemetry-instrumentation-google-genai/README.rst index 45fc185525..0260563b24 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 to not emit the ones at 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 ************