Skip to content

🙏 Rewriting event.version for browser-logs #3433

Open

Description

@iwb-lvd

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.

Activity

  1. BenoitZugmeyer commented on Mar 27, 2025

    @BenoitZugmeyer
    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.

  2. added
    enhancement
    on Mar 27, 2025
  3. iwb-lvd commented on Mar 28, 2025

    @iwb-lvd
    Author

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

  4. adbayb commented on Apr 17, 2025

    @adbayb

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementlogs

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions