AgentOps.Observability 0.1.0-alpha

This is a prerelease version of AgentOps.Observability.
dotnet add package AgentOps.Observability --version 0.1.0-alpha
                    
NuGet\Install-Package AgentOps.Observability -Version 0.1.0-alpha
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AgentOps.Observability" Version="0.1.0-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AgentOps.Observability" Version="0.1.0-alpha" />
                    
Directory.Packages.props
<PackageReference Include="AgentOps.Observability" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AgentOps.Observability --version 0.1.0-alpha
                    
#r "nuget: AgentOps.Observability, 0.1.0-alpha"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AgentOps.Observability@0.1.0-alpha
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AgentOps.Observability&version=0.1.0-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=AgentOps.Observability&version=0.1.0-alpha&prerelease
                    
Install as a Cake Tool

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.AI and Microsoft.Agents.AI (including Experimental.* 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

License

MIT — see LICENSE.

Built by Pinusx AI.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.