Skip to content

🙏 Rewriting event.version for browser-logs #3433

Open
@iwb-lvd

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 not "redirected" to the right 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions