Repository navigation
.NET: Update OpenTelemetry Agent - Added Demo, AIAgentMetadata and Agent.GetService() #356
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
Roger Barreto (rogerbarreto)
merged 28 commits into
microsoft:main
from
rogerbarreto:demos/open-telemetry-agent
Aug 15, 2025
Merged
Changes from 13 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
70c54af
OTEL Demo
rogerbarreto c306ed9
updating telemetry sample
rogerbarreto 0f93820
Merge branch 'main' of https://github.com/microsoft/agent-framework i…
rogerbarreto 7885d08
OTEL updates
rogerbarreto 07709dc
WIP
rogerbarreto 28ecc88
Adding GetService and Agent Metadata for Telemetry
rogerbarreto deb33dc
WIP
rogerbarreto 1f01777
Add UT for OTEL System behavior
rogerbarreto 426c5a3
Address Unicode problem
rogerbarreto 01abfee
Add logging
rogerbarreto 78d10f7
Merge branch 'main' of https://github.com/microsoft/agent-framework i…
rogerbarreto b0923ef
Adjust for new extensions
rogerbarreto da2e69b
Change Logger to LoggerFactory for the extension method
rogerbarreto 29a1da4
Address AI Feedback
rogerbarreto b472fbc
Simplify script and readme just for Azure OpenAI
rogerbarreto 7e28504
Increase code converage
rogerbarreto 5722f3f
Merge branch 'main' into demos/open-telemetry-agent
rogerbarreto ae5c82e
Address merge conflict
rogerbarreto 0b24ad3
Another slnx fix
rogerbarreto 4cc4b80
Merge branch 'main' into demos/open-telemetry-agent
rogerbarreto 17220f7
Address PR comments
rogerbarreto 94e0bd9
Address PR feedback + Add UT
rogerbarreto 9dab1bf
Added Hosting UT to the solution
rogerbarreto a24bbf0
Merge branch 'main' into demos/open-telemetry-agent
rogerbarreto bdae975
Address PR comments
rogerbarreto 76dfedd
Address missing sensitivity tests
rogerbarreto 6a64c39
Remove unecessary override
rogerbarreto 3819d94
Address PR comments
rogerbarreto 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| <Project Sdk="Microsoft.NET.Sdk"> | ||
|
|
||
| <PropertyGroup> | ||
| <OutputType>Exe</OutputType> | ||
| <TargetFramework>net9.0</TargetFramework> | ||
| <ImplicitUsings>enable</ImplicitUsings> | ||
| <Nullable>enable</Nullable> | ||
|
rogerbarreto marked this conversation as resolved.
Outdated
|
||
| <UserSecretsId>5ee045b0-aea3-4f08-8d31-32d1a6f8fed0</UserSecretsId> | ||
| <IsAspireProjectResource>true</IsAspireProjectResource> | ||
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="Azure.AI.OpenAI" /> | ||
| <PackageReference Include="Azure.Identity" /> | ||
| <PackageReference Include="Microsoft.Extensions.AI.OpenAI" /> | ||
| <PackageReference Include="Microsoft.Extensions.Logging" /> | ||
| <PackageReference Include="Microsoft.Extensions.Logging.Console" /> | ||
| <PackageReference Include="OpenAI" /> | ||
| <PackageReference Include="OpenTelemetry" /> | ||
| <PackageReference Include="OpenTelemetry.Exporter.Console" /> | ||
| <PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" /> | ||
| <PackageReference Include="OpenTelemetry.Instrumentation.Http" /> | ||
| <PackageReference Include="OpenTelemetry.Instrumentation.Runtime" /> | ||
| <PackageReference Include="OpenTelemetry.Extensions.Hosting" /> | ||
| <PackageReference Include="System.Diagnostics.DiagnosticSource" /> | ||
| </ItemGroup> | ||
|
|
||
| <ItemGroup> | ||
| <ProjectReference Include="..\..\src\Microsoft.Extensions.AI.Agents.OpenAI\Microsoft.Extensions.AI.Agents.OpenAI.csproj" /> | ||
| <ProjectReference Include="..\..\src\Microsoft.Extensions.AI.Agents\Microsoft.Extensions.AI.Agents.csproj" /> | ||
| </ItemGroup> | ||
|
|
||
| </Project> | ||
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.