You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: util/opentelemetry-util-genai/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
8
8
## Unreleased
9
9
10
+
- Add support for emitting inference events and enrich message types. ([#3994](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3994))
10
11
- Add support for `server.address`, `server.port` on all signals and additional metric-only attributes
- Log error when `fsspec` fails to be imported instead of silently failing ([#4037](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4037)).
Copy file name to clipboardExpand all lines: util/opentelemetry-util-genai/README.rst
+19-1Lines changed: 19 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,18 @@ while providing standardization for generating both types of otel, "spans and me
9
9
This package relies on environment variables to configure capturing of message content.
10
10
By default, message content will not be captured.
11
11
Set the environment variable `OTEL_SEMCONV_STABILITY_OPT_IN` to `gen_ai_latest_experimental` to enable experimental features.
12
-
And set the environment variable `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT` to `SPAN_ONLY` or `SPAN_AND_EVENT` to capture message content in spans.
12
+
Set the environment variable `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT` to one of:
13
+
- `NO_CONTENT`: Do not capture message content (default).
14
+
- `SPAN_ONLY`: Capture message content in spans only.
15
+
- `EVENT_ONLY`: Capture message content in events only.
16
+
- `SPAN_AND_EVENT`: Capture message content in both spans and events.
17
+
18
+
To control event emission, you can optionally set `OTEL_INSTRUMENTATION_GENAI_EMIT_EVENT` to `true` or `false` (case-insensitive).
19
+
This variable controls whether to emit `gen_ai.client.inference.operation.details` events.
20
+
If not explicitly set, the default value is automatically determined by `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT`:
21
+
- When `NO_CONTENT` or `SPAN_ONLY` is set: defaults to `false`
22
+
- When `EVENT_ONLY` or `SPAN_AND_EVENT` is set: defaults to `true`
23
+
If explicitly set, the user's value takes precedence over the default.
13
24
14
25
This package provides these span attributes:
15
26
@@ -23,6 +34,13 @@ This package provides these span attributes:
0 commit comments