-
Notifications
You must be signed in to change notification settings - Fork 793
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
Merged
aabmass
merged 40 commits into
open-telemetry:main
from
argaj:genai-instrumentation-semconv
Oct 13, 2025
+2,399
−901
Merged
Changes from all commits
Commits
Show all changes
40 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 ab39602
fix: aggregate streaming messages into one event.
argaj 0ff51f3
fix: remove gen_ai.system from latest sem_conv
argaj 48ac64b
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
argaj e51ef37
refactor: import encoder from utils-genai
argaj 5c35853
build: update deps versions.
argaj 46b10d1
refactor: deduplicate creating attributes, use gen_ai_json_dumps
argaj 5703096
refactor: move blobpart and filedatapart to instrumentation-google-ge…
argaj b564008
test: add comment for headers.
argaj 8b8995c
test: fix span attributes formatting.
argaj 3f20dbc
Merge branch 'main' into genai-instrumentation-semconv
argaj 9ef75f7
fix: lint
argaj 20c082c
fix: use LogRecord instead of Event.
argaj f4df9fb
docs: update changelog
argaj 39deea9
build: update uv.lock
argaj 661998b
test: disable lint
argaj 49264ee
build: unpin opentelemetry-util-genai version
argaj 9bd4d25
test: add e2e completion_hook test
argaj ac3a4a6
Merge branch 'main' of https://github.com/open-telemetry/opentelemetr…
argaj 3353819
Merge branch 'main' into genai-instrumentation-semconv
aabmass 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
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
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.
Uh oh!
There was an error while loading. Please reload this page.