Skip to content

Commit

Permalink
lint: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasBa committed Jun 22, 2023
1 parent efada28 commit 9818ee3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
5 changes: 1 addition & 4 deletions packages/browser/src/profiling/hubextensions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ import type {
JSSelfProfilerConstructor,
ProcessedJSSelfProfile,
} from './jsSelfProfiling';
import { addToProfileQueue , isValidSampleRate } from './utils';

import { addToProfileQueue, isValidSampleRate } from './utils';

export const MAX_PROFILE_DURATION_MS = 30_000;
// Keep a flag value to avoid re-initializing the profiler constructor. If it fails
Expand Down Expand Up @@ -270,5 +269,3 @@ export function wrapTransactionWithProfiling(transaction: Transaction): Transact
transaction.finish = profilingWrappedTransactionFinish;
return transaction;
}


7 changes: 6 additions & 1 deletion packages/browser/src/profiling/integration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ import { logger } from '@sentry/utils';
import type { BrowserClient } from './../client';
import { wrapTransactionWithProfiling } from './hubextensions';
import type { ProfiledEvent } from './utils';
import { addProfilesToEnvelope, createProfilingEvent, findProfiledTransactionsFromEnvelope,PROFILE_QUEUE } from './utils';
import {
addProfilesToEnvelope,
createProfilingEvent,
findProfiledTransactionsFromEnvelope,
PROFILE_QUEUE,
} from './utils';

/**
* Browser profiling integration. Stores any event that has contexts["profile"]["profile_id"]
Expand Down
2 changes: 1 addition & 1 deletion packages/browser/src/profiling/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -463,4 +463,4 @@ export function addToProfileQueue(profile: ProcessedJSSelfProfile): void {
if (PROFILE_QUEUE.length > MAX_PROFILE_QUEUE_SIZE) {
PROFILE_QUEUE.shift();
}
}
}

0 comments on commit 9818ee3

Please sign in to comment.