Skip to content

Micronaut micrometer recording 500 status code for 400 status codes #937

@SaiYashasvi9

Description

@SaiYashasvi9

Expected Behavior

We are using micronaut 4.7.5 version and observed that if service is retruning 400 bad request, micrometer is recording the status as 500. Because of this we are facing issue with service unavailability as 500 status code is considered as service unavailability and we are currently blocked on this

http_server_requests_seconds_count{exception="GenericException",method="POST",status="400",uri="/v1/test"}

Actual Behaviour

http_server_requests_seconds_count{exception="GenericException",method="POST",status="500",uri="/v1/test"}

Steps To Reproduce

No response

Environment Information

No response

Example Application

No response

Version

4.7.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions