-
-
Notifications
You must be signed in to change notification settings - Fork 226
feat(AI): Microsoft.Extensions.AI Agent Monitoring
#4657
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
alexsohn1126
wants to merge
86
commits into
main
Choose a base branch
from
alexsohn/feat/agent-monitoring-with-MS-AI-extension
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.
+2,318
−0
Open
Changes from all commits
Commits
Show all changes
86 commits
Select commit
Hold shift + click to select a range
d6791d2
Basic Functionality working
alexsohn1126 b907afb
basic tool call working
alexsohn1126 8a996b8
add tests and tool instrumentation
alexsohn1126 ba22f43
remove nullable
alexsohn1126 71afb95
remove test results
alexsohn1126 3374ce1
Format code
getsentry-bot 8abbd0b
chat spans between tool calls working
alexsohn1126 65066d0
fixed tests and span generation
alexsohn1126 c7fd85c
Format code
getsentry-bot 11c0f5d
Remove unused using in AISpanEnricher
alexsohn1126 6df16fb
Remove redundant span enrichment in GetStreamingResponseAsync
alexsohn1126 4ca0550
forgot to add span enrichment
alexsohn1126 9116a36
Change options argument name in SentryInstrumentedFunction
alexsohn1126 ce49cd1
Fix wrong checks for finishing root span
alexsohn1126 88cb6f1
Add Env var checks for OpenAI API key in samples
alexsohn1126 6f4bf82
Fix concurrency issue when multiple GetResponseAsync is called
alexsohn1126 d813c82
fix tests
alexsohn1126 03143d7
cleanup SentryChatClient
alexsohn1126 dd02e4b
update sample OpenAI packages
alexsohn1126 2de51c6
Use Activity from FICC to wrap the whole agent call
alexsohn1126 baac48b
update tests
alexsohn1126 cb2e15d
cleanup
alexsohn1126 d7233ea
Wrap Tool calls during request
alexsohn1126 a4ab79a
remove unused method
alexsohn1126 1a62b88
add tests for ActivityListener
alexsohn1126 fca78d4
modify spanenricher to have mandatory aioptions
alexsohn1126 bb40a11
update tests
alexsohn1126 cfa47ec
Format code
getsentry-bot ee9a7bb
fix broken tool spans + cleanup unused methods
alexsohn1126 e174de3
cleanup test usings
alexsohn1126 9c9004c
fix finally clause in SentryChatClient
alexsohn1126 a5b5ff6
fix activitylistener tests
alexsohn1126 b636887
cleanup tests and other stuff
alexsohn1126 c39153e
add await using on enumerator in GetStreamingResponseAsync
alexsohn1126 85df6ef
fix tool error handling and add tool exceptions in AspNetCore sample
alexsohn1126 3d338c1
add comprehensive checks for spans in SentryChatClient tests
alexsohn1126 0244a6d
rename input/output recording option
alexsohn1126 8a26aaa
minor renaming in ActivityListener
alexsohn1126 3e8064a
Add GetResponseAsync exception testing
alexsohn1126 b69f1cf
Enrich Agent Span + tests
alexsohn1126 4bc9867
Show function call results as inputs for the next chat span
alexsohn1126 eaa5edd
Format code
getsentry-bot 68f1641
Only manually finish agent span if FICC activity is not detected
alexsohn1126 243f6a0
format AspNetcore sample
alexsohn1126 cab8f1b
Change SE.AI to reference ME.AI.Abstractions
alexsohn1126 4ae6274
cleanup util and chat client class
alexsohn1126 5d72c3d
Add netstandard2.0 to target frameworks
alexsohn1126 bb2837f
downgrade ME.AI.Abstractions version
alexsohn1126 7ba2f00
cleanup using in ActivityListener
alexsohn1126 b0c0c8b
update agent spans to contain initial inputs and final output
alexsohn1126 ce3eeb7
Change WithSentry to AddSentry
alexsohn1126 a231204
Change namespace for SentryAIExtensions to ME.AI
alexsohn1126 1834723
Fix span enricher tests
alexsohn1126 e9b7f42
Cleanup merge conflict in Sentry.sln
alexsohn1126 f2096bb
Cleanup if statments in SentryAIExtensions.cs
alexsohn1126 453a7b0
Remove usage of single letter variables in ActivityListener
alexsohn1126 fd0ccba
Allow IHub to be passed in when creating ActivityListener
alexsohn1126 88f0095
Add a comment about where to find Activity constants
alexsohn1126 5e43b5b
Simplify If statements in EnrichWithRequest
alexsohn1126 5b7243d
Clarify function name for FunctionResultToObject
alexsohn1126 017ff79
Fix SentryInstrumentedFunction initialization
alexsohn1126 faef263
Remove FormatAsJsonList and replace with individual JsonSerializer calls
alexsohn1126 b4dc168
Change ActivitySpan mentions to FICCSpan
alexsohn1126 4218edf
Expand one letter argument in FormatFunctionCallContent
alexsohn1126 a2a89b3
Allow IHub to be passed in SentryInstrumentedFunction
alexsohn1126 7d93657
Change SentryInstrumentedFunctionTests to use hub substitute
alexsohn1126 274f7e5
update changelog.md
alexsohn1126 07a0111
Make Hub in ActivityListener volatile
alexsohn1126 d13640c
Remove option to initialize SentrySDK using AIOptions
alexsohn1126 45735c5
Mark AI Options as experimental
alexsohn1126 cffccf9
Add ApiApprovalTests for public facing methods
alexsohn1126 564b413
remove unused constructor
alexsohn1126 bbf4fe6
re-generate solution filters
alexsohn1126 dda35c9
add ApiApprovalTests results
alexsohn1126 96dd2eb
Merge branch 'version6' into alexsohn/feat/agent-monitoring-with-MS-A…
alexsohn1126 ed58522
Generate solution filters
alexsohn1126 f3872c8
Change Logging option in ASP.NET Core app
alexsohn1126 ac9f7ce
Improve early exit conditional in SentryExtensions
alexsohn1126 b99c53f
Remove outdated comment from AspNetCore example
alexsohn1126 5745c0a
Replace description for FICC Activity name with a link
alexsohn1126 9b440a3
Change SentryAIActivityListener to non-static class to a singleton pa…
alexsohn1126 566e0b3
Merge branch 'version6' into alexsohn/feat/agent-monitoring-with-MS-A…
alexsohn1126 8fcebc9
Add thread safety to ActivityListener
alexsohn1126 fc64d02
Removed static dependencies
jamescrosswell 1bb5629
Fix Capitalization in AI for SentryAIActivityListener
alexsohn1126 c46bcb6
Merge branch 'version6' into alexsohn/feat/agent-monitoring-with-MS-A…
alexsohn1126 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
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
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.
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.