<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Furkan Erday</title>
    <description>The latest articles on DEV Community by Furkan Erday (@logbrew).</description>
    <link>https://dev.to/logbrew</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4230575%2F00515487-b430-45b8-9c18-10db96391c86.jpg</url>
      <title>DEV Community: Furkan Erday</title>
      <link>https://dev.to/logbrew</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/logbrew"/>
    <language>en</language>
    <item>
      <title>Send your OpenTelemetry Collector data to LogBrew and let your AI agent read it</title>
      <dc:creator>Furkan Erday</dc:creator>
      <pubDate>Fri, 20 Nov 2026 21:33:52 +0000</pubDate>
      <link>https://dev.to/logbrew/send-your-opentelemetry-collector-data-to-logbrew-and-let-your-ai-agent-read-it-n09</link>
      <guid>https://dev.to/logbrew/send-your-opentelemetry-collector-data-to-logbrew-and-let-your-ai-agent-read-it-n09</guid>
      <description>&lt;p&gt;If you already run the OpenTelemetry Collector, you don't need another SDK to try a new backend. You add one exporter. This post shows the exact config for LogBrew, what happens to your logs, spans, and metrics when they land, and how to let any AI agent read the same data while you fix a bug.&lt;/p&gt;

&lt;p&gt;I build LogBrew, so take the product parts with that in mind. The config below works with any OTLP/HTTP backend if you swap the endpoint and the header.&lt;/p&gt;

&lt;h2&gt;
  
  
  The exporter
&lt;/h2&gt;

&lt;p&gt;LogBrew takes OTLP over HTTP at &lt;code&gt;https://api.logbrew.co&lt;/code&gt;. The exporter adds &lt;code&gt;/v1/logs&lt;/code&gt;, &lt;code&gt;/v1/traces&lt;/code&gt;, and &lt;code&gt;/v1/metrics&lt;/code&gt; for you.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight yaml"&gt;&lt;code&gt;&lt;span class="na"&gt;exporters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;otlphttp/logbrew&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;endpoint&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;https://api.logbrew.co&lt;/span&gt;
    &lt;span class="na"&gt;compression&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;gzip&lt;/span&gt;
    &lt;span class="na"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;x-logbrew-key&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s"&gt;${env:LOGBREW_INGEST_KEY}&lt;/span&gt;

&lt;span class="na"&gt;service&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
  &lt;span class="na"&gt;pipelines&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
    &lt;span class="na"&gt;logs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;receivers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;otlp&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;exporters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;otlphttp/logbrew&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="na"&gt;traces&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;receivers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;otlp&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;exporters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;otlphttp/logbrew&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
    &lt;span class="na"&gt;metrics&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt;
      &lt;span class="na"&gt;receivers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;otlp&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
      &lt;span class="na"&gt;exporters&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;otlphttp/logbrew&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use a server ingest key and keep it in your secret store. If your pipelines already export somewhere else, add &lt;code&gt;otlphttp/logbrew&lt;/code&gt; next to the existing exporter and both get the same data.&lt;/p&gt;

&lt;p&gt;No Collector? An OpenTelemetry SDK reads the standard variables:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;OTEL_EXPORTER_OTLP_ENDPOINT&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"https://api.logbrew.co"&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;OTEL_EXPORTER_OTLP_PROTOCOL&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"http/protobuf"&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;OTEL_EXPORTER_OTLP_COMPRESSION&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"gzip"&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;OTEL_EXPORTER_OTLP_HEADERS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"x-logbrew-key=${LOGBREW_INGEST_KEY}"&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;OTEL_SERVICE_NAME&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"checkout-api"&lt;/span&gt;
&lt;span class="kd"&gt;export&lt;/span&gt; &lt;span class="nv"&gt;OTEL_RESOURCE_ATTRIBUTES&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s2"&gt;"service.version=checkout@1.4.2,deployment.environment.name=production"&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Set three resource attributes
&lt;/h2&gt;

&lt;p&gt;Most of the value comes from three attributes you probably already set.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Attribute&lt;/th&gt;
&lt;th&gt;Becomes&lt;/th&gt;
&lt;th&gt;If missing&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;service.name&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Service&lt;/td&gt;
&lt;td&gt;&lt;code&gt;unknown_service&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;service.version&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Release&lt;/td&gt;
&lt;td&gt;&lt;code&gt;unversioned&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;deployment.environment.name&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;Environment&lt;/td&gt;
&lt;td&gt;&lt;code&gt;production&lt;/code&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;&lt;code&gt;service.version&lt;/code&gt; is the one people skip. Set it, and a new error shows up against the release that introduced it, which is usually the first thing you want to know.&lt;/p&gt;

