Skip to content

Conversation

@JonathanBatten
Copy link
Contributor

In the wiki, when talking about setting tags in the default configuration it sounded to me like you could override the values for each of the keys set in tags.

You can configure default tags to be sent with every event. These can be overridden in the context or event.

With the way the tags are merged together currently, the priority of tags with the same key is context > configuration > event.

This seems wrong to me as I would think that if you set a tag explicitly in the event that is being sent to Sentry that it should take precedence over context and configuration tag values.

I've made a change to work the way I would imagine it should work.

@nateberkopec
Copy link
Contributor

Thanks! Good catch.

nateberkopec added a commit that referenced this pull request May 4, 2015
Ensure that the tags hierarchy is respected where event > context > configuration for tags using the same key
@nateberkopec nateberkopec merged commit 05927d8 into getsentry:master May 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants