<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Capture your first generation on Grafana Labs</title><link>https://grafana.com/docs/learning-hub/intro-to-agent-observability/05-capture-your-first-generation/</link><description>Recent content in Capture your first generation on Grafana Labs</description><generator>Hugo -- gohugo.io</generator><language>en</language><atom:link href="/docs/learning-hub/intro-to-agent-observability/05-capture-your-first-generation/index.xml" rel="self" type="application/rss+xml"/><item><title>How to capture a generation</title><link>https://grafana.com/docs/learning-hub/intro-to-agent-observability/05-capture-your-first-generation/19-how-to-capture-a-generation/</link><pubDate>Thu, 19 Nov 2026 14:12:27 -0600</pubDate><guid>https://grafana.com/docs/learning-hub/intro-to-agent-observability/05-capture-your-first-generation/19-how-to-capture-a-generation/</guid><content><![CDATA[&lt;h1 id=&#34;how-to-capture-a-generation&#34;&gt;How to capture a generation&lt;/h1&gt;
&lt;p&gt;You can capture a generation with manual capture, a framework integration, or a provider helper. In this journey, you capture your first generation manually. The other two are options to switch to afterwards, if one fits how your agent makes its model calls.&lt;/p&gt;
&lt;h2 id=&#34;manual-capture&#34;&gt;Manual capture&lt;/h2&gt;
&lt;p&gt;To instrument calls without a framework, use &lt;strong&gt;manual capture&lt;/strong&gt;, where your own code captures the generation manually, starting it and setting its result.&lt;/p&gt;
&lt;p&gt;Manual capture needs only the SDK and the credentials you set in the previous section, with no framework or provider client, so the same steps work whichever method fits your agent in the long run. The rest of this journey builds on that manually captured generation. In .NET, the sample uses the OpenAI provider helper instead, because the .NET page has no manual-capture sample.&lt;/p&gt;
&lt;h2 id=&#34;framework-integration&#34;&gt;Framework integration&lt;/h2&gt;
&lt;p&gt;If you use an &lt;strong&gt;agent framework&lt;/strong&gt;, for example LangChain, LangGraph, or Google ADK, use a &lt;strong&gt;framework integration&lt;/strong&gt;: install the corresponding framework package for automatic generation capture. &lt;strong&gt;Framework integrations&lt;/strong&gt; capture generations automatically by attaching to your agent framework, so you don&amp;rsquo;t need to instrument each LLM call manually.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-note&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Note&lt;/p&gt;&lt;p&gt;Framework integrations are available for Python, TypeScript, Go, and Java (&lt;a href=&#34;/docs/grafana-cloud/observe-and-act/agent-observability/instrumentation/instrument-agents/#supported-frameworks&#34;&gt;supported frameworks table&lt;/a&gt;).&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;

&lt;h2 id=&#34;provider-helper&#34;&gt;Provider helper&lt;/h2&gt;
&lt;p&gt;A &lt;strong&gt;provider helper&lt;/strong&gt; wraps your calls to an OpenAI, Anthropic, or Gemini client and captures generations from them automatically.&lt;/p&gt;


&lt;div class=&#34;admonition admonition-caution&#34;&gt;&lt;blockquote&gt;&lt;p class=&#34;title text-uppercase&#34;&gt;Caution&lt;/p&gt;&lt;p&gt;If a framework integration or a provider helper fits your agent, switch to it after you finish the journey, following the instructions for your language on your language page and in &lt;a href=&#34;/docs/grafana-cloud/observe-and-act/agent-observability/instrumentation/instrument-agents/&#34;&gt;Instrument agents with framework integrations&lt;/a&gt;. Don&amp;rsquo;t install one in place of the manual sample. The rest of this section describes the values in that sample, and a framework integration maps the conversation ID from the framework context for you.&lt;/p&gt;&lt;/blockquote&gt;&lt;/div&gt;


&lt;div class=&#34;learning-hub-image&#34;&gt;
  &lt;a href=&#34;capture-method-decision.svg&#34; title=&#34;Three capture methods side by side: manual capture, used in this journey and needing only the SDK and your credentials; and, after the journey if one fits your agent, a framework integration when the supported frameworks table lists your framework for your language, or a provider helper when your agent calls an OpenAI, Anthropic, or Gemini client&#34;&gt;
    &lt;img
      
      
      class=&#34;d-inline-block&#34;
      src=&#34;capture-method-decision.svg&#34;
      
      alt=&#34;Three capture methods side by side: manual capture, used in this journey and needing only the SDK and your credentials; and, after the journey if one fits your agent, a framework integration when the supported frameworks table lists your framework for your language, or a provider helper when your agent calls an OpenAI, Anthropic, or Gemini client&#34; width=&#34;900&#34; height=&#34;420&#34;/&gt;
    &lt;div class=&#34;learning-hub-image__zoom&#34;&gt;
      &lt;svg width=&#34;24&#34; height=&#34;24&#34; viewBox=&#34;0 0 24 24&#34; fill=&#34;none&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;
        &lt;path d=&#34;M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
        &lt;path d=&#34;M10 7V13M7 10H13&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34;/&gt;
      &lt;/svg&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;

]]></content><description>&lt;h1 id="how-to-capture-a-generation">How to capture a generation&lt;/h1>
&lt;p>You can capture a generation with manual capture, a framework integration, or a provider helper. In this journey, you capture your first generation manually. The other two are options to switch to afterwards, if one fits how your agent makes its model calls.&lt;/p></description></item><item><title>Install the SDK and capture a generation</title><link>https://grafana.com/docs/learning-hub/intro-to-agent-observability/05-capture-your-first-generation/20-install-the-sdk-and-capture-a-generation/</link><pubDate>Thu, 19 Nov 2026 14:12:27 -0600</pubDate><guid>https://grafana.com/docs/learning-hub/intro-to-agent-observability/05-capture-your-first-generation/20-install-the-sdk-and-capture-a-generation/</guid><content><![CDATA[&lt;h1 id=&#34;install-the-sdk-and-capture-a-generation&#34;&gt;Install the SDK and capture a generation&lt;/h1&gt;
&lt;p&gt;Go back to the Grafana Cloud tab where you opened the learning path and complete Milestone 5, then return here. If you closed that tab, open the path again from the card below.&lt;/p&gt;









  
    
  
  
    
  
