.NET Agent framework: Add console telemetry to harness with Ollama and OpenTelemetry
Authorised Territory demonstrates how to add console telemetry to a .NET AI agent harness by wiring up a trace provider and emitting traces using OpenTelemetry, with a local Ollama model (gpt-oss) used as the LLM runtime.
Overview
This tutorial focuses on instrumenting a .NET AI agent “harness” so that traces are written to the console.
Key elements called out in the video description:
- Adding telemetry to a .NET AI agent harness using a trace provider
- Outputting traces to the console using the OpenTelemetry NuGet package
- Using Ollama locally to run an LLM (gpt-oss)
Starting solution referenced by the author: