Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

- Import `OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT` from
`opentelemetry.util.genai.environment_variables` instead of re-defining it locally,
making `opentelemetry-util-genai` the single source of truth for this constant.
([#4455](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4455))

Comment thread
xrmx marked this conversation as resolved.
Outdated
- Fix `ChoiceBuffer` crash on streaming tool-call deltas with `arguments=None`
([#4350](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4350))
- Fix `StreamWrapper` missing `.headers` and other attributes when using `with_raw_response` streaming
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
error_attributes as ErrorAttributes,
)
from opentelemetry.trace.status import Status, StatusCode
from opentelemetry.util.genai.environment_variables import (
OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT,
)
from opentelemetry.util.genai.types import (
InputMessage,
LLMInvocation,
Expand All @@ -45,10 +48,6 @@
ToolCallResponse,
)

OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT = (
"OTEL_INSTRUMENTATION_GENAI_CAPTURE_MESSAGE_CONTENT"
)


def is_content_enabled() -> bool:
capture_content = environ.get(
Expand Down
Loading