-
Notifications
You must be signed in to change notification settings - Fork 568
feat(tracing): AI Agents templates for @trace decorator
#4676
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
+555
−13
Merged
Changes from 68 commits
Commits
Show all changes
83 commits
Select commit
Hold shift + click to select a range
1162254
First version of helpers for better manual instrumentation
antonpirker 4346db1
minor improvements
antonpirker bfc6626
A nicer implementation
antonpirker f193ecb
style
antonpirker 8488a53
fixing setting of name
antonpirker 5621f15
Some linting
antonpirker 43ff0c6
Replaced original trace decorator with new_decorator
antonpirker 6a5c88e
Cleanup
antonpirker 74941d4
fix start child
antonpirker 6d36b28
If no span, do nothing
antonpirker 09d5646
change less code
antonpirker 3020f92
comment
antonpirker acd5401
its description internally
antonpirker 695dd06
move _set_span_attribuets into span
antonpirker 5068c5b
typing
antonpirker 98c8d42
.
antonpirker 35e7809
Add enum for template
antonpirker a538d2a
Make some consts public
antonpirker 241d5cf
Also make op part of public api
antonpirker 33f79b8
sort
antonpirker dbbf3b4
Allow setting a key to None
antonpirker cfec8c0
Merge branch 'master' into antonpirker/manual-instrumentation
antonpirker c234dd4
typing
antonpirker cf5382f
Guess some attributes from input/response
antonpirker fdcdfdf
fix tool description
antonpirker 9917808
Added more token names
antonpirker 7c1076b
better span naming
antonpirker a6eed59
Tool input and output
antonpirker 2011ab4
Check PII settings before adding tool input/output
antonpirker 668a421
Better usage extraction
antonpirker d8b5838
cleanup
antonpirker 94796c6
make attribute a string
antonpirker ee845b1
cleanup
antonpirker c2d47bc
renaming
antonpirker 5e7d44b
Merge branch 'master' into antonpirker/manual-instrumentation
antonpirker 4843674
update
antonpirker f0d3ab6
cleanup
antonpirker a75954e
Merge branch 'master' into antonpirker/manual-instrumentation
antonpirker 58a1646
apidocs
antonpirker 4002e86
Merge branch 'master' into antonpirker/manual-instrumentation
antonpirker 989e0be
apidoc
antonpirker aa82162
apidocs
antonpirker 0c3da75
typo
antonpirker 55a1035
default value
antonpirker 0b84d48
remove ai stuff
antonpirker 35d8f12
remove template stuff
antonpirker 10e82cd
remove
antonpirker c2d4e48
removed too much
antonpirker 9a63d8c
cleanup
antonpirker c20429b
Apply suggestions from code review
antonpirker 2d93a65
typing
antonpirker b0cc71a
typing
antonpirker 42afdfa
moved up
antonpirker aa3c334
fix circular import
antonpirker dc63e43
linting
antonpirker de68868
AI Agents templates for trace decorator
antonpirker 04b976a
docstring
antonpirker caafc14
Added test
antonpirker 79768c6
More tests
antonpirker aad822e
Tests
antonpirker c7fb31e
tests
antonpirker e1e1b26
tests
antonpirker b95770b
tests
antonpirker e64c3a2
fiux
antonpirker bbeb136
cleanup
antonpirker 6aab06c
Merge branch 'master' into manual-instrumentation2
antonpirker b294a54
mypy
antonpirker 34a369a
Merge branch 'master' into manual-instrumentation2
antonpirker 074fc53
Merge branch 'master' into manual-instrumentation2
antonpirker 55289df
rename spantemplate.span to spantemplate.default
antonpirker baa1d78
Apply suggestions from code review
antonpirker 48023db
Merge branch 'manual-instrumentation2' of github.com:getsentry/sentry…
antonpirker 8e0b78d
dedupe code in _get_usage_attributes
antonpirker 61158fb
dedupe _get_input_attributes
antonpirker c1405a2
dedupe _get_output_attributes
antonpirker 2529d10
Cleanup
antonpirker ca3e67f
cleanup
antonpirker 26fe6fc
error handling
antonpirker 697ed9f
make it better
antonpirker 2bd798a
comments
antonpirker a5b9294
fix
antonpirker 22be202
fix
antonpirker 5089695
whitespace
antonpirker 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
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.