&lt;div class=&#34;learning-path-card&#34;&gt;
  




  
  
    
  


&lt;div class=&#34;pathway-row__label mb-1&#34;&gt;
  
  &lt;svg width=&#34;40&#34; height=&#34;40&#34; viewBox=&#34;0 0 40 40&#34; fill=&#34;none&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;&lt;rect x=&#34;0.5&#34; y=&#34;0.5&#34; width=&#34;39&#34; height=&#34;39&#34; rx=&#34;3.5&#34; fill=&#34;white&#34; stroke=&#34;#D8D8DF&#34;&gt;&lt;/rect&gt;&lt;path d=&#34;M8 20H14C16.5 20 18.5 18 18.5 15.5V12&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;&gt;&lt;/path&gt;&lt;path d=&#34;M8 20H14C16.5 20 18.5 22 18.5 24.5V28&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;&gt;&lt;/path&gt;&lt;path d=&#34;M14 20H32&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;&gt;&lt;/path&gt;&lt;circle cx=&#34;18.5&#34; cy=&#34;12&#34; r=&#34;2&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;2&#34; fill=&#34;white&#34;&gt;&lt;/circle&gt;&lt;circle cx=&#34;18.5&#34; cy=&#34;28&#34; r=&#34;2&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;2&#34; fill=&#34;white&#34;&gt;&lt;/circle&gt;&lt;path d=&#34;M29 17L32 20L29 23&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;&gt;&lt;/path&gt;&lt;/svg&gt;

  Learning path
&lt;/div&gt;

&lt;h4&gt;Connect an agent to Agent Observability&lt;/h4&gt;
&lt;p&gt;Enable Agent Observability on a Grafana Cloud stack, authenticate the SDK, capture your agent&amp;#39;s first generation, find it in Conversations, and export its traces and metrics.&lt;/p&gt;

