Skip to content

Conversation

@longlho
Copy link

@longlho longlho commented Oct 27, 2025

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 longlho requested review from a team as code owners October 27, 2025 11:09
@longlho longlho force-pushed the 10-26-add_middleware_enter_exit_finish_instrumentations_to_hono branch from aa391f9 to 5a85796 Compare October 27, 2025 12:32
@BridgeAR
Copy link
Collaborator

@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.

@longlho
Copy link
Author

longlho commented Oct 27, 2025

Thank you!!

@longlho
Copy link
Author

longlho commented Oct 31, 2025

@BridgeAR gentle ping :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants