Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🙏 Rewriting event.version for browser-logs #3433

Open
iwb-lvd opened this issue Mar 18, 2025 · 2 comments
Open

🙏 Rewriting event.version for browser-logs #3433

iwb-lvd opened this issue Mar 18, 2025 · 2 comments
Labels
enhancement New feature or request logs

Comments

@iwb-lvd
Copy link

iwb-lvd commented Mar 18, 2025

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.

@BenoitZugmeyer
Copy link
Member

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 BenoitZugmeyer added the enhancement New feature or request label Mar 27, 2025
@iwb-lvd
Copy link
Author

iwb-lvd commented Mar 28, 2025

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request logs
Projects
None yet
Development

No branches or pull requests

3 participants