&lt;h2&gt;
  
  
  What happens to each signal
&lt;/h2&gt;

&lt;p&gt;A log record becomes a log, and its severity sets the level. A span lands in its trace. Logs and spans keep their trace and span IDs, so a log shows up inside the trace it belongs to.&lt;/p&gt;

&lt;p&gt;Errors are the useful part. An &lt;code&gt;exception&lt;/code&gt; event on a span becomes an issue, and so does a log record with &lt;code&gt;exception.type&lt;/code&gt; or &lt;code&gt;exception.message&lt;/code&gt;. LogBrew groups repeats of the same error into one issue and links it to the trace, the logs around it, the release, and the users it hit. You don't change your instrumentation for this. Most OpenTelemetry instrumentation already records exceptions as span events.&lt;/p&gt;

&lt;p&gt;Metrics map the way you'd expect. Gauges stay gauges, monotonic sums become counters, and histograms and summaries become a &lt;code&gt;.count&lt;/code&gt; and a &lt;code&gt;.sum&lt;/code&gt; counter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Credentials get scrubbed on the way in
&lt;/h2&gt;

&lt;p&gt;Attribute values whose keys look like credentials (&lt;code&gt;authorization&lt;/code&gt;, &lt;code&gt;cookie&lt;/code&gt;, &lt;code&gt;password&lt;/code&gt;, &lt;code&gt;api_key&lt;/code&gt;, anything ending in &lt;code&gt;token&lt;/code&gt;) are replaced with &lt;code&gt;[redacted]&lt;/code&gt; before storage. So are the user and password in a URL and query values like &lt;code&gt;token&lt;/code&gt;, &lt;code&gt;code&lt;/code&gt;, and &lt;code&gt;signature&lt;/code&gt;. It's a safety net. You still shouldn't send secrets on purpose.&lt;/p&gt;

&lt;h2&gt;
  
  
  Let your AI agent read it
&lt;/h2&gt;

&lt;p&gt;This is the reason I wanted the data in one place. LogBrew runs a hosted MCP server, so an agent can search issues, pull the trace for a failing request, and read the logs around it without you pasting stack traces into chat.&lt;/p&gt;

&lt;p&gt;In Claude Code:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;claude mcp add --transport http logbrew https://mcp.logbrew.co/mcp
claude mcp login logbrew
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The browser opens, you pick which projects the agent can read, and it stays read-only unless you also allow changes. Cursor, VS Code with Copilot, Codex, and Gemini CLI connect to the same URL.&lt;/p&gt;

&lt;p&gt;Then ask something like "what's the newest issue in checkout-api since release 1.4.2, and what does its trace show?" The agent reads the issue, the span with the exception, and the logs from the same trace, and starts from there.&lt;/p&gt;

&lt;h2&gt;
  
  
  Limits worth knowing
&lt;/h2&gt;

&lt;p&gt;A request can be up to 4 MiB after decompression and up to 16,384 records. If you hit a rate limit you get a &lt;code&gt;429&lt;/code&gt; with &lt;code&gt;Retry-After&lt;/code&gt;, and the Collector retries on its own. If some records are rejected, the response says how many and why.&lt;/p&gt;

&lt;h2&gt;
  
  
  Trying it
&lt;/h2&gt;

&lt;p&gt;There's a generous free tier, no card needed: 100k errors and 50 GB of logs a month, 30-day retention, and all core features on every plan. The full OTLP reference is at &lt;a href="https://docs.logbrew.co/guides/opentelemetry" rel="noopener noreferrer"&gt;https://docs.logbrew.co/guides/opentelemetry&lt;/a&gt; and the MCP setup for each client is at &lt;a href="https://docs.logbrew.co/guides/mcp" rel="noopener noreferrer"&gt;https://docs.logbrew.co/guides/mcp&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you try it with your Collector, I'd like to hear what broke or what was confusing.&lt;/p&gt;

</description>
      <category>opentelemetry</category>
      <category>observability</category>
      <category>devops</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
