Section 5 · Capture your first generation

What setting an agent name in your SDK calls does, and which sample sets one.

Estimated time: 1 min

What an agent name does

When you set an agent_name in your SDK calls, Agent Observability tracks that agent by name in the agent catalog, which automatically discovers and tracks your agents and groups their generations by agent name.

What the catalog shows

The agent catalog groups generations by agent name and then shows usage patterns over time for each agent. Comparing activity and performance depends on an agent name in the instrumentation and exported OpenTelemetry metrics.

In the samples

The samples on the language pages differ on this value:

  • The .NET sample sets AgentName to my-agent.
  • The other four samples set no agent name.