File tree Expand file tree Collapse file tree 2 files changed +11
-20
lines changed Expand file tree Collapse file tree 2 files changed +11
-20
lines changed Original file line number Diff line number Diff line change @@ -103,15 +103,7 @@ export class BrowserClient extends BaseClient<BrowserClientOptions> {
103
103
/**
104
104
* @inheritDoc
105
105
*/
106
- protected _prepareEvent ( event : Event , scope ?: Scope , hint ?: EventHint ) : PromiseLike < Event | null > {
107
- event . platform = event . platform || 'javascript' ;
108
- return super . _prepareEvent ( event , scope , hint ) ;
109
- }
110
-
111
- /**
112
- * @inheritDoc
113
- */
114
- protected _sendEvent ( event : Event ) : void {
106
+ public sendEvent ( event : Event ) : void {
115
107
// We only want to add the sentry event breadcrumb when the user has the breadcrumb integration installed and
116
108
// activated its `sentry` option.
117
109
// We also do not want to use the `Breadcrumbs` class here directly, because we do not want it to be included in
@@ -140,7 +132,15 @@ export class BrowserClient extends BaseClient<BrowserClientOptions> {
140
132
) ;
141
133
}
142
134
143
- super . _sendEvent ( event ) ;
135
+ super . sendEvent ( event ) ;
136
+ }
137
+
138
+ /**
139
+ * @inheritDoc
140
+ */
141
+ protected _prepareEvent ( event : Event , scope ?: Scope , hint ?: EventHint ) : PromiseLike < Event | null > {
142
+ event . platform = event . platform || 'javascript' ;
143
+ return super . _prepareEvent ( event , scope , hint ) ;
144
144
}
145
145
146
146
/**
Original file line number Diff line number Diff line change @@ -545,15 +545,6 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
545
545
}
546
546
}
547
547
548
- /**
549
- * Sends the passed event
550
- * @param event The Sentry event to send
551
- */
552
- // TODO(v7): refactor: get rid of method?
553
- protected _sendEvent ( event : Event ) : void {
554
- this . sendEvent ( event ) ;
555
- }
556
-
557
548
/**
558
549
* Processes the event and logs an error in case of rejection
559
550
* @param event
@@ -631,7 +622,7 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
631
622
this . _updateSessionFromEvent ( session , processedEvent ) ;
632
623
}
633
624
634
- this . _sendEvent ( processedEvent ) ;
625
+ this . sendEvent ( processedEvent ) ;
635
626
return processedEvent ;
636
627
} )
637
628
. then ( null , reason => {
You can’t perform that action at this time.
0 commit comments