Go Framework

Echo Tracing with TraceKit

Echo's group-based middleware architecture is elegant -- until a request crosses three route groups and you cannot tell which middleware stack applied. TraceKit traces every middleware group boundary so you see the exact pipeline each request travels through.

Echo observability challenges

Common problems that Echo developers face in production -- and how TraceKit solves them.

Middleware Group Scoping Visibility

Echo's Group() function creates isolated middleware stacks -- the /api group might have auth + rate limiting while /public has only logging. When requests are slow, you need to know which group's middleware ran. TraceKit labels spans with the group path so you can see exactly which middleware stack processed each request.

Cross-Group Context Propagation

Echo allows nested groups with independent middleware. Context values set in one group's middleware may not propagate to another group's handlers. TraceKit ensures trace context survives across group boundaries, so the full request lifecycle is always connected.

Custom Context Method Tracing

Echo encourages extending its Context interface with custom methods. These custom context methods can hide expensive operations behind simple function calls. TraceKit traces custom context methods so you can identify which context extensions add latency.

Get started in minutes

Add OpenTelemetry instrumentation to your Echo app with a few lines of code.

import (
    "github.com/labstack/echo/v4"
    "go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho"
)

func main() {
    e := echo.New()
    e.Use(otelecho.Middleware("my-echo-service"))
    // Your routes here
    e.Start(":8080")
}

See the full Go integration guide

Go Distributed Tracing Guide

Go deeper with our Go distributed tracing guide -- covering common pain points, production patterns, and code examples.

What you get with TraceKit

Distributed Tracing

Trace requests across Echo route groups, middleware chains, and downstream services. See which middleware group processed each request.

Live Code Monitoring

Set breakpoints in your Echo handlers and middleware. Inspect the custom context, group-scoped state, and request pipeline in production without redeploying.

Simple Pricing

$29/month flat for your entire Echo application. No per-route-group fees, no per-middleware charges -- one price for full observability.

Ready to add observability to Echo?

Get started with TraceKit in under 5 minutes. $29/month flat -- no per-host fees, no surprises.