Check the middleware is applied
Every supported framework needs its own wrapper or middleware registered. For example, withnet/http you wrap each handler individually:
athttp.Wrap (or the equivalent for your framework, such as atgin.Middleware for Gin) will still serve requests normally, but Atatus never sees them.
Go through your route registrations and confirm each one is wrapped or covered by the middleware. For router-level middleware such as atgin.Middleware, make sure it is attached before any routes are registered, so it applies to the whole router:
Check groups and subrouters
If your framework supports route groups or subrouters, confirm the middleware is applied to each group, not just the top-level router. A group created beforeUse is called, or a subrouter built from a separate instance, can bypass the middleware entirely.
Propagate the request context
Spans for database queries and downstream HTTP calls are attached to the transaction through the request context. Make sure your handler passes the context along instead of usingcontext.Background():