&lt;div class=&#34;d-sm-flex gap-half mb-2&#34;&gt;
  &lt;div class=&#34;d-flex align-items-center gap-half text-gray-12 mt-half body-small&#34;&gt;
    &lt;div class=&#34;journey-list__icon&#34;&gt;
  &lt;svg width=&#34;24&#34; height=&#34;24&#34; viewBox=&#34;0 0 24 24&#34; fill=&#34;none&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;
  &lt;path fill-rule=&#34;evenodd&#34; clip-rule=&#34;evenodd&#34; d=&#34;M11.9995 22.5039C17.7985 22.5039 22.4995 17.8029 22.4995 12.0039C22.4995 6.20492 17.7985 1.50391 11.9995 1.50391C6.20052 1.50391 1.49951 6.20492 1.49951 12.0039C1.49951 17.8029 6.20052 22.5039 11.9995 22.5039Z&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;1.5&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
  &lt;path d=&#34;M11.9995 12.0039V8.25391&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;1.5&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
  &lt;path d=&#34;M11.9995 12.0078L16.6865 16.6958&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;1.5&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
&lt;/svg&gt;
&lt;/div&gt;
    &lt;span&gt;18 min&lt;/span&gt;
  &lt;/div&gt;
  
  &lt;div class=&#34;d-flex align-items-center gap-half text-gray-12 mt-half body-small&#34;&gt;
    &lt;div class=&#34;journey-list__icon&#34;&gt;
  &lt;svg width=&#34;24&#34; height=&#34;25&#34; viewBox=&#34;0 0 24 25&#34; fill=&#34;none&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;
  &lt;path fill-rule=&#34;evenodd&#34; clip-rule=&#34;evenodd&#34; d=&#34;M0.75 9.83984C0.75 7.6307 2.54086 5.83984 4.75 5.83984H19.25C21.4591 5.83984 23.25 7.6307 23.25 9.83984V19.1198C23.25 21.329 21.4591 23.1198 19.25 23.1198H4.75C2.54086 23.1198 0.75 21.329 0.75 19.1198V9.83984Z&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;1.5&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
  &lt;path fill-rule=&#34;evenodd&#34; clip-rule=&#34;evenodd&#34; d=&#34;M14.25 1.52344H9.75C8.92157 1.52344 8.25 2.16815 8.25 2.96344V5.84344H15.75V2.96344C15.75 2.16815 15.0784 1.52344 14.25 1.52344Z&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;1.5&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
  &lt;path fill-rule=&#34;evenodd&#34; clip-rule=&#34;evenodd&#34; d=&#34;M12 15.923C12.8284 15.923 13.5 15.2783 13.5 14.483C13.5 13.6877 12.8284 13.043 12 13.043C11.1716 13.043 10.5 13.6877 10.5 14.483C10.5 15.2783 11.1716 15.923 12 15.923Z&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;1.5&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
  &lt;path fill-rule=&#34;evenodd&#34; clip-rule=&#34;evenodd&#34; d=&#34;M13.2742 8.91315L13.7162 10.309C13.8671 10.7897 14.3806 11.0756 14.8902 10.9628L16.3622 10.6354C16.9349 10.5115 17.5249 10.7602 17.8175 11.2488C18.11 11.7374 18.037 12.3519 17.6372 12.7647L16.6062 13.8312C16.2493 14.1997 16.2493 14.7703 16.6062 15.1388L17.6372 16.2053C18.0379 16.6179 18.1115 17.2331 17.8188 17.7222C17.526 18.2113 16.9353 18.4601 16.3622 18.3356L14.8902 18.0082C14.3806 17.8953 13.8671 18.1812 13.7162 18.662L13.2742 20.0559C13.1055 20.5961 12.5877 20.9661 12.0002 20.9661C11.4128 20.9661 10.8949 20.5961 10.7262 20.0559L10.2842 18.661C10.1333 18.1803 9.61982 17.8944 9.11021 18.0072L7.63821 18.3346C7.06469 18.4597 6.47325 18.2109 6.18034 17.7213C5.88742 17.2317 5.96161 16.6159 6.36321 16.2034L7.39421 15.1368C7.75116 14.7684 7.75116 14.1978 7.39421 13.8293L6.36321 12.7628C5.96346 12.35 5.89039 11.7354 6.18296 11.2468C6.47553 10.7582 7.06551 10.5096 7.63821 10.6335L9.11021 10.9608C9.61923 11.0739 10.1324 10.7889 10.2842 10.309L10.7262 8.91507C10.8944 8.37473 11.412 8.00435 11.9995 8.00391C12.5869 8.00346 13.1051 8.37307 13.2742 8.91315V8.91315Z&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;1.5&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
