-
-
Notifications
You must be signed in to change notification settings - Fork 277
Refacto : add a Transport class #123
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
Changes from 1 commit
a10d740
623c904
0dcb613
c97c98b
477fdac
b8fb322
fd92e3f
0944c68
46829fc
01d4e19
fbd001e
4d39531
34fb528
2437fa4
57798f5
789e154
1aa05d6
9895142
cb5e309
e563d2c
71b53c8
be3f0a2
43b798c
19dc91d
cec1f21
909d4f9
8b600dc
4ff58a6
5493e19
621d6c4
e11f653
88526e2
796b633
fb8b9e0
1dbcba4
8b56bce
daeb29e
098d58c
2833a94
35671d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- remove projectId from sended data
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,6 +13,7 @@ class SentryEvent { | |
| SentryId eventId, | ||
| DateTime timestamp, | ||
| String platform, | ||
| Sdk sdk, | ||
| this.logger, | ||
| this.serverName, | ||
| this.release, | ||
|
|
@@ -31,10 +32,10 @@ class SentryEvent { | |
| this.userContext, | ||
| this.contexts, | ||
| this.breadcrumbs, | ||
| this.sdk, | ||
| }) : eventId = eventId ?? SentryId.newId(), | ||
| platform = platform ?? (isWeb ? browserPlatform : sdkPlatform), | ||
|
||
| timestamp = timestamp ?? getUtcDateTime(); | ||
| timestamp = timestamp ?? getUtcDateTime(), | ||
| sdk = sdk ?? Sdk(name: sdkName, version: sdkVersion); | ||
|
|
||
| /// Refers to the default fingerprinting algorithm. | ||
| /// | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,11 +8,15 @@ | |
| /// This library contains Sentry.io SDK constants used by this package. | ||
| library version; | ||
|
|
||
| import 'utils.dart'; | ||
|
|
||
| /// The SDK version reported to Sentry.io in the submitted events. | ||
| const String sdkVersion = '4.0.0'; | ||
|
|
||
| String get sdkName => isWeb ? browserSdkName : ioSdkName; | ||
|
||
|
|
||
| /// The default SDK name reported to Sentry.io in the submitted events. | ||
| const String sdkName = 'sentry.dart'; | ||
| const String ioSdkName = 'sentry.dart'; | ||
|
|
||
| /// The SDK name for web projects reported to Sentry.io in the submitted events. | ||
| const String browserSdkName = 'sentry.dart.browser'; | ||
|
|
||
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.
wondering if this is the same as
options.sentryClientName, could you check it?Uh oh!
There was an error while loading. Please reload this page.
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.
platformis'dart'or'javascript', according to the docsoptions.sentryClientNameis'sentry.{language}.{platform}/{version}'Uh oh!
There was an error while loading. Please reload this page.
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.
we could do this then?
same for the WebClient, so we move this flag to the options and the
transportdon't need to take it as a param? we do it automatically.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.
✅ platform is now defined at runtime