Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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,10 @@ 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))
- Fix compatibility with wrapt 2.x by using positional arguments in `wrap_function_wrapper()` calls
([#4445](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4445))
- Fix `ChoiceBuffer` crash on streaming tool-call deltas with `arguments=None`
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, # pylint: disable=no-name-in-module # TODO: migrate to InferenceInvocation
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