-
-
Notifications
You must be signed in to change notification settings - Fork 582
Add Langfuse diagnostics and GiteeAI plugin #1196
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
base: master
Are you sure you want to change the base?
Conversation
Introduced OpenTelemetry-based model diagnostics with Langfuse integration, including new helper classes and activity tracing for agent and function execution. Added BotSharp.Plugin.GiteeAI with chat and embedding providers, and updated solution/project files to register the new plugin. Enhanced tracing in routing, executor, and controller logic for improved observability.
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
|||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this class be moved to the implementation project of BotSharp.Plugin.GiteeAI?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this class is otel semantic conventions https://github.com/open-telemetry/semantic-conventions

User description
Introduced OpenTelemetry-based model diagnostics with Langfuse integration, including new helper classes and activity tracing for agent and function execution. Added BotSharp.Plugin.GiteeAI with chat and embedding providers, and updated solution/project files to register the new plugin. Enhanced tracing in routing, executor, and controller logic for improved observability.
PR Type
Enhancement, Documentation
Description
Implemented OpenTelemetry-based model diagnostics with Langfuse integration for improved observability
Added GiteeAI plugin with chat completion and text embedding providers
Enhanced tracing in routing, executor, and controller logic for agent and function execution
Integrated activity tracking with semantic conventions for GenAI operations
Diagram Walkthrough
File Walkthrough
6 files
Configure OpenTelemetry with Langfuse exporterCreate GiteeAI plugin project fileRegister GiteeAI plugin in solutionAdd GiteeAI plugin project referenceAdd Langfuse and GiteeAI model configurationsComment out MCP service configuration17 files
Add Langfuse configuration settings modelImplement model diagnostics with semantic conventionsAdd activity extension methods for tracingHelper to read app context switch valuesAdd activity tracing to function executionAdd activity tracing to MCP tool executionAdd agent invocation activity tracingImport diagnostics for function invocationAdd System.Diagnostics import for tracingAdd activity tracing to conversation endpointsIntegrate model diagnostics into chat completionIntegrate model diagnostics into chat completionCreate GiteeAI plugin with DI registrationImplement GiteeAI chat completion providerImplement GiteeAI text embedding providerAdd helper to create GiteeAI client instancesAdd global using statements for GiteeAI plugin1 files
Add GiteeAI plugin documentation1 files
Reorder using statements for clarity