&lt;/svg&gt;
&lt;/div&gt;
    &lt;span&gt;Beginner&lt;/span&gt;
  &lt;/div&gt;
  
  
  &lt;div class=&#34;d-flex align-items-center gap-half text-gray-12 mt-half body-small&#34;&gt;
    &lt;div class=&#34;journey-list__icon&#34;&gt;
  &lt;svg width=&#34;24&#34; height=&#34;24&#34; viewBox=&#34;0 0 24 24&#34; fill=&#34;none&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;
  &lt;path fill-rule=&#34;evenodd&#34; clip-rule=&#34;evenodd&#34; d=&#34;M0.75 2.75C0.75 1.64543 1.64543 0.75 2.75 0.75H21.25C22.3546 0.75 23.25 1.64543 23.25 2.75V21.25C23.25 22.3546 22.3546 23.25 21.25 23.25H2.75C1.64543 23.25 0.75 22.3546 0.75 21.25V2.75Z&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;1.5&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
  &lt;path d=&#34;M12 4.5L7.5 10.5L4.5 7.5&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;1.5&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
  &lt;path d=&#34;M14.25 8.25H18.75&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;1.5&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
  &lt;path d=&#34;M12 13.5L7.5 19.5L4.5 16.5&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;1.5&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
  &lt;path d=&#34;M14.25 17.25H18.75&#34; stroke=&#34;#FF671D&#34; stroke-width=&#34;1.5&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
&lt;/svg&gt;
&lt;/div&gt;
    &lt;span&gt;Docs &amp;amp; blog posts&lt;/span&gt;
  &lt;/div&gt;
  
&lt;/div&gt;










  






&lt;div class=&#34;pathfinder-cta orange-outline-list br-12 border-color-orange-flat border-width-2 p-1-5 pb-1&#34; x3-data=&#34;selectStack(&#39;/docs/learning-paths/connect-agent-to-agent-observability&#39;, { packageId: &#39;connect-agent-to-agent-observability-lj&#39; })&#34;&gt;
  &lt;div class=&#34;icon-heading d-flex&#34;&gt;
    &lt;div class=&#34;icon-heading__container&#34;&gt;
  &lt;svg width=&#34;30&#34; height=&#34;30&#34; viewBox=&#34;0 0 25 26&#34; fill=&#34;none&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;
  &lt;path d=&#34;M16.1401 14.4402C16.2141 14.4402 16.2852 14.4101 16.3373 14.3581C16.5355 14.1569 21.1904 9.39886 21.1904 5.0513C21.1904 2.26537 18.924 0 16.1391 0C13.3541 0 11.0878 2.26537 11.0878 5.0513C11.0878 9.39886 15.7427 14.1569 15.9419 14.3581C15.9939 14.4111 16.065 14.4402 16.1401 14.4402ZM13.5814 5.0513C13.5814 3.63882 14.7266 2.49262 16.1401 2.49262C17.5536 2.49262 18.6978 3.63781 18.6978 5.0513C18.6978 6.46478 17.5526 7.60999 16.1401 7.60999C14.7276 7.60999 13.5814 6.46478 13.5814 5.0513Z&#34; fill=&#34;#FF671D&#34;/&gt;
  &lt;path d=&#34;M24.9034 21.9305C24.0595 18.9113 17.9561 17.4147 12.5704 16.0933C9.54023 15.3496 5.76827 14.4246 5.73524 13.6037C5.72823 13.4225 5.97949 12.7398 9.52922 11.5516C9.80551 11.4585 9.96668 11.1842 9.91262 10.8989C9.85856 10.6136 9.60229 10.4164 9.318 10.4304C4.13956 10.6807 0.501743 12.1602 0.0482666 14.1993C-0.172966 15.1944 0.26149 16.749 3.58398 18.5009L4.29773 18.8763C6.54509 20.0545 8.16879 20.9064 8.1808 21.6992C8.19482 22.6502 5.93745 24.0507 3.72713 25.296C3.58398 25.3761 3.5139 25.5433 3.55495 25.7024C3.59699 25.8616 3.74014 25.9717 3.90431 25.9717H23.0354C23.1315 25.9717 23.2226 25.9337 23.2907 25.8656C24.6971 24.4581 25.2397 23.1347 24.9034 21.9305Z&#34; fill=&#34;#FBC55A&#34;/&gt;
