Skip to content

Tags and Extra exposed as IDictionary (instead of IReadOnlyDictionary) - #2796

Closed
jamescrosswell wants to merge 7 commits into
feat/4.0.0from
improve-event-2273
Closed

jamescrosswell wants to merge 7 commits into
feat/4.0.0from
improve-event-2273

Conversation

@jamescrosswell

Copy link
Copy Markdown
Collaborator

Resolves #2273

@jamescrosswell jamescrosswell linked an issue Nov 6, 2023 that may be closed by this pull request
@jamescrosswell
jamescrosswell changed the base branch from main to feat/4.0.0 November 6, 2023 07:35
@jamescrosswell jamescrosswell changed the title WIP: Improve SentryEvent Tags and Extra exposed as IDictionary (instead of IReadOnlyDictionary) Nov 6, 2023
@jamescrosswell
jamescrosswell marked this pull request as ready for review November 6, 2023 10:13
@jamescrosswell
jamescrosswell marked this pull request as draft November 6, 2023 10:24
@jamescrosswell
jamescrosswell marked this pull request as ready for review November 8, 2023 06:54
SentryOptions options
)
{
_innerDictionary = innerDictionary ?? throw new ArgumentNullException(nameof(innerDictionary));

@bitsandfoxes bitsandfoxes Nov 8, 2023 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is never getting caught, right? Should we log this instead or fallback another way?

@bruno-garcia bruno-garcia left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets please not to this. SetTag is the API in all Sentry SDKs, and it's what we exposed for 5 and a half years here. We gain nothing in changing this. In fact I'd argue we lose in exposing the IDictionary API which exposes things in a way we might not have expected/planned

@bruno-garcia

Copy link
Copy Markdown
Member

We had a bit of a race condition here but I close this issue 2 days ago too: #2273

@jamescrosswell

Copy link
Copy Markdown
Collaborator Author

Lets please not to this. SetTag is the API in all Sentry SDKs, and it's what we exposed for 5 and a half years here. We gain nothing in changing this. In fact I'd argue we lose in exposing the IDictionary API which exposes things in a way we might not have expected/planned

I'm OK with that. It would be good to make these calls before writing the solution/implementation though. I was basically just going through the remaining issues on the 4.0.0 milestone... we could maybe do a bit of "backlog grooming" every now and then to avoid writing code that will never get used (like this).

@bruno-garcia
bruno-garcia deleted the improve-event-2273 branch November 8, 2023 22:27
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.

Improve SentryEvent public API

3 participants