honojs-middleware/packages/otel/src
Milo Hansen 362b6701a6
fix(otel): Use `req.routePath` when tagging spans (#1113)
* use routePath

Replace indexing into the matchedRoutes with a direct reference to routePath

* Update package.json

Bump version

* set span name and attributes after the request is handled

* revert version bump

* changeset

* add test to ensure subapps set the correct span name

---------

Co-authored-by: Milo Hansen <milo.hansen@avanade.com>
2025-04-10 17:40:54 +09:00
..
index.test.ts fix(otel): Use `req.routePath` when tagging spans (#1113) 2025-04-10 17:40:54 +09:00
index.ts fix(otel): Use `req.routePath` when tagging spans (#1113) 2025-04-10 17:40:54 +09:00