lightstep-tracer-javascript icon indicating copy to clipboard operation
lightstep-tracer-javascript copied to clipboard

Error tag for auto instrumented XHRs

Open kushaljh opened this issue 5 years ago • 1 comments

I am enabling xhr_instrumentation to help me get traces for the frontend of my application and I do get error logs for 400 and 500 level errors in the span logs but it would be helpful to also get an error: true tag in the same way as the span logs are being automatically populated.

The explorer does not support filtering by logs and also does not recognize errors in the logs.

This would be really helpful.

Thank you! :)

kushaljh avatar Aug 01 '19 17:08 kushaljh

Thanks again @kushaljh for filing this issue. Thoughts @bg451 @austinlparker ? Could/should this be added as an additional option? Some of our users don't always recognized 400 as an error so I wouldn't want to require that always, but almost everyone recognizes 500 as an error on their spans.

sbaum1994 avatar Aug 02 '19 14:08 sbaum1994