Skip to content

Commit 58843c9

Browse files
authored
Update opentelemetry-instrumentation-google-genai README to mention the new experimental sem conv opt in flag.. (#4026)
* Fix readme * ADdress comment
1 parent 1102e35 commit 58843c9

File tree

1 file changed

+10
-0
lines changed
  • instrumentation-genai/opentelemetry-instrumentation-google-genai

1 file changed

+10
-0
lines changed

instrumentation-genai/opentelemetry-instrumentation-google-genai/README.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,23 @@ Make sure to configure OpenTelemetry tracing, logging, metrics, and events to ca
6060
model="gemini-1.5-flash-002",
6161
contents="Write a short poem on OpenTelemetry.")
6262
63+
Enabling experimental semconvs
64+
******************************
65+
66+
Set the environment variable `OTEL_SEMCONV_STABILITY_OPT_IN` to `gen_ai_latest_experimental` to
67+
emit the latest experimental version of GenAI conventions and to not emit the ones at v1.36.0 or prior.
68+
6369
Enabling message content
6470
*************************
6571

6672
Message content such as the contents of the prompt and response
6773
are not captured by default. To capture message content as log events, set the environment variable
6874
`OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT` to `true`.
6975

76+
If `OTEL_SEMCONV_STABILITY_OPT_IN` is set to `gen_ai_latest_experimental` then `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT`
77+
must instead be one of `SPAN_AND_EVENT`, `NO_CONTENT`, `EVENT_ONLY` or `SPAN_ONLY`. This controls whether message content
78+
is captured in spans, events, or neither.
79+
7080
Uninstrument
7181
************
7282

0 commit comments

Comments
 (0)