-
-
Couldn't load subscription status.
- Fork 225
fix: ExtraData not captured for Breadcrumbs in MauiEventsBinder #4254
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
test/Sentry.Maui.Tests/ApiApprovalTests.Run.DotNet8_0.verified.txt
Outdated
Show resolved
Hide resolved
| public BreadcrumbEvent( | ||
| object? sender, | ||
| string eventName, | ||
| params IEnumerable<(string key, string value)> extraData) : this(sender, eventName, extraData.Select( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
final comment: deferred execution
The Select assigned to ExtraData will have deferred execution.
Is this expected / intended?
On the other hand, since we accept IEnumerable in the .ctors, the user could pass IEnumerables with deferred execution anyway.
On second thought ... I believe this is great as it is.
Also considering we're enumerating through it only a single time, so materializing the IEnumerable beforehand would actually be slightly slower and allocate more memory.
Resolves #4252: