dd-trace-java icon indicating copy to clipboard operation
dd-trace-java copied to clipboard

Labels 404s as a separate resource

Open Marcus-Rosti opened this issue 4 years ago • 5 comments

When using the java agent 0.75 (and older versions as well) datadog labels 404 as a separate resource or endpoint from the one being called.

So I'd see GET /my/endpoint?withStuff and also a separate resource 404 with the "errors" form the above endpoint

akka-http 10.2.4 scala 2.13.5 dd-trace-java 0.75.0

Marcus-Rosti avatar Mar 08 '21 17:03 Marcus-Rosti

Hi @Marcus-Rosti this is something which is actively being worked on and we will update this issue some progress has been made.

richardstartin avatar Mar 11 '21 16:03 richardstartin

Hi @richardstartin , Anything on when we can expect this? Any workaround we can apply on our side to handle this.

@richardstartin any news about this?

luca147 avatar Aug 12 '22 17:08 luca147

@richardstartin Any status about this issue?

granbestiapop avatar Aug 12 '22 17:08 granbestiapop

@cb-narayanan-krishnamurthy @Marcus-Rosti I found a solution, I inspect the code in more detail and I found when the reassign of the resource name take place... Only setting this property -Ddd.trace.Status404Rule.enabled=FALSE disable this behaviour

luca147 avatar Aug 12 '22 20:08 luca147

Thanks for providing the solution @luca147 !

bm1549 avatar Nov 17 '23 21:11 bm1549

@bm1549 is there a way to disable that without a JVM option?

in my case I'm not in control of the JVM's startup, so adding a -D option is not feasible

valerauko avatar Nov 27 '23 02:11 valerauko