Skip to content

Event tags overwritten by options #1146

Description

@matthijsthoolen

It seems like that it's impossible to set tags on a custom event.

Reproduction:

$event = Event::createEvent(); $event->setTags(['tag' => 'disappears']); $sentry->captureEvent($event);

This tag will never reach Sentry server.

Some investigation leads me to "Sentry/src/Client.php" on row 232 the tags are set to $this->options->getTags();
setTags just overwrites the tags set in the event, shouldnt this be a append/merge instead?

Or is there another way to add a tag to this event only?

Activity

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

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions