hypertrace / javaagent

Hypertrace OpenTelemetry Java agent with payload/body and headers data capture.
Apache License 2.0
28 stars 14 forks source link

Custom block code and msg #398

Closed shashank11p closed 6 months ago

shashank11p commented 7 months ago

Adding a FilterResult in the Filter API, so that filters can provide custom blocking status code and message along with the FilterResult. Using this FilterResult to block and set the response status and message accordingly

shashank11p commented 6 months ago

I suppose this is pending discussion for GRPC

Yes, for now it's setting the Status description as the msg provided. I'll just revert that in grpc, and we will update grpc when we finalise how to set it for grpc.

shashank11p commented 6 months ago

I suppose this is pending discussion for GRPC

Yes, for now it's setting the Status description as the msg provided. I'll just revert that in grpc, and we will update grpc when we finalise how to set it for grpc.

Reverted these. Right now, we do not add custom status and msgs for grpc. We have added them for all other frameworks that we support