-
Notifications
You must be signed in to change notification settings - Fork 784
Update google genai instrumentation to work with latest semantic convention, allow for uploading content. #3772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
argaj
wants to merge
21
commits into
open-telemetry:main
Choose a base branch
from
argaj:genai-instrumentation-semconv
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,837
−866
Open
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
3ac198d
Update google genai instrumentation to latest semantic convention.
argaj 9ea2278
fix: log roles as str, event attrs as objects.
argaj eeed7d5
fix: proper event name
argaj e1738c2
refactor: remove unused message models.
argaj f1feaf7
refactor: use OTel imported semconv attributes.
argaj ee911f5
refactor: Inject upload_hook in Instrumentor.
argaj 8583327
refactor: rename upload hook to completion hook.
argaj 47d5728
test: add tests for non streaming case and tool_call_wrapper.
argaj b3a6efb
test: add tool call instrumentation tests and nonstreaming recording …
argaj 2eefc39
fix: remove print
argaj 166c081
feature: add blobpart and filepart to message handling
argaj ae4da64
fix: encode bytes as base64 when dumping to json string.
argaj 13b6f2e
fix: always call completion hook, independently of recording settings.
argaj 058da13
test: update requirements for instrumentation-google-genai oldest env
argaj 17b9c0a
test: bump google-genai lib version in -oldest test env.
argaj 6276543
Merge branch 'main' into genai-instrumentation-semconv
aabmass 057d956
test: fix event recording test.
argaj 486796a
Update FakeCredentials
DylanRussell 205aa88
Fix tests
DylanRussell 32ae223
Merge branch 'main' into genai-instrumentation-semconv
DylanRussell 05bed52
fix lint issues
DylanRussell File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
opentelemetry-util-genai
needs to be added as a dep in pyproject.toml