designcourse icon indicating copy to clipboard operation
designcourse copied to clipboard

🙏 Rewriting `event.version` for browser-logs

Open iwb-lvd opened this issue 9 months ago • 2 comments

Hello Datadog team 👋

What are you trying to achieve and what is your issue? Please describe.

We are trying to redirect logs/errors to the correct service/version based on the stack trace. To do that we used the beforeSend of RUM and browser-logs.

We made it work for RUM, by simply rewriting the event.version and event.service 👍. So we wanted to do the same for browser-logs, rewriting event.service works, but, there's no event.version.

We originally thought that the type was missing but even by forcing it, it doesn't work. The logs are indeed redirected to the right service but not to the specified version.

It seems that browser-logs beforeSend event does not support version. Are we right? And do you plan to add it or is it an alternative available?

Describe the solution you'd like

Being able to rewrite the event.version as well for browser-logs.

Describe alternatives you've considered

No alternatives.

iwb-lvd avatar Mar 18 '25 15:03 iwb-lvd

Thank you for your feedback. It appears to be a shortcoming on our side. We'll evaluate how to improve the same capabilities for Logs.

BenoitZugmeyer avatar Mar 27 '25 14:03 BenoitZugmeyer

Thank you Benoit, can't wait to see what you'll cook.

iwb-lvd avatar Mar 28 '25 08:03 iwb-lvd

@BenoitZugmeyer Do you have any update on this one, please? Thank you

adbayb avatar Apr 17 '25 11:04 adbayb