Skip to content

Commit e698dfa

Browse files
committed
clarify flush interval
1 parent b48096f commit e698dfa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/core/src/metrics/constants.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,8 @@ export const NAME_AND_TAG_KEY_NORMALIZATION_REGEX = /[^a-zA-Z0-9_/.-]+/g;
2323
*/
2424
export const TAG_VALUE_NORMALIZATION_REGEX = /[^\w\d_:/@.{}[\]$-]+/g;
2525

26+
/**
27+
* This does not match spec in https://develop.sentry.dev/sdk/metrics
28+
* but was chosen to optimize for the most common case in browser environments.
29+
*/
2630
export const DEFAULT_FLUSH_INTERVAL = 5000;

0 commit comments

Comments
 (0)