A365 Agent Sample for Teams#310
Draft
rido-min wants to merge 9 commits into
Draft
Conversation
Centralize OpenTelemetry setup in Extensions.cs with support for configurable activity sources and meters. Add resource attributes and enable both OTLP and Azure Monitor exporters. Implement HTTP client instrumentation filtering to suppress noisy MCP service spans. Remove redundant OpenTelemetry code from WorkIQAgent.ServiceExtensions.cs. Update .csproj dependencies accordingly. Add mcp-service-http-errors.md to document known MCP HTTP errors and trace filtering rationale.
Commented out unused diagnostics usings in Program.cs. Modified AddServiceDefaults to only include experimental activity sources and meters. Downgraded Microsoft.Teams.Apps NuGet package to 2.1.0-preview-0002 in the project file.
Dependency ReviewThe following issues were found:
License Issuesdotnet/work-iq-teams-bot/work-iq-teams-bot.ServiceDefaults/work-iq-teams-bot.ServiceDefaults.csproj
dotnet/work-iq-teams-bot/work-iq-teams-bot.TeamsApp/work-iq-teams-bot.TeamsApp.csproj
OpenSSF ScorecardScorecard details
Scanned Files
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This pull request introduces the initial implementation of the Work IQ Teams Bot sample using .NET Aspire. It adds core infrastructure for service defaults, telemetry, health checks, configuration, and the Teams bot application itself. The changes establish a foundation for secure, observable, and scalable development, and include documentation for troubleshooting key integration issues.
Key changes:
1. Service Infrastructure and Observability
work-iq-teams-bot.ServiceDefaultsproject providing extension methods for service discovery, resilience, health checks, and OpenTelemetry tracing/metrics. This includes logic to filter out noisy MCP service spans and to map health endpoints. (Extensions.cs,work-iq-teams-bot.ServiceDefaults.csproj) [1] [2]work-iq-teams-bot.AppHost) configured for Aspire, referencing the Teams app project and setting up health checks and logging. (AppHost.cs,work-iq-teams-bot.AppHost.csproj,appsettings.json) [1] [2] [3]2. Teams Bot Application and Agent Integration
Program.cs)WorkIQAgent.Options.cs) and a factory for authenticated MCP client creation using delegated tokens. (WorkIQAgent.Options.cs,WorkIQAgent.McpClientFactory.cs) [1] [2]IConversationHistoryStore.cs)4. Build and Dependency Management
nuget.configspecifying sources for required packages, including Teams SDK previews.These changes lay the groundwork for a robust, cloud-native Teams bot sample with clear diagnostics and extensibility.