# Wiring swamp's Traces Into My Own LGTM Stack

DevFeed: [Wiring swamp's Traces Into My Own LGTM Stack](<https://devfeed.tech/articles/wiring-swamp-s-traces-into-my-own-lgtm-stack-62586.md>)

Original publisher: [Read original article](<https://swamp-club.com/feed/p/096d8fab-7ed2-4bd2-b4be-bf24d2a9dc3e/go>)

Author: kneel

Published: 2026-09-30T17:15:09Z

Content type: tutorial

Language: en

Sources: [Swamp Club Feed](<https://devfeed.tech/sources/swamp-club-feed.md>)

Topics: [observability pipelines](<https://devfeed.tech/topics/observability-pipelines.md>), [OpenTelemetry](<https://devfeed.tech/topics/opentelemetry.md>), [telemetry](<https://devfeed.tech/topics/telemetry.md>), [dashboards](<https://devfeed.tech/topics/dashboards.md>)

Tags: [alloy](<https://devfeed.tech/tags/alloy.md>), [apis](<https://devfeed.tech/tags/apis.md>), [auth](<https://devfeed.tech/tags/auth.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [base64](<https://devfeed.tech/tags/base64.md>), [bash](<https://devfeed.tech/tags/bash.md>), [basic](<https://devfeed.tech/tags/basic.md>), [caddy](<https://devfeed.tech/tags/caddy.md>), [collector](<https://devfeed.tech/tags/collector.md>), [dashboard](<https://devfeed.tech/tags/dashboard.md>), [deno](<https://devfeed.tech/tags/deno.md>), [environment-variables](<https://devfeed.tech/tags/environment-variables.md>), [error](<https://devfeed.tech/tags/error.md>), [gateway](<https://devfeed.tech/tags/gateway.md>), [grafana](<https://devfeed.tech/tags/grafana.md>), [lgtm](<https://devfeed.tech/tags/lgtm.md>), [logs](<https://devfeed.tech/tags/logs.md>), [observability](<https://devfeed.tech/tags/observability.md>), [opentelemetry](<https://devfeed.tech/tags/opentelemetry.md>), [otel](<https://devfeed.tech/tags/otel.md>), [red](<https://devfeed.tech/tags/red.md>), [swamp](<https://devfeed.tech/tags/swamp.md>), [tempo](<https://devfeed.tech/tags/tempo.md>), [traces](<https://devfeed.tech/tags/traces.md>)

## AI overview

swamp emits OpenTelemetry execution spans describing runs, phases, errors, and timing; it does not provide LLM or token telemetry, and derives no metrics directly. The author's wrapper retrieves an ingest token from `pass`, configures OTLP over HTTP/protobuf, adds site and host resource attributes, and sends traces through Caddy to Tempo. Caddy authenticates the exporter and sets Tempo's tenant header itself, preventing the client from choosing the tenant. A separate OTLP logs signal goes to local Alloy and then Loki. Tempo's span-metrics machinery derives rate, error, and duration metrics for Grafana dashboards; the author uses those to spot changes and follows links to traces to investigate causes. Resource attributes initially failed to reach exported spans until an upstream fix.

## Source excerpt

swamp emits OTLP traces and logs natively. This is how I ship the traces through a Caddy auth gateway into Tempo and turn them into a RED dashboard I actually look at.