Skip to content

Commit 989f43a

Browse files
committed
fix: Add sampleRate typing
1 parent 29b89de commit 989f43a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

typescript/raven.d.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,14 @@ declare module Raven {
7171

7272
/** Enables/disables automatic collection of breadcrumbs. */
7373
autoBreadcrumbs?: boolean | AutoBreadcrumbOptions;
74-
74+
7575
/** By default, Raven captures as many as 100 breadcrumb entries. If you find this too noisy, you can reduce this number by setting maxBreadcrumbs. Note that this number cannot be set higher than the default of 100. */
7676
maxBreadcrumbs?: number;
77+
78+
/**
79+
* A sampling rate to apply to events. A value of 0.0 will send no events, and a value of 1.0 will send all events (default).
80+
*/
81+
sampleRate?: number;
7782
}
7883

7984
interface RavenInstrumentationOptions {

0 commit comments

Comments
 (0)