&lt;/svg&gt;
&lt;/div&gt;
    &lt;div class=&#34;no-anchor-heading&#34;&gt;
      &lt;h4&gt;Open in Grafana Cloud&lt;/h4&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=&#34;mt-1&#34;&gt;
    &lt;p class=&#34;mb-1 maxw-650&#34;&gt;
      
      Complete this learning path directly in your Grafana Cloud stack with an interactive learning experience.
      
    &lt;/p&gt;
    &lt;div class=&#34;d-flex column-gap-1 justify-content-end&#34;&gt;
      
      &lt;a
        x3-bind:href=&#34;launchUrl&#34;
        class=&#34;btn btn--primary br-8&#34;
        target=&#34;_blank&#34;
        rel=&#34;noopener noreferrer&#34;
        x3-on:click=&#34;trackPathfinderClick(&#39;connect-agent-to-agent-observability&#39;, &#39;Connect an agent to Agent Observability&#39;)&#34;&gt;
        Open in Grafana Cloud
      &lt;/a&gt;
      
      
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/div&gt;


&lt;div class=&#34;mt-1&#34;&gt;
  &lt;a
    href=&#34;/docs/learning-paths/connect-agent-to-agent-observability/&#34;
    target=&#34;_blank&#34;
    rel=&#34;noopener noreferrer&#34;
    class=&#34;btn btn--outline arrow w-100p br-8&#34;
    x3-on:click=&#34;$dispatch(&#39;track-view-on-website&#39;, {
      pathId: &#39;connect-agent-to-agent-observability&#39;,
      pathTitle: &#39;Connect an agent to Agent Observability&#39;
    })&#34;&gt;
    View on website
  &lt;/a&gt;
&lt;/div&gt;

&lt;/div&gt;



