feat(integrations): aws boto3 sdk#521
Closed
Mahhheshh (Mahhheshh) wants to merge 1 commit into
Closed
Conversation
| return cls.wrapper(wrapped, instance, args, kwargs) | ||
|
|
||
|
|
||
| class NestedFunctionWrapperPatcher(FunctionWrapperPatcher): |
Contributor
Author
There was a problem hiding this comment.
could have followed the similar approach to Anthropics patching, I found this simple, convenient, it's ugly but this works.
Contributor
Author
|
closing in favor of 519 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An attempt to enable tracing for aws boto3 sdk. #279
This PR Adds:
ConverseAPIConverseAI closure: (parts written by AI, I gave up)
Source Code
Tests
Example Trace (as basic as it could get only text baby)
{ "id": "4863118b-12f0-49c6-8eb3-e3503ee44f78", "metrics": { "start": 1781631248.7061074, "end": 1781631248.710462, "duration": 0.004354715347290039, "prompt_tokens": 18.0, "completion_tokens": 5.0, "tokens": 23.0 }, "span_attributes": { "type": "SpanTypeAttribute.LLM", "name": "bedrock_runtime.converse", "exec_counter": 1 }, "context": { "caller_functionname": "pytest_pyfunc_call", "caller_filename": "/home/mahi/OpenSource/braintrust-sdk-python/py/.nox/test_boto3-latest/lib/python3.14/site-packages/_pytest/python.py", "caller_lineno": 167 }, "input": { "messages": [ { "role": "user", "content": [ { "text": "what's 2+2" } ] } ] }, "metadata": { "runtime_provider": "aws_bedrock_runtime", "model": "claude-3-haiku-20240307-v1", "model_provider": "anthropic", "instructions": "answer only in single integer" }, "project_id": "test-boto3", "log_id": "g", "output": { "message": { "role": "assistant", "content": [ { "text": "4" } ] } }, "created": "2026-06-16T17:34:08.705904+00:00", "span_id": "48080a1c-7d82-42a5-b122-850565b8e97b", "root_span_id": "48080a1c-7d82-42a5-b122-850565b8e97b", "span_parents": null }Future;
...
Meme to make day better
