autotel-framework-setup
Set up autotel in Hono, Fastify, TanStack Start, Cloudflare Workers, Next.js, Express, MCP, and edge runtimes.
Skill by jagreehal
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/jagreehal-autotel-framework-setup
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, backend, cloud, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/autotel-framework-setup
What's inside
- Skill name
autotel-framework-setup- Description
- Set up autotel in Hono, Fastify, TanStack Start, Cloudflare Workers, Next.js, Express, MCP, and edge runtimes. Framework-specific middleware, init placement, and handler patterns. Use when integrating autotel into a web framework.
- License
- Apache-2.0
- Instructions
- 428 lines in SKILL.md · view on GitHub
Before installing
- Instructions call the network
Files (1)
- SKILL.md
SKILL.md (first lines)
# Autotel Framework Setup
Framework-specific setup guides for integrating autotel into your application.
## Purpose
Quick-start guide for wiring autotel into each supported framework. Covers package installation, init placement, middleware setup, and handler patterns.
## When to Use
- Setting up autotel in a new project
- Adding autotel to an existing framework app
- Checking if you're using the right framework-specific package
- Looking up the correct middleware or wrapper API
## Hono
**Package:** `autotel-hono`
**Install:**
```bash
pnpm add autotel autotel-hono
```
**Setup:**
```typescript
import { Hono } from 'hono';
import { init, getRequestLogger } from 'autotel';
import { otel } from 'autotel-hono';
init({ service: 'my-api' });
const app = new Hono();
app.use(otel({ serviceName: 'my-api' }));
app.post('/api/checkout', async (c) => {
const log = getRequestLogger(); // no args — middleware created the span
const user = await getAuth(c);
log.set({ user: { id: user.id } });
const result = await processCheckout(user.id, await c.req.json());
log.set({ result: { orderId: result.id } });
log.emitNow();
return c.json(result);
});
export default app;
```
**Key points:**
- Register `otel()` middleware once with `app.use()`, not per-route
- `getRequestLogger()` needs no args inside handlers (middleware sets up AsyncLocalStorage)
- Optional config: `captureRequestHeaders`, `captureResponseHeaders`, `spanNameFactory`
---
## TanStack Start
**Package:** `autotel-tanstack`
**Install:**
```bash
pnpm add autotel autotel-tanstack
```
**Setup, Middleware approach (recommended):**
```typescript
// app/ssr.tsx or server entry
import { wrapStartHandler } from 'autotel-tanstack/handlers';
export default wrapStartHandler({
service: 'my-app',
endpoint: process.env.OTEL_EXPORTER_OTLP_ENDPOINT,
})(createStartHandler(defaultStreamHandler));
```
```typescript
// Server functions
import { createServerFn } from '@tanstack/react-start';
import { tracingMiddleware } from 'autotel-tanstack/middleware';
import { getRequestLogger } from 'autotel';
export const getUser = createServerFn({ method: 'GET' })
.middleware([tracingMiddleware({ type: 'function' })])
.handler(async ({ data: id }) => {
const log = getRequestLogger();
log.set({ user: { id } });
const user = await db.users.findUnique({ where: { id } });
log.emitNow();
return user;
});
```
```typescript
// Route loaders
import { traceLoader } from 'autotel-tanstack/loaders';
export const Route = createFileRoute('/users/$userId')({
loader: (ctx) =>
traceLoader(ctx, async ({ params }) => {
return await getUser({ data: params.userId });
}),
});
```
**Zero-config alternative:**
```typescript
import 'autotel-tanstack/auto';
// Set OTEL_SERVICE_NAME, OTEL_EXPORTER_OTLP_ENDPOINT, OTEL_EXPORTER_OTLP_HEADERS
```
**Key points:**From jagreehal/autotel, Apache-2.0.
More from jagreehal/autotel
- 0.631score
find-observability-gaps
jagreehal
Scores the observability of every entry point in a codebase with `autotel map` and closes the gaps it reports.
SkillAFreshness: A★ 8Claude Code +9 - 0.631score
build-audit-trails
jagreehal
Build or review tamper-aware audit trails on top of OpenTelemetry spans using autotel and the autotel-audit package (`withAudit`, `setAuditAttributes`…
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-anti-patterns
jagreehal
Common autotel mistakes and how to fix them.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-testing
jagreehal
Test autotel instrumentation with createTraceCollector() and InMemorySpanExporter.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-core
jagreehal
Explains when to reach for trace vs span vs request logger vs events in Autotel, and the package exports each lives behind.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
migrate-to-autotel
jagreehal
Migrate an existing observability setup to autotel.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
production-observability
jagreehal
Takes a Node.js or TypeScript service to production-grade observability with autotel, in an existing codebase or a new one, and keeps it there.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
analyze-traces
jagreehal
Analyze OpenTelemetry traces and structured logs from a running autotel service to debug errors, investigate latency, follow requests across services, and…
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-investigate
jagreehal
Query OpenTelemetry telemetry (traces, metrics, logs, LLM analytics) via the autotel CLI.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-request-logging
jagreehal
Accumulates request-scoped context and emits one wide-event snapshot per request with getRequestLogger(), set(), setLevel(), info/warn/error, and emitNow().
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-structured-errors
jagreehal
Throws and parses errors that explain themselves with message, why, fix, link, and status, including reusable catalogs via defineErrorCatalog.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
debug-missing-spans
jagreehal
Troubleshoot when expected OpenTelemetry spans don't reach the backend.
SkillAFreshness: A★ 8Claude Code +9
Signals
- Stars
- 8
- Forks
- 3
- Open issues
- 0
- Last commit (this folder)
- Oct 1, 2026 (26 days ago)
- Last release
- Sep 27, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/jagreehal/autotel
- Website
- jagreehal.github.io/autotel/
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from jagreehal
- 0.631score
find-observability-gaps
jagreehal
Scores the observability of every entry point in a codebase with `autotel map` and closes the gaps it reports.
SkillAFreshness: A★ 8Claude Code +9 - 0.631score
build-audit-trails
jagreehal
Build or review tamper-aware audit trails on top of OpenTelemetry spans using autotel and the autotel-audit package (`withAudit`, `setAuditAttributes`…
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-anti-patterns
jagreehal
Common autotel mistakes and how to fix them.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-testing
jagreehal
Test autotel instrumentation with createTraceCollector() and InMemorySpanExporter.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-core
jagreehal
Explains when to reach for trace vs span vs request logger vs events in Autotel, and the package exports each lives behind.
SkillAFreshness: A★ 8Claude Code +9 - 0.626score
autotel-investigate
jagreehal
Query OpenTelemetry telemetry (traces, metrics, logs, LLM analytics) via the autotel CLI.
SkillAFreshness: A★ 8Claude Code +9
Cite this page
autotel-framework-setup skill. Agent Mart. https://agentmart.dev/skills/jagreehal-autotel-framework-setup (last updated 2026-10-24)