&lt;h2 id=&#34;when-you-finish&#34;&gt;When you finish&lt;/h2&gt;
&lt;p&gt;You installed the SDK for your language and captured your first generation.&lt;/p&gt;
]]></content><description>&lt;h1 id="install-the-sdk-and-capture-a-generation">Install the SDK and capture a generation&lt;/h1>
&lt;p>Go back to the Grafana Cloud tab where you opened the learning path and complete Milestone 5, then return here. If you closed that tab, open the path again from the card below.&lt;/p></description></item><item><title>What each value in the sample means</title><link>https://grafana.com/docs/learning-hub/intro-to-agent-observability/05-capture-your-first-generation/21-what-each-value-in-the-sample-means/</link><pubDate>Thu, 19 Nov 2026 14:12:27 -0600</pubDate><guid>https://grafana.com/docs/learning-hub/intro-to-agent-observability/05-capture-your-first-generation/21-what-each-value-in-the-sample-means/</guid><content><![CDATA[&lt;h1 id=&#34;what-each-value-in-the-sample-means&#34;&gt;What each value in the sample means&lt;/h1&gt;
&lt;p&gt;The sample sets three values: a conversation ID, a model, and an output. Keep the sample open as you read.&lt;/p&gt;
&lt;h2 id=&#34;where-the-client-gets-its-values&#34;&gt;Where the client gets its values&lt;/h2&gt;
&lt;p&gt;When you construct the client with no arguments, the SDK reads these variables at client construction:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;AGENTO11Y_ENDPOINT&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;AGENTO11Y_PROTOCOL&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;AGENTO11Y_AUTH_MODE&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;AGENTO11Y_AUTH_TENANT_ID&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;&lt;code&gt;AGENTO11Y_AUTH_TOKEN&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;the-three-values&#34;&gt;The three values&lt;/h2&gt;
&lt;p&gt;Each value in the sample is a fixed stand-in for something your agent supplies.&lt;/p&gt;
&lt;section class=&#34;expand-table-wrapper&#34;&gt;&lt;div class=&#34;responsive-table-wrapper&#34;&gt;
    &lt;table&gt;
      &lt;thead&gt;
          &lt;tr&gt;
              &lt;th&gt;Value&lt;/th&gt;
              &lt;th&gt;In the sample&lt;/th&gt;
              &lt;th&gt;What it means&lt;/th&gt;
          &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
          &lt;tr&gt;
              &lt;td&gt;&lt;code&gt;conversation_id&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;&lt;code&gt;conv-1&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;Agent Observability groups generations by &lt;code&gt;conversation_id&lt;/code&gt; into conversations, so this value decides which generations appear together as one interaction thread.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Model&lt;/td&gt;
              &lt;td&gt;&lt;code&gt;openai&lt;/code&gt; and &lt;code&gt;gpt-4o&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;The model provider and name, for example &lt;code&gt;openai/gpt-4o&lt;/code&gt;.&lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;Result&lt;/td&gt;
              &lt;td&gt;&lt;code&gt;Hello&lt;/code&gt;&lt;/td&gt;
              &lt;td&gt;The generation&amp;rsquo;s output message. The sample sets the fixed text &lt;code&gt;Hello&lt;/code&gt; as the output.&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
  &lt;/div&gt;
&lt;/section&gt;&lt;p&gt;In your own agent, set &lt;code&gt;conversation_id&lt;/code&gt; to one value per conversation thread, for example your chat session ID, and pass the same value on every generation in that thread. A new value on every request makes each request its own conversation. If you leave &lt;code&gt;conversation_id&lt;/code&gt; empty, the generation is still stored, but it does not appear in &lt;strong&gt;Conversations&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;If your agent is in .NET, the sample calls the OpenAI provider helper, so the result comes from the model rather than from the fixed text &lt;code&gt;Hello&lt;/code&gt;.&lt;/p&gt;
]]></content><description>&lt;h1 id="what-each-value-in-the-sample-means">What each value in the sample means&lt;/h1>
&lt;p>The sample sets three values: a conversation ID, a model, and an output. Keep the sample open as you read.&lt;/p></description></item><item><title>What an agent name does</title><link>https://grafana.com/docs/learning-hub/intro-to-agent-observability/05-capture-your-first-generation/22-what-an-agent-name-does/</link><pubDate>Thu, 19 Nov 2026 14:12:27 -0600</pubDate><guid>https://grafana.com/docs/learning-hub/intro-to-agent-observability/05-capture-your-first-generation/22-what-an-agent-name-does/</guid><content><![CDATA[&lt;h1 id=&#34;what-an-agent-name-does&#34;&gt;What an agent name does&lt;/h1&gt;
&lt;p&gt;When you set an &lt;code&gt;agent_name&lt;/code&gt; in your SDK calls, Agent Observability tracks that agent by name in the &lt;strong&gt;agent catalog&lt;/strong&gt;, which automatically discovers and tracks your agents and groups their generations by agent name.&lt;/p&gt;
&lt;h2 id=&#34;what-the-catalog-shows&#34;&gt;What the catalog shows&lt;/h2&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;h2 id=&#34;in-the-samples&#34;&gt;In the samples&lt;/h2&gt;
&lt;p&gt;The samples on the language pages differ on this value:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The .NET sample sets &lt;code&gt;AgentName&lt;/code&gt; to &lt;code&gt;my-agent&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;The other four samples set no agent name.&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="what-an-agent-name-does">What an agent name does&lt;/h1>
&lt;p>When you set an &lt;code>agent_name&lt;/code> in your SDK calls, Agent Observability tracks that agent by name in the &lt;strong>agent catalog&lt;/strong>, which automatically discovers and tracks your agents and groups their generations by agent name.&lt;/p></description></item><item><title>Batching and why shutdown is last</title><link>https://grafana.com/docs/learning-hub/intro-to-agent-observability/05-capture-your-first-generation/23-batching-and-why-shutdown-is-last/</link><pubDate>Thu, 19 Nov 2026 14:12:27 -0600</pubDate><guid>https://grafana.com/docs/learning-hub/intro-to-agent-observability/05-capture-your-first-generation/23-batching-and-why-shutdown-is-last/</guid><content><![CDATA[&lt;h1 id=&#34;batching-and-why-shutdown-is-last&#34;&gt;Batching and why shutdown is last&lt;/h1&gt;
&lt;p&gt;The SDK sends generation data to the Agent Observability API in &lt;strong&gt;batches&lt;/strong&gt; from a &lt;strong&gt;queue&lt;/strong&gt; of generations waiting to be exported.&lt;/p&gt;

