Skip to content

Commit 2db1d8d

Browse files
committed
oops
Signed-off-by: sezen.leblay <sezen.leblay@datadoghq.com>
1 parent 6f14e2e commit 2db1d8d

File tree

1 file changed

+11
-0
lines changed
  • internal-api/src/main/java/datadog/trace/api/gateway

1 file changed

+11
-0
lines changed

internal-api/src/main/java/datadog/trace/api/gateway/Events.java

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff 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> {

0 commit comments

Comments
 (0)