AgentOps.Observability
0.1.0-alpha
dotnet add package AgentOps.Observability --version 0.1.0-alpha
NuGet\Install-Package AgentOps.Observability -Version 0.1.0-alpha
<PackageReference Include="AgentOps.Observability" Version="0.1.0-alpha" />
<PackageVersion Include="AgentOps.Observability" Version="0.1.0-alpha" />
<PackageReference Include="AgentOps.Observability" />
paket add AgentOps.Observability --version 0.1.0-alpha
#r "nuget: AgentOps.Observability, 0.1.0-alpha"
#:package AgentOps.Observability@0.1.0-alpha
#addin nuget:?package=AgentOps.Observability&version=0.1.0-alpha&prerelease
#tool nuget:?package=AgentOps.Observability&version=0.1.0-alpha&prerelease
AgentOps.Observability
OpenTelemetry GenAI observability for Microsoft Agent Framework and Model Context Protocol on .NET 10. Drop-in OTLP exporter wiring, ChatClient middleware, source registration with sane defaults.
0.1.0-alpha — initial release. Public API may change before 1.0. See CHANGELOG.
Part of AgentOps.NET — the reference architecture and library suite for putting Microsoft Agent Framework + MCP into production on Azure.
Install
dotnet add package AgentOps.Observability --prerelease
Quick start
For HostBuilder / ASP.NET Core apps (DI):
builder.Services.AddAgentOpsObservability(options =>
{
options.ServiceName = "MyAgent";
options.OtlpEndpoint = "http://localhost:4317";
});
For console apps (static factory):
using var tracerProvider = AgentOpsObservability.CreateTracerProvider(new()
{
ServiceName = "MyAgent",
OtlpEndpoint = "http://localhost:4317"
});
On the chat client:
IChatClient chatClient = new OpenAIClient(apiKey)
.GetChatClient("gpt-4o-mini")
.AsIChatClient()
.AsBuilder()
.UseFunctionInvocation()
.UseAgentOpsObservability()
.Build();
What's in v0.1-alpha
- OTLP exporter wired with sane defaults
- Automatic source registration for
Microsoft.Extensions.AIandMicrosoft.Agents.AI(includingExperimental.*prefix variants) ChatClientBuilder.UseAgentOpsObservability()middleware- Endpoint reachability check at startup with clear warning logs
- Targets
net10.0
Deferred to v0.2
- PII redaction filter
- Application Insights exporter alongside OTLP
- Sampling configuration
Documentation
- Working sample:
agentops-dotnet/samples/01-maf-mcp-quickstart/ - Architecture decisions: ADR-001 (three libraries), ADR-002 (OTel GenAI conventions)
License
MIT — see LICENSE.
Built by Pinusx AI.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.AI (>= 10.5.0 && < 11.0.0)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Logging.Abstractions (>= 10.0.7)
- Microsoft.Extensions.Options (>= 10.0.7)
- OpenTelemetry (>= 1.15.3)
- OpenTelemetry.Exporter.OpenTelemetryProtocol (>= 1.15.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 0.1.0-alpha | 82 | 5/12/2026 |
Initial alpha. Source registration, OTLP exporter wiring, ChatClientBuilder.UseAgentOpsObservability extension, endpoint reachability check at startup. See repository CHANGELOG for details.