&lt;div class=&#34;learning-hub-image&#34;&gt;
  &lt;a href=&#34;queue-batch-export.svg&#34; title=&#34;Queued generations inside the Agent Observability SDK (queueSize, default 2000), the batch the SDK flushes to the Agent Observability API (batchSize, default 100), and how often the SDK flushes queued generations (flushInterval, default 1s)&#34;&gt;
    &lt;img
      
      
      class=&#34;d-inline-block&#34;
      src=&#34;queue-batch-export.svg&#34;
      
      alt=&#34;Queued generations inside the Agent Observability SDK (queueSize, default 2000), the batch the SDK flushes to the Agent Observability API (batchSize, default 100), and how often the SDK flushes queued generations (flushInterval, default 1s)&#34; width=&#34;1000&#34; height=&#34;290&#34;/&gt;
    &lt;div class=&#34;learning-hub-image__zoom&#34;&gt;
      &lt;svg width=&#34;24&#34; height=&#34;24&#34; viewBox=&#34;0 0 24 24&#34; fill=&#34;none&#34; xmlns=&#34;http://www.w3.org/2000/svg&#34;&gt;
        &lt;path d=&#34;M21 21L15 15M17 10C17 13.866 13.866 17 10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10Z&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34; stroke-linejoin=&#34;round&#34;/&gt;
        &lt;path d=&#34;M10 7V13M7 10H13&#34; stroke=&#34;currentColor&#34; stroke-width=&#34;2&#34; stroke-linecap=&#34;round&#34;/&gt;
      &lt;/svg&gt;
    &lt;/div&gt;
  &lt;/a&gt;
&lt;/div&gt;

