File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
internal-api/src/main/java/datadog/trace/api/gateway Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -322,6 +322,17 @@ public EventType<BiConsumer<RequestContext, String>> httpRoute() {
322322 return (EventType <BiConsumer <RequestContext , String >>) HTTP_ROUTE ;
323323 }
324324
325+ static final int RESPONSE_BODY_ID = 27 ;
326+
327+ @ SuppressWarnings ("rawtypes" )
328+ private static final EventType RESPONSE_BODY =
329+ new ET <>("request.body.converted" , RESPONSE_BODY_ID );
330+ /** The request body has been converted by the framework */
331+ @ SuppressWarnings ("unchecked" )
332+ public EventType <BiFunction <RequestContext , Object , Flow <Void >>> responseBody () {
333+ return (EventType <BiFunction <RequestContext , Object , Flow <Void >>>) RESPONSE_BODY ;
334+ }
335+
325336 static final int MAX_EVENTS = nextId .get ();
326337
327338 private static final class ET <T > extends EventType <T > {
You can’t perform that action at this time.
0 commit comments