@@ -10,6 +10,7 @@ import {
10
10
Integration ,
11
11
IntegrationClass ,
12
12
NewTransport ,
13
+ SessionAggregates ,
13
14
Severity ,
14
15
SeverityLevel ,
15
16
Transport ,
@@ -186,7 +187,7 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
186
187
if ( ! ( typeof session . release === 'string' ) ) {
187
188
IS_DEBUG_BUILD && logger . warn ( 'Discarded session because of missing or non-string release' ) ;
188
189
} else {
189
- this . _sendSession ( session ) ;
190
+ this . sendSession ( session ) ;
190
191
// After sending, we set init false to indicate it's not the first occurrence
191
192
session . update ( { init : false } ) ;
192
193
}
@@ -271,7 +272,7 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
271
272
/**
272
273
* @inheritDoc
273
274
*/
274
- public sendSession ( session : Session ) : void {
275
+ public sendSession ( session : Session | SessionAggregates ) : void {
275
276
if ( this . _dsn ) {
276
277
const [ env ] = createSessionEnvelope ( session , this . _dsn , this . _options . _metadata , this . _options . tunnel ) ;
277
278
this . sendEnvelope ( env ) ;
@@ -324,12 +325,6 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
324
325
}
325
326
}
326
327
327
- /** Deliver captured session to Sentry */
328
- // TODO(v7): should this be deleted?
329
- protected _sendSession ( session : Session ) : void {
330
- this . sendSession ( session ) ;
331
- }
332
-
333
328
/**
334
329
* Determine if the client is finished processing. Returns a promise because it will wait `timeout` ms before saying
335
330
* "no" (resolving to `false`) in order to give the client a chance to potentially finish first.
0 commit comments