&lt;h2 id=&#34;the-batching-defaults&#34;&gt;The batching defaults&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;batchSize&lt;/code&gt;, default 100: maximum generations per export batch.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;flushInterval&lt;/code&gt;, default 1s: how often the SDK exports queued generations.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;queueSize&lt;/code&gt;, default 2000: maximum number of queued generations before the SDK drops new ones.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;why-shutdown-is-last&#34;&gt;Why shutdown is last&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;client.shutdown()&lt;/code&gt; in each sample shuts down the client after the capture. If your application also sets up OpenTelemetry tracing and metrics, shut those down after the client.&lt;/p&gt;
]]></content><description>&lt;h1 id="batching-and-why-shutdown-is-last">Batching and why shutdown is last&lt;/h1>
&lt;p>The SDK sends generation data to the Agent Observability API in &lt;strong>batches&lt;/strong> from a &lt;strong>queue&lt;/strong> of generations waiting to be exported.&lt;/p></description></item><item><title>Resources</title><link>https://grafana.com/docs/learning-hub/intro-to-agent-observability/05-capture-your-first-generation/24-resources/</link><pubDate>Thu, 19 Nov 2026 14:12:27 -0600</pubDate><guid>https://grafana.com/docs/learning-hub/intro-to-agent-observability/05-capture-your-first-generation/24-resources/</guid><content><![CDATA[&lt;h1 id=&#34;resources&#34;&gt;Resources&lt;/h1&gt;
&lt;p&gt;These pages cover installing the SDK for each language, the framework integrations, and the batching defaults.&lt;/p&gt;
&lt;h2 id=&#34;documentation&#34;&gt;Documentation&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;/docs/grafana-cloud/observe-and-act/agent-observability/reference/sdks/python/&#34;&gt;Instrument Python agents&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/docs/grafana-cloud/observe-and-act/agent-observability/reference/sdks/javascript/&#34;&gt;Instrument TypeScript and JavaScript agents&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/docs/grafana-cloud/observe-and-act/agent-observability/reference/sdks/go/&#34;&gt;Instrument Go agents&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/docs/grafana-cloud/observe-and-act/agent-observability/reference/sdks/java/&#34;&gt;Instrument Java agents&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/docs/grafana-cloud/observe-and-act/agent-observability/reference/sdks/dotnet/&#34;&gt;Instrument .NET agents&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/docs/grafana-cloud/observe-and-act/agent-observability/instrumentation/instrument-agents/&#34;&gt;Instrument agents with framework integrations&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;/docs/grafana-cloud/observe-and-act/agent-observability/instrumentation/sdk/#batching-and-retry&#34;&gt;Configure the Agent Observability SDK&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;community&#34;&gt;Community&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&#34;https://community.grafana.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Grafana Community Forums&lt;/a&gt; to ask questions and share what you found&lt;/li&gt;
&lt;li&gt;&lt;a href=&#34;https://slack.grafana.com/&#34; target=&#34;_blank&#34; rel=&#34;noopener noreferrer&#34;&gt;Grafana Slack&lt;/a&gt; to talk with other users&lt;/li&gt;
&lt;/ul&gt;
]]></content><description>&lt;h1 id="resources">Resources&lt;/h1>
&lt;p>These pages cover installing the SDK for each language, the framework integrations, and the batching defaults.&lt;/p>
&lt;h2 id="documentation">Documentation&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="/docs/grafana-cloud/observe-and-act/agent-observability/reference/sdks/python/">Instrument Python agents&lt;/a>&lt;/li>
&lt;li>&lt;a href="/docs/grafana-cloud/observe-and-act/agent-observability/reference/sdks/javascript/">Instrument TypeScript and JavaScript agents&lt;/a>&lt;/li>
&lt;li>&lt;a href="/docs/grafana-cloud/observe-and-act/agent-observability/reference/sdks/go/">Instrument Go agents&lt;/a>&lt;/li>
&lt;li>&lt;a href="/docs/grafana-cloud/observe-and-act/agent-observability/reference/sdks/java/">Instrument Java agents&lt;/a>&lt;/li>
&lt;li>&lt;a href="/docs/grafana-cloud/observe-and-act/agent-observability/reference/sdks/dotnet/">Instrument .NET agents&lt;/a>&lt;/li>
&lt;li>&lt;a href="/docs/grafana-cloud/observe-and-act/agent-observability/instrumentation/instrument-agents/">Instrument agents with framework integrations&lt;/a>&lt;/li>
&lt;li>&lt;a href="/docs/grafana-cloud/observe-and-act/agent-observability/instrumentation/sdk/#batching-and-retry">Configure the Agent Observability SDK&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="community">Community&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="https://community.grafana.com/" target="_blank" rel="noopener noreferrer">Grafana Community Forums&lt;/a> to ask questions and share what you found&lt;/li>
&lt;li>&lt;a href="https://slack.grafana.com/" target="_blank" rel="noopener noreferrer">Grafana Slack&lt;/a> to talk with other users&lt;/li>
&lt;/ul></description></item></channel></rss>