faro-web-sdk icon indicating copy to clipboard operation
faro-web-sdk copied to clipboard

Send traces only on errors?

Open cg-roling opened this issue 1 year ago • 1 comments

I'm investigating replacing Sentry with Faro. Sentry has a concept of "breadcrumbs" that are sent along with errors.

From what I understand, this is basically what the tracing instrumentation does, except that continuously send all events.

Is it possible to only have traces sent in the case of an error?

cg-roling avatar Mar 17 '23 21:03 cg-roling

Hey @cg-roling

Thanks a lot for your question.

Yes you are right. For that kind of tracking you need to enable the Tracing Instrumentation. You can additionally add Session Instrumentation so that you can scope trace by session (session management) in case that capability is may be important.

At the moment it is not possible to filter traces by event type correlation before sent.

If you don't mind I would like to add a feature tag to the issue so we will investigate further.

Cheers, Marco

codecapitano avatar Mar 20 '23 08:03 codecapitano