autotel-hono

Implement OpenTelemetry middleware for Hono to trace HTTP requests and capture headers.

7|3|Updated Nov 26, 2025
One-click install
npx skills add https://github.com/jagreehal/autotel --skill autotel-hono
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: autotel-hono
Source: https://github.com/jagreehal/autotel/tree/main/packages/autotel-hono/skills/autotel-hono
Command: npx skills add https://github.com/jagreehal/autotel --skill autotel-hono

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides middleware for Hono to instrument HTTP requests with OpenTelemetry, enabling automatic tracing, header capture, and metrics collection for web services.

Core Features & Use Cases

  • Request Tracing: Instruments all incoming HTTP requests with semantic attributes, capturing method, route, URL, and status code.
  • Error Monitoring: Records exceptions for failed requests to facilitate debugging.
  • Flexible Configuration: Allows customization of header capture, request durations, and span naming for precise monitoring.
  • Use Case: Deploy this middleware in a Node.js server to automatically trace API calls, capture relevant headers, and monitor request durations for performance analysis.

Quick Start

Use the Hono middleware to add tracing to your API by calling app.use(otel({ serviceName: 'my-api' })) in your application setup.

Frequently Asked Questions about autotel-hono

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add OpenTelemetry tracing to a Hono HTTP server?

To instrument HTTP requests in a Node.js server, use the Hono OpenTelemetry middleware by calling app.use(otel({ serviceName: 'my-api' })) to automatically trace API calls and monitor request durations.

Can I capture HTTP headers and monitor errors in Hono with OpenTelemetry?

Yes, the OpenTelemetry middleware for Hono allows flexible configuration to capture relevant headers and records exceptions for failed requests to facilitate error monitoring and debugging.

Does OpenTelemetry middleware work with Node.js web services built using Hono?

Yes, this OpenTelemetry middleware is designed for Node.js web services built with Hono, enabling comprehensive observability by automatically tracing HTTP requests and collecting metrics.

What is the best way to monitor request durations and spans in Hono?

The best way to monitor request durations in Hono is by deploying OpenTelemetry middleware, which allows customization of span naming and captures precise metrics for performance analysis.

When do I need HTTP tracing middleware for my Hono API?

You need HTTP tracing middleware for your Hono API when you require comprehensive observability to automatically trace API calls, monitor request durations, and capture semantic attributes for performance analysis.