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,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

- 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))

### Added

- Add async Anthropic message stream wrappers and manager wrappers, with wrapper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ def _instrument(self, **kwargs: Any) -> None:

# Patch Messages.create
wrap_function_wrapper(
module="anthropic.resources.messages",
name="Messages.create",
wrapper=messages_create(handler),
"anthropic.resources.messages",
"Messages.create",
messages_create(handler),
)

def _uninstrument(self, **kwargs: Any) -> None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ anthropic
pytest==7.4.4
pytest-vcr==1.0.2
pytest-asyncio==0.21.0
wrapt==1.16.0
wrapt==2.1.2
# test with the latest version of opentelemetry-api, sdk, and semantic conventions

-e opentelemetry-instrumentation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

- 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))
- Added span support for genAI langchain llm invocation.
([#3665](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3665))
- Added support to call genai utils handler for langchain LLM invocations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ def _instrument(self, **kwargs: Any):
)

wrap_function_wrapper(
module="langchain_core.callbacks",
name="BaseCallbackManager.__init__",
wrapper=_BaseCallbackManagerInitWrapper(otel_callback_handler),
"langchain_core.callbacks",
"BaseCallbackManager.__init__",
_BaseCallbackManagerInitWrapper(otel_callback_handler),
)

def _uninstrument(self, **kwargs: Any):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

- 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`
([#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 @@ -119,9 +119,9 @@ def _instrument(self, **kwargs):
)

wrap_function_wrapper(
module="openai.resources.chat.completions",
name="Completions.create",
wrapper=(
"openai.resources.chat.completions",
"Completions.create",
(
chat_completions_create_v_new(handler, content_mode)
if latest_experimental_enabled
else chat_completions_create_v_old(
Expand All @@ -131,9 +131,9 @@ def _instrument(self, **kwargs):
)

wrap_function_wrapper(
module="openai.resources.chat.completions",
name="AsyncCompletions.create",
wrapper=(
"openai.resources.chat.completions",
"AsyncCompletions.create",
(
async_chat_completions_create_v_new(handler, content_mode)
if latest_experimental_enabled
else async_chat_completions_create_v_old(
Expand All @@ -144,17 +144,17 @@ def _instrument(self, **kwargs):

# Add instrumentation for the embeddings API
wrap_function_wrapper(
module="openai.resources.embeddings",
name="Embeddings.create",
wrapper=embeddings_create(
"openai.resources.embeddings",
"Embeddings.create",
embeddings_create(
tracer, instruments, latest_experimental_enabled
),
)

wrap_function_wrapper(
module="openai.resources.embeddings",
name="AsyncEmbeddings.create",
wrapper=async_embeddings_create(
"openai.resources.embeddings",
"AsyncEmbeddings.create",
async_embeddings_create(
tracer, instruments, latest_experimental_enabled
),
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ pydantic==2.12.5
httpx==0.27.2
# older jiter is required for PyPy < 3.11
jiter==0.11.1
Deprecated==1.2.14
Deprecated==1.3.1
importlib-metadata==6.11.0
packaging==24.0
pytest==7.4.4
pytest-vcr==1.0.2
pytest-asyncio==0.21.0
wrapt==1.16.0
wrapt==2.1.2
# test with the latest version of opentelemetry-api, sdk, and semantic conventions

-e opentelemetry-instrumentation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

- 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))

## Version 2.2b0 (2025-12-19)
- Fix overwritten log attributes in vertexai instrumentation
([#3925](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3925))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def _instrument(self, **kwargs: Any):
):
wrap_function_wrapper(
client_class,
name=method_name,
wrapper=wrapper,
method_name,
wrapper,
)
self._methods_to_unwrap.append((client_class, method_name))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ asgiref==3.8.1
cachetools==5.5.0
certifi==2024.8.30
charset-normalizer==3.4.0
Deprecated==1.2.15
Deprecated==1.3.1
docstring_parser==0.16
exceptiongroup==1.2.2
google-api-core[grpc, async_rest]==2.23.0
Expand Down Expand Up @@ -81,7 +81,7 @@ tomli==2.2.1
typing_extensions==4.14.1
urllib3==1.26.20
vcrpy==6.0.2
wrapt==1.17.0
wrapt==2.1.2
yarl==1.15.2
zipp==3.20.2
grpcio>=1.75.1 ; python_version >= "3.14"
Expand Down
Loading