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
Add sync streaming support for Anthropic instrumentation
- Add support for Messages.create(stream=True) with StreamWrapper
- Add support for Messages.stream() with MessageStreamManagerWrapper
- Add MessageWrapper for non-streaming response telemetry
- Rename MessageCreateParams to MessageRequestParams
- Add comprehensive tests for sync streaming functionality
Copy file name to clipboardExpand all lines: instrumentation-genai/opentelemetry-instrumentation-anthropic/src/opentelemetry/instrumentation/anthropic/__init__.py
Copy file name to clipboardExpand all lines: instrumentation-genai/opentelemetry-instrumentation-anthropic/src/opentelemetry/instrumentation/anthropic/patch.py
+60-17Lines changed: 60 additions & 17 deletions
Original file line number
Diff line number
Diff line change
@@ -14,35 +14,40 @@
14
14
15
15
"""Patching functions for Anthropic instrumentation."""
16
16
17
-
fromtypingimportTYPE_CHECKING, Any, Callable
17
+
fromtypingimportTYPE_CHECKING, Any, Callable, Union
0 commit comments