<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Abhishek kumar on Medium]]></title>
        <description><![CDATA[Stories by Abhishek kumar on Medium]]></description>
        <link>https://medium.com/@ak765115?source=rss-7f6df2d4dc85------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*1suUIScrxLC-OuoY.jpg</url>
            <title>Stories by Abhishek kumar on Medium</title>
            <link>https://medium.com/@ak765115?source=rss-7f6df2d4dc85------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 04:19:40 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ak765115/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Supercharging Developer Velocity: How IBM Bob Skills Transform Developer Productivity]]></title>
            <link>https://medium.com/@ak765115/supercharging-developer-velocity-how-ibm-bob-skills-transform-your-day-to-day-work-f28dd8b4cf4e?source=rss-7f6df2d4dc85------2</link>
            <guid isPermaLink="false">https://medium.com/p/f28dd8b4cf4e</guid>
            <category><![CDATA[developer-productivity]]></category>
            <category><![CDATA[agents]]></category>
            <category><![CDATA[bob]]></category>
            <category><![CDATA[skills]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Abhishek kumar]]></dc:creator>
            <pubDate>Sun, 27 Sep 2026 13:09:18 GMT</pubDate>
            <atom:updated>2026-09-27T13:10:53.519Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Why repetitive prompt engineering is obsolete, and how composable, on-demand agent skills make engineering teams build and ship 10x faster.</em></p><h3>The Hidden Friction in AI-Assisted Development</h3><p>Every developer working with AI coding assistants encounters the “context reset cycle”:</p><ol><li>You ask your AI assistant to generate a microservice database migration, refactor an API endpoint, or build an integration flow.</li><li>You spend 10 minutes typing context: <em>“Remember to use our custom repository pattern, apply tenant isolation, use Zod for validation, format logs with our JSON logger, and generate mock factory tests.”</em></li><li>You switch projects or start a new session, and all that context is gone.</li><li>You prompt again from scratch.</li></ol><p>While modern LLMs have vast general knowledge, raw prompting lacks persistent, structured engineering standards.</p><p>With Bob Skills and the open skills ecosystem (such as skills.sh), AI coding shifts from ad-hoc prompting to composable, reusable agent capabilities that trigger automatically when you need them.</p><h3>What Are Bob Skills?</h3><p>A Bob Skill is an encapsulated, version-controlled package of domain expertise, engineering guidelines, step-by-step recipes, and tool-use instructions contained in a standardized SKILL.md document.</p><p>Instead of overloading global system prompts with thousands of tokens for every conceivable task, Bob uses a just-in-time activation model:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L1YaTQOULXwwelWz94Y2uA.png" /></figure><p>When Bob needs to perform a specialized task, it dynamically loads the relevant skill instructions into context, performs the work with surgical precision, and unloads it when complete.</p><h3>Practical Examples: Skills in Action</h3><p>Let’s look at real-world workflows where Bob Skills turn complex, error-prone tasks into single-command executions:</p><h3>Example 1: Database Migration &amp; Schema Hardening (db-migration-workflow)</h3><p>Writing safe database migrations across production environments requires strict adherence to non-blocking operations, rollback scripts, and entity typing.</p><p>With a db-migration-workflow skill:</p><ul><li>Developer Request: <em>“Add a nullable billing_address column to the customers table with an index.”</em></li><li>What the Skill Automates:</li></ul><ol><li>Inspects current ORM schemas (Prisma, Drizzle, or TypeORM).</li><li>Generates the migration using non-blocking SQL operations (e.g., CREATE INDEX CONCURRENTLY).</li><li>Updates application entity definitions and TypeScript types automatically.</li><li>Generates a matching down-migration (rollback) script.</li><li>Scaffolds a test validating database seeding with the new field.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1J5YloNxc6iT5LEwbOLV-w.png" /></figure><h3>Example 2: Incident Triage &amp; Log Diagnostics (incident-log-triage)</h3><p>When an on-call alert triggers or an end-to-end test fails in CI, wading through megabytes of structured logs is tedious.</p><p>With an incident-log-triage skill:</p><ul><li>Developer Request: <em>“Triage why checkout requests are failing in the staging cluster.”</em></li><li>What the Skill Automates:</li></ul><ol><li>Runs grep and log-analysis CLI tools across log dumps or tracing spans.</li><li>Correlates error spikes with recent commit SHAs.</li><li>Identifies the root cause (e.g., unhandled null payload in payment webhook handler).</li><li>Formulates a minimal patch and presents a structured incident post-mortem summary.</li></ol><h3>How to Use Bob Skills in Your Daily Work</h3><p>Using skills in Bob is frictionless and fits naturally into your existing workflow:</p><h3>1. Automatic Activation via Natural Language</h3><p>You don’t need special commands. Bob evaluates your natural language prompt against the description of all registered skills.</p><ul><li>Simply asking: <em>“Generate a migration to add status enum to orders”</em> automatically invokes your database migration skill.</li></ul><h3>2. Installing Skills from skills.sh</h3><p>The open ecosystem allows you to install community-vetted skills directly into your repository. (<a href="https://www.skills.sh/">https://www.skills.sh/</a>)</p><p>With a skills-lock.json file in your project root, team-wide skills stay synced across all developer environments:</p><pre>{<br>  &quot;version&quot;: 1,<br>  &quot;skills&quot;: {<br>    &quot;api-connector-scaffold&quot;: {<br>      &quot;source&quot;: &quot;community/skills&quot;,<br>      &quot;sourceType&quot;: &quot;github&quot;,<br>      &quot;skillPath&quot;: &quot;skills/api-connector-scaffold/SKILL.md&quot;<br>    }<br>  }<br>}</pre><h3>3. Workspace vs. Global Skills</h3><ul><li>Workspace Skills (.bob/skills/&lt;skill-name&gt;/SKILL.md): Checked into Git with the codebase. Perfect for repo-specific architectural conventions, project lint rules, and internal tooling.</li><li>Global Skills (~/.bob/skills/&lt;skill-name&gt;/SKILL.md): Available across all projects on your machine. Ideal for personal productivity workflows, favorite CLI tools, and general-purpose templates.</li></ul><h3>4. Where Skills Live: Exact File Locations &amp; Directory Structure</h3><pre>my-project/<br>├── .bob/<br>│   └── skills/<br>│       ├── db-migration-workflow/<br>│       │   ├── SKILL.md              &lt;-- Required: Skill definition &amp; prompt<br>│       │   └── templates/            &lt;-- Optional: Code stubs or SQL templates<br>│       └── api-connector-scaffold/<br>│           └── SKILL.md<br>├── skills-lock.json                  &lt;-- Pinned community skills from skills.sh<br>└── src/</pre><h3>Pro-Tips: How to Author High-Impact Bob Skills</h3><p>Writing an effective skill is straightforward, but following these best practices ensures your assistant executes tasks consistently:</p><h3>1. Craft a Laser-Focused Trigger Description</h3><p>Bob decides when to activate your skill based solely on the YAML frontmatter description. Make it explicit about <em>when</em> and <em>what. </em>Every skill must start with valid YAML frontmatter at the top of SKILL.md:</p><pre>---<br>name: db-migration-workflow<br>description: Generates database schema migrations, TypeScript entities, rollback scripts, and migration tests for PostgreSQL and Prisma/Drizzle ORMs. Use when adding columns, modifying tables, or creating new database models.<br>---</pre><blockquote><em>Tip: Include action verbs and trigger keywords (e.g., </em>“Use when creating new models, altering columns, or creating database migrations”<em>).</em></blockquote><h3>2. Give Step-by-Step Execution Recipes</h3><p>LLMs perform best when guided through logical phases:</p><pre>1. Discovery: Read the current schema definition file and latest migration file before writing any new code.<br>2. Drafting: Create the migration file using timestamps `YYYYMMDDHHMMSS_&lt;name&gt;.sql`.<br>3. Safety Checks:<br>   - Ensure new columns have defaults or are nullable.<br>   - Avoid `ALTER TABLE ... ADD CONSTRAINT` without `NOT VALID` on tables with &gt;1M rows.<br>4. Validation: Execute `npm run test:migration` to ensure idempotency.</pre><h3>3. Enforce “What NOT to Do” (Anti-Patterns)</h3><p>Explicit constraints prevent common AI hallucinations and unintended side effects:</p><pre>## Anti-Patterns &amp; Constraints<br>- NEVER run destructive operations (`DROP COLUMN`, `DROP TABLE`) without generating an explicit backup step.<br>- DO NOT use synchronous file I/O operations inside route handlers.<br>- DO NOT write migrations that lock tables during production hours.</pre><h3>4. Provide Concrete Before/After Templates</h3><p>Give the skill realistic examples of expected inputs and standard outputs. Showing concrete code structures ensures the generated code matches your project’s syntax and idioms precisely.</p><h3>Conclusion: The Future of Developer Productivity</h3><p>Software engineering is evolving from manually writing boilerplate and crafting prompt essays to curating composable capabilities for autonomous agents.</p><p>By adopting Bob Skills and tapping into repositories like <a href="https://www.skills.sh/"><em>skills.sh</em></a>, engineering teams can eliminate repetitive overhead, enforce quality standards effortlessly, and build faster than ever.</p><blockquote><em>Ready to level up your workflow? Explore community skills on </em><a href="https://www.skills.sh/"><em>skills.sh</em></a><em> and equip your agent with skills tailored to your stack.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f28dd8b4cf4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Langfuse & OpenTelemetry: The Complete Stack for Agent Tracing and Metrics Generation]]></title>
            <link>https://medium.com/@ak765115/langfuse-opentelemetry-the-complete-stack-for-agent-tracing-and-metrics-generation-fa930614563b?source=rss-7f6df2d4dc85------2</link>
            <guid isPermaLink="false">https://medium.com/p/fa930614563b</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[observability]]></category>
            <category><![CDATA[langfuse]]></category>
            <category><![CDATA[metrics]]></category>
            <category><![CDATA[opentelemetry]]></category>
            <dc:creator><![CDATA[Abhishek kumar]]></dc:creator>
            <pubDate>Sun, 13 Sep 2026 18:25:36 GMT</pubDate>
            <atom:updated>2026-09-13T18:25:36.066Z</atom:updated>
            <content:encoded><![CDATA[<p>How to combine vendor-neutral instrumentation with LLM-native observability to get full visibility into your AI agent systems — from token usage to multi-step reasoning chains.</p><blockquote>LANGFUSE | OPENTELEMETRY | LLM OBSERVABILITY |AI AGENTS | TRACING | METRICS</blockquote><p>AI agents are no longer one-shot LLM calls. They plan, use tools, call sub-agents, retry on failure, and loop — sometimes for minutes. That complexity makes debugging in production feel like reading a log file backwards while wearing oven mitts.</p><p>Two technologies are emerging as the standard answer: <strong>OpenTelemetry (OTel)</strong> for vendor-neutral, structured telemetry, and <strong>Langfuse</strong> for LLM-native observability. Used together they give you something neither can provide alone — a unified trace that spans infrastructure <em>and</em> LLM semantics, with metrics that speak the language of both DevOps and ML teams.</p><p>This post covers what each tool does, where they overlap, how to wire them together, and the patterns that actually work in production agentic systems.</p><h3>1. The Observability Gap in Agentic Systems</h3><p>Traditional distributed tracing (Jaeger, Zipkin, Datadog APM) was built for microservices: a request comes in, hops through a few services, returns a response. The shape is predictable, latency is milliseconds, and failures are binary.</p><p>Agents break every one of those assumptions:</p><ul><li><strong>Non-deterministic execution paths</strong> — the agent decides at runtime which tools to call and in what order.</li><li><strong>Semantic failures</strong> — the HTTP call succeeded, but the model hallucinated. How does Prometheus know?</li><li><strong>Nested reasoning</strong> — a single user request spawns a planner, multiple tool agents, a summariser, and a reflection loop. Trace depth can exceed 10 levels.</li><li><strong>Token economics</strong> — cost, latency, and quality are all intertwined. Cutting prompt length might speed things up but hurt accuracy.</li></ul><p>You need two layers: an <em>infrastructure layer</em> (spans, logs, metrics about your runtime) and an <em>LLM-semantic layer</em> (prompts, completions, scores, token costs). OpenTelemetry handles the first; Langfuse specialises in the second.</p><h3>2. OpenTelemetry — the Telemetry Backbone</h3><p>OpenTelemetry is a CNCF project that standardises how applications emit traces, metrics, and logs. Its core promise: instrument once, export anywhere (Jaeger, Prometheus, Grafana, Datadog, Honeycomb, Langfuse…).</p><h3>Core Concepts</h3><ul><li><strong>Trace</strong> — a directed tree of spans representing a single end-to-end operation.</li><li><strong>Span</strong> — a single unit of work with a name, start/end timestamps, status, and key-value attributes.</li><li><strong>Context Propagation</strong> — the mechanism that threads trace_id and span_id across process and network boundaries (HTTP headers, message queues, etc.).</li><li><strong>OTLP</strong> — the OpenTelemetry Protocol, a gRPC/HTTP wire format used to export telemetry to any backend.</li><li><strong>Semantic Conventions</strong> — standardised attribute names (gen_ai.system, gen_ai.usage.input_tokens) so different agent frameworks emit comparable data.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Davb39wxano5UzcpsIX6qA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HS-PqtSk-uEn7wKr5CygMQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7hZ67OWDG2uEllZE79ehnQ.png" /></figure><h3>GenAI Semantic Conventions</h3><p>OTel’s <strong>GenAI semantic conventions</strong> (stabilised in late 2024) define the standard attributes for LLM spans:</p><pre># Key span attributes defined by OTel GenAI conventions<br>gen_ai.system            = &quot;openai&quot;          # or &quot;anthropic&quot;, &quot;bedrock&quot;, …<br>gen_ai.operation.name    = &quot;chat&quot;<br>gen_ai.request.model     = &quot;gpt-4o&quot;<br>gen_ai.request.max_tokens = 1024<br>gen_ai.response.model    = &quot;gpt-4o-2024-08-06&quot;<br>gen_ai.usage.input_tokens  = 512<br>gen_ai.usage.output_tokens = 187<br>gen_ai.usage.total_tokens  = 699</pre><p>By following these conventions your spans are automatically understood by any OTel-aware backend — including Langfuse.</p><h3>3. Langfuse — LLM-Native Observability</h3><p>Langfuse is an open-source LLM observability platform focused on what happens <em>inside</em> a model call: the full prompt, the completion, latency, cost, quality scores, and user feedback. It models the world in terms agents actually care about.</p><h3>Data Model</h3><ul><li><strong>Trace</strong> — a top-level session (e.g. one user request handled by the agent).</li><li><strong>Observation</strong> — a child event within a trace: a span (generic work), a generation (an LLM call — the key primitive), or an event (a point-in-time log).</li><li><strong>Score</strong> — a human or automated quality signal attached to a trace or generation (e.g. LLM-as-judge, thumbs up/down, hallucination flag).</li><li><strong>Session</strong> — groups traces across a multi-turn conversation.</li><li><strong>Dataset</strong> — curated trace snapshots used for evals and regression testing.</li></ul><p><strong>Key insight:</strong> Langfuse’s generation object captures the full prompt/completion pair, making it trivially easy to build a dataset of real production calls and run evals against them later — something raw OTel spans were never designed for.</p><h3>OTel-Native Ingestion (Langfuse v3+)</h3><p>Since version 3, Langfuse exposes a native <strong>OTLP endpoint</strong>. Any OTel-instrumented application can point its exporter at Langfuse and all spans are automatically mapped into Langfuse’s trace/observation model — no SDK needed.</p><h3>4. Architecture: How They Fit Together</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*W9zE3n3IwbbVyG2eDq1zBg.png" /></figure><p>The OTel Collector is optional but recommended for production — it lets you fan out the same trace data to multiple backends, add sampling rules, enrich spans with resource attributes, and decouple your agent code from any specific backend.</p><h3>5. Wiring It Up: Step-by-Step</h3><h3>5.1 Install Dependencies</h3><pre>pip install langfuse \<br>    opentelemetry-sdk \<br>    opentelemetry-exporter-otlp-proto-http \<br>    opentelemetry-instrumentation-openai   # auto-instrument OpenAI calls</pre><h3>5.2 Configure the OTel SDK to Export to Langfuse</h3><pre>import os<br>import base64<br>from opentelemetry import trace<br>from opentelemetry.sdk.trace import TracerProvider<br>from opentelemetry.sdk.trace.export import BatchSpanProcessor<br>from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter<br>from opentelemetry.sdk.resources import Resource</pre><pre># Langfuse OTLP endpoint (cloud or self-hosted)<br>LANGFUSE_PUBLIC_KEY = os.environ[&quot;LANGFUSE_PUBLIC_KEY&quot;]<br>LANGFUSE_SECRET_KEY = os.environ[&quot;LANGFUSE_SECRET_KEY&quot;]<br>LANGFUSE_HOST       = os.environ.get(&quot;LANGFUSE_HOST&quot;, &quot;https://cloud.langfuse.com&quot;)</pre><pre>auth = base64.b64encode(<br>    f&quot;{LANGFUSE_PUBLIC_KEY}:{LANGFUSE_SECRET_KEY}&quot;.encode()<br>).decode()</pre><pre>exporter = OTLPSpanExporter(<br>    endpoint=f&quot;{LANGFUSE_HOST}/api/public/otel/v1/traces&quot;,<br>    headers={&quot;Authorization&quot;: f&quot;Basic {auth}&quot;},<br>)</pre><pre>provider = TracerProvider(<br>    resource=Resource.create({&quot;service.name&quot;: &quot;my-agent&quot;})<br>)<br>provider.add_span_processor(BatchSpanProcessor(exporter))<br>trace.set_tracer_provider(provider)</pre><h3>5.3 Auto-Instrument OpenAI Calls</h3><pre>from opentelemetry.instrumentation.openai import OpenAIInstrumentor</pre><pre>OpenAIInstrumentor().instrument()</pre><pre># From this point on, every openai.chat.completions.create() call<br># automatically emits a span with gen_ai.* attributes to Langfuse.</pre><h3>5.4 Manually Trace Agent Steps</h3><pre>tracer = trace.get_tracer(&quot;my-agent&quot;)</pre><pre>def run_agent(user_input: str) -&gt; str:<br>    with tracer.start_as_current_span(&quot;agent.run&quot;) as root_span:<br>        root_span.set_attribute(&quot;user.input&quot;, user_input)</pre><pre>        with tracer.start_as_current_span(&quot;agent.plan&quot;) as plan_span:<br>            plan = call_planner(user_input)     # auto-instrumented LLM call<br>            plan_span.set_attribute(&quot;plan.steps&quot;, len(plan.steps))</pre><pre>        results = []<br>        for step in plan.steps:<br>            with tracer.start_as_current_span(f&quot;tool.{step.tool}&quot;) as tool_span:<br>                result = execute_tool(step)<br>                tool_span.set_attribute(&quot;tool.success&quot;, result.ok)<br>                results.append(result)</pre><pre>        with tracer.start_as_current_span(&quot;agent.synthesise&quot;):<br>            answer = call_synthesiser(plan, results)  # auto-instrumented</pre><pre>        root_span.set_attribute(&quot;agent.success&quot;, True)<br>        return answer</pre><h3>5.5 Add Langfuse Scores (Quality Signals)</h3><pre>from langfuse import Langfuse</pre><pre>lf = Langfuse()</pre><pre># Attach an LLM-as-judge score to a trace by its OTel trace_id<br>lf.score.create(<br>    trace_id=current_trace_id,          # hex trace id from OTel context<br>    name=&quot;answer_faithfulness&quot;,<br>    value=0.87,<br>    comment=&quot;Verified against retrieved context&quot;,<br>)</pre><pre># Or attach a user feedback score<br>lf.score.create(<br>    trace_id=current_trace_id,<br>    name=&quot;user_rating&quot;,<br>    value=1,                            # thumbs up<br>    data_type=&quot;BOOLEAN&quot;,<br>)</pre><h3>6. Metrics That Actually Matter for Agents</h3><p>Once your spans land in Langfuse (and optionally in Prometheus), you can derive meaningful metrics. Here are the ones worth tracking in production:</p><p>MetricSourceWhy it mattersagent.latency_p99OTel span durationTracks tail latency; agents can stall unexpectedly on tool callsgen_ai.tokens.totalOTel GenAI attrsDirect cost driver; track per-model and per-stepagent.tool_call_countOTel span countRunaway tool loops inflate cost and latencyagent.retry_rateOTel span statusHigh retry rate signals model or tool reliability issuesAnswer faithfulness scoreLangfuse scoreMeasures whether the answer is grounded in retrieved contextGoal completion rateLangfuse scoreDid the agent actually accomplish what the user asked?Cost per trace (USD)Langfuse generationLangfuse calculates this automatically from token counts + model pricingLLM call depthLangfuse trace treeDeep trees can indicate unnecessary reasoning overhead</p><p><strong>Pro tip:</strong> Derive a <em>Cost Efficiency Score</em> = (goal_completion_rate) / (avg_tokens_per_trace). This single number tells you whether your agent is getting smarter or just burning more tokens.</p><h3>7. Production Patterns Worth Adopting</h3><h3>Pattern 1 — Propagate Trace Context Across Agent Boundaries</h3><p>In multi-agent systems (e.g. an orchestrator calling specialist sub-agents over HTTP), you must explicitly propagate traceparent headers so all child spans link back to the root trace. OTel&#39;s W3C TraceContext propagator handles this automatically if you use the OTel HTTP client instrumentation.</p><h3>Pattern 2 — Tag Traces With Session and User IDs</h3><pre>root_span.set_attribute(&quot;langfuse.session_id&quot;, session_id)<br>root_span.set_attribute(&quot;langfuse.user_id&quot;,    user_id)</pre><p>Langfuse picks these up and lets you filter the trace explorer by user or session — essential for debugging a specific customer’s experience.</p><h3>Pattern 3 — Use Sampling Wisely</h3><p>High-volume agentic pipelines can generate millions of spans per day. Use OTel’s <strong>head-based sampling</strong> at the Collector to keep, say, 10% of successful traces but 100% of errors and slow traces. This keeps Langfuse storage manageable while retaining full visibility into failures.</p><h3>Pattern 4 — Capture Prompt Versions</h3><pre>root_span.set_attribute(&quot;langfuse.prompt_name&quot;,    &quot;planner-v3&quot;)<br>root_span.set_attribute(&quot;langfuse.prompt_version&quot;, 7)</pre><p>Combined with Langfuse’s Prompt Management feature, this lets you A/B test prompts in production and compare quality scores across versions in the UI.</p><h3>Pattern 5 — Automated Evals in CI</h3><p>Use Langfuse Datasets to snapshot a golden set of traces. After each code change, replay the dataset through your agent, score the outputs with an LLM judge, and compare the score distribution against the baseline. This turns observability data into a regression test suite.</p><h3>8. When to Use What</h3><p>ConcernUse OpenTelemetryUse LangfuseDistributed tracing across services✓ NativeVia OTel ingestionInfrastructure metrics (CPU, memory)✓ Native✗Full prompt/completion capturePartial (via events)✓ First-classToken cost calculationManual✓ AutomaticQuality scores &amp; human feedback✗✓ NativePrompt version management✗✓ NativeEval datasets from production✗✓ NativeVendor portability✓ Best-in-classOpen-source / self-hostable</p><h3>9. Conclusion</h3><p>OpenTelemetry and Langfuse are complementary, not competing. OTel gives you the wire protocol and the instrumentation model that works everywhere; Langfuse gives you the semantic understanding of what LLMs are actually doing inside your traces.</p><p>For any production agentic system the minimum viable observability stack looks like this:</p><ol><li>Instrument with the OTel SDK + GenAI auto-instrumentation.</li><li>Export to Langfuse via OTLP (and optionally to Prometheus for infra metrics).</li><li>Attach session_id, user_id, and prompt version to root spans.</li><li>Add LLM-as-judge scores for quality signals.</li><li>Build eval datasets from production traces and run them in CI.</li></ol><p>Start with steps 1–2 in an afternoon and you will immediately gain visibility you never had before. Add steps 3–5 iteratively as your agent matures. The result is a feedback loop that makes every deployment measurably safer than the last.</p><p><strong>Further reading:</strong> <a href="https://langfuse.com/docs/opentelemetry/introduction">Langfuse OTel docs</a> · <a href="https://opentelemetry.io/docs/specs/semconv/gen-ai/">OTel GenAI semantic conventions</a> · <a href="https://github.com/traceloop/openllmetry">OpenLLMetry (OTel for LLMs)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fa930614563b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>