@@ -10,6 +10,7 @@ import {
1010 Integration ,
1111 IntegrationClass ,
1212 NewTransport ,
13+ SessionAggregates ,
1314 Severity ,
1415 SeverityLevel ,
1516 Transport ,
@@ -186,7 +187,7 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
186187 if ( ! ( typeof session . release === 'string' ) ) {
187188 IS_DEBUG_BUILD && logger . warn ( 'Discarded session because of missing or non-string release' ) ;
188189 } else {
189- this . _sendSession ( session ) ;
190+ this . sendSession ( session ) ;
190191 // After sending, we set init false to indicate it's not the first occurrence
191192 session . update ( { init : false } ) ;
192193 }
@@ -271,7 +272,7 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
271272 /**
272273 * @inheritDoc
273274 */
274- public sendSession ( session : Session ) : void {
275+ public sendSession ( session : Session | SessionAggregates ) : void {
275276 if ( this . _dsn ) {
276277 const [ env ] = createSessionEnvelope ( session , this . _dsn , this . _options . _metadata , this . _options . tunnel ) ;
277278 this . sendEnvelope ( env ) ;
@@ -324,12 +325,6 @@ export abstract class BaseClient<O extends ClientOptions> implements Client<O> {
324325 }
325326 }
326327
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-
333328 /**
334329 * Determine if the client is finished processing. Returns a promise because it will wait `timeout` ms before saying
335330 * "no" (resolving to `false`) in order to give the client a chance to potentially finish first.
0 commit comments