Skip to content

Commit f3bdd40

Browse files
committed
wip
Signed-off-by: sezen.leblay <sezen.leblay@datadoghq.com>
1 parent 2e8aa2f commit f3bdd40

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

dd-java-agent/instrumentation/spring-webmvc-3.1/src/main/java/datadog/trace/instrumentation/springweb/HttpMessageConverterInstrumentation.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -137,20 +137,9 @@ public static void before(
137137
return;
138138
}
139139

140-
// TODO: A dedicated responseBodyProcessed event should be added to the Events class
141-
// For now, we're using requestBodyProcessed as a placeholder, but this is not semantically
142-
// correct
143-
// The proper solution would be to:
144-
// 1. Add RESPONSE_BODY_PROCESSED_ID = 26 to Events.java
145-
// 2. Add corresponding responseBodyProcessed() method to Events.java
146-
// 3. Update GatewayBridge to handle the new event type
147-
// 4. Replace the callback below with the proper responseBodyProcessed event
148-
149140
CallbackProvider cbp = AgentTracer.get().getCallbackProvider(RequestContextSlot.APPSEC);
150141
BiFunction<RequestContext, Object, Flow<Void>> callback =
151-
cbp.getCallback(
152-
EVENTS
153-
.requestBodyProcessed()); // TEMPORARY: Using requestBodyProcessed as placeholder
142+
cbp.getCallback(EVENTS.responseBodyProcessed());
154143
if (callback == null) {
155144
return;
156145
}

0 commit comments

Comments
 (0)