dd-trace-js icon indicating copy to clipboard operation
dd-trace-js copied to clipboard

add middleware enter/exit/finish instrumentations to hono

Open longlho opened this issue 4 months ago • 3 comments

What does this PR do?

This PR adds middleware enter, exit, and finish instrumentations to the Hono plugin. These new instrumentations allow better tracking and visibility into the middleware lifecycle within Hono applications by separately marking when middleware is entered, exited, and completely finished. This improves the granularity of trace data and helps diagnose middleware-related performance issues.

Motivation

The current integration with Hono does not provide detailed visibility into middleware execution. By instrumenting middleware entry, exit, and finish points, users will be able to better observe and debug middleware performance and behavior, which is particularly useful in complex request handling flows or when diagnosing slow middleware execution.

Plugin Checklist

Additional Notes

longlho avatar Oct 27 '25 11:10 longlho

@longlho thank you for your contribution, it is strongly appreciated! I am going to see that someone looks into it sometime soon, while I can't give any concrete time for that right now.

BridgeAR avatar Oct 27 '25 20:10 BridgeAR

Thank you!!

longlho avatar Oct 27 '25 20:10 longlho

@BridgeAR gentle ping :)

longlho avatar Oct 31 '25 01:10 longlho