Skip to content

Conversation

@byarr
Copy link
Contributor

@byarr byarr commented Jan 28, 2025

When requests come in with invalid methods (e.g. POSTS instead of POST) the exisitng plugin fails to find the method and throws an exception (meaning no metrics are emitted).

Change to use the existng findByName method so that metrics are emitted.

Created an issue #2366 to track this.

@byarr byarr changed the title Use HandlerType.findByName so that we handle invalid names Handle invalid http verbs in micrometer plugin Jan 28, 2025
@tipsy
Copy link
Member

tipsy commented Mar 2, 2025

Makes sense @byarr, thank you !

@tipsy tipsy merged commit 4f5f594 into javalin:master Mar 2, 2025
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