-
-
Notifications
You must be signed in to change notification settings - Fork 278
feat: add setAttributes and removeAttribute
#3352
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
Open
buenaflor
wants to merge
27
commits into
main
Choose a base branch
from
feat/set-attributes
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+478
−161
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
767153c
Add setAttributeS
buenaflor 578f81d
Update
buenaflor 803f85b
Update
buenaflor 58789a8
Add removeAttribute
buenaflor ad4bef1
Add scope test
buenaflor c773c5f
Update
buenaflor 58d3d29
Update
buenaflor e26d83a
Update
buenaflor 2cf1cdb
Update
buenaflor 1ad1c46
Update
buenaflor 6a6fab2
Update
buenaflor 58126a6
Update
buenaflor cbd6718
Update
buenaflor ba81f2f
Update
buenaflor 3b83bd1
Update
buenaflor 968e8d1
Update
buenaflor 1e8dbbc
Update
buenaflor 99a1dc1
Update
buenaflor 9a99d54
Update
buenaflor f33d4f9
Update
buenaflor 224eab1
Update
buenaflor ad95fde
Merge scope
buenaflor 2e39532
Update
buenaflor 625bf76
Fix analyzer
buenaflor 796bba9
Fix analyzer
buenaflor 03bbc0e
Merge branch 'main' into feat/set-attributes
buenaflor ceddd30
Merge branch 'main' into feat/set-attributes
buenaflor File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| import 'package:meta/meta.dart'; | ||
|
|
||
| @Deprecated('Use SentryAttribute instead') | ||
| class SentryLogAttribute extends SentryAttribute { | ||
| SentryLogAttribute._(super.value, super.type); | ||
|
|
||
| factory SentryLogAttribute.string(String value) { | ||
| return SentryLogAttribute._(value, 'string'); | ||
| } | ||
|
|
||
| factory SentryLogAttribute.bool(bool value) { | ||
| return SentryLogAttribute._(value, 'boolean'); | ||
| } | ||
|
|
||
| factory SentryLogAttribute.int(int value) { | ||
| return SentryLogAttribute._(value, 'integer'); | ||
| } | ||
|
|
||
| factory SentryLogAttribute.double(double value) { | ||
| return SentryLogAttribute._(value, 'double'); | ||
| } | ||
| } | ||
|
|
||
| class SentryAttribute { | ||
| @internal | ||
| final String type; | ||
| final dynamic value; | ||
|
|
||
| @internal | ||
| SentryAttribute(this.value, this.type); | ||
|
|
||
| factory SentryAttribute.string(String value) { | ||
| return SentryAttribute(value, 'string'); | ||
| } | ||
|
|
||
| factory SentryAttribute.bool(bool value) { | ||
| return SentryAttribute(value, 'boolean'); | ||
| } | ||
|
|
||
| factory SentryAttribute.int(int value) { | ||
| return SentryAttribute(value, 'integer'); | ||
| } | ||
|
|
||
| factory SentryAttribute.double(double value) { | ||
| return SentryAttribute(value, 'double'); | ||
| } | ||
|
|
||
| Map<String, dynamic> toJson() { | ||
| return { | ||
| 'value': value, | ||
| 'type': type, | ||
| }; | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.