Skip to content

Commit

Permalink
types cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Apr 19, 2022
1 parent 62e0af6 commit 7e52ad5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 2 additions & 3 deletions packages/hub/src/sessionflusher.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { AggregationCounts, Client, RequestSessionStatus, SessionAggregates, SessionFlusherLike } from '@sentry/types';
import { dropUndefinedKeys, logger } from '@sentry/utils';
import { dropUndefinedKeys } from '@sentry/utils';

import { IS_DEBUG_BUILD } from './flags';
import { getCurrentHub } from './hub';

type ReleaseHealthAttributes = {
Expand All @@ -27,7 +26,7 @@ export class SessionFlusher implements SessionFlusherLike {
this._sessionAttrs = attrs;
}

/** Checks if `pendingAggregates` has entries, and if it does flushes them by calling `sendSessions` */
/** Checks if `pendingAggregates` has entries, and if it does flushes them by calling `sendSession` */
public flush(): void {
const sessionAggregates = this.getSessionAggregates();
if (sessionAggregates.aggregates.length === 0) {
Expand Down
1 change: 1 addition & 0 deletions packages/types/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export type { Thread } from './thread';
export type {
Outcome,
Transport,
TransportOptions,
TransportCategory,
TransportRequest,
TransportMakeRequestResponse,
Expand Down
3 changes: 0 additions & 3 deletions packages/types/src/session.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ export interface SessionFlusherLike {
*/
incrementSessionStatusCount(): void;

/** Submits the aggregates request mode sessions to Sentry */
sendSessionAggregates(sessionAggregates: SessionAggregates): void;

/** Empties Aggregate Buckets and Sends them to Transport Buffer */
flush(): void;

Expand Down

0 comments on commit 7e52ad5

Please sign in to comment.