Skip to content

Commit 7e52ad5

Browse files
committed
types cleanup
1 parent 62e0af6 commit 7e52ad5

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

packages/hub/src/sessionflusher.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { AggregationCounts, Client, RequestSessionStatus, SessionAggregates, SessionFlusherLike } from '@sentry/types';
2-
import { dropUndefinedKeys, logger } from '@sentry/utils';
2+
import { dropUndefinedKeys } from '@sentry/utils';
33

4-
import { IS_DEBUG_BUILD } from './flags';
54
import { getCurrentHub } from './hub';
65

76
type ReleaseHealthAttributes = {
@@ -27,7 +26,7 @@ export class SessionFlusher implements SessionFlusherLike {
2726
this._sessionAttrs = attrs;
2827
}
2928

30-
/** Checks if `pendingAggregates` has entries, and if it does flushes them by calling `sendSessions` */
29+
/** Checks if `pendingAggregates` has entries, and if it does flushes them by calling `sendSession` */
3130
public flush(): void {
3231
const sessionAggregates = this.getSessionAggregates();
3332
if (sessionAggregates.aggregates.length === 0) {

packages/types/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export type { Thread } from './thread';
6565
export type {
6666
Outcome,
6767
Transport,
68+
TransportOptions,
6869
TransportCategory,
6970
TransportRequest,
7071
TransportMakeRequestResponse,

packages/types/src/session.ts

-3
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,6 @@ export interface SessionFlusherLike {
7474
*/
7575
incrementSessionStatusCount(): void;
7676

77-
/** Submits the aggregates request mode sessions to Sentry */
78-
sendSessionAggregates(sessionAggregates: SessionAggregates): void;
79-
8077
/** Empties Aggregate Buckets and Sends them to Transport Buffer */
8178
flush(): void;
8279

0 commit comments

Comments
 (0)