File tree Expand file tree Collapse file tree 4 files changed +6
-54
lines changed Expand file tree Collapse file tree 4 files changed +6
-54
lines changed Original file line number Diff line number Diff line change @@ -204,13 +204,11 @@ declare namespace Rollbar {
204204 class Telemeter { }
205205 class Instrumenter { }
206206 class Tracing { }
207- class Recorder { }
208207 class Replay { }
209208
210209 export type TelemeterType = typeof Telemeter ;
211210 export type InstrumenterType = typeof Instrumenter ;
212211 export type TracingType = typeof Tracing ;
213- export type RecorderType = typeof Recorder ;
214212 export type ReplayType = typeof Replay ;
215213 export type TruncationType = object ;
216214 export type ScrubType = (
Original file line number Diff line number Diff line change 6767 "require" : " ./src/tracing/tracing.cjs" ,
6868 "default" : " ./src/tracing/tracing.js"
6969 },
70- "./src/browser/replay/recorder " : {
71- "types" : " ./src/browser/replay/recorder .d.ts" ,
72- "require" : " ./src/browser/replay/recorder .cjs" ,
73- "default" : " ./src/browser/replay/recorder .js"
70+ "./src/browser/replay/replay " : {
71+ "types" : " ./src/browser/replay/replay .d.ts" ,
72+ "require" : " ./src/browser/replay/replay .cjs" ,
73+ "default" : " ./src/browser/replay/replay .js"
7474 }
7575 },
7676 "dependencies" : {
Original file line number Diff line number Diff line change 1- import type { Rollbar } from '../../../index.js' ;
2-
31/** A point-in-time cursor into the active Recorder's two-slot ring buffer. */
42export type BufferCursor = {
53 /** Index (0|1) of the active buffer's slot at snapshot time. */
@@ -11,7 +9,7 @@ export type BufferCursor = {
119 offset : number ;
1210} ;
1311
14- export class Recorder extends Rollbar . RecorderType {
12+ export default class Recorder {
1513 constructor ( options : Record < string , any > ) ;
1614
1715 get isRecording ( ) : boolean ;
@@ -31,7 +29,3 @@ export class Recorder extends Rollbar.RecorderType {
3129 stop ( ) : this;
3230 clear ( ) : void ;
3331}
34-
35- declare const Recorder : Recorder ;
36-
37- export default Recorder ;
Original file line number Diff line number Diff line change 11import type { Rollbar } from '../../../index.js' ;
2- import type Recorder from './recorder.js' ;
32
4- export class Replay extends Rollbar . ReplayType {
5- constructor ( props : {
6- tracing : any ;
7- telemeter ?: any ;
8- options : Record < string , any > ;
9- } ) ;
10-
11- configure ( options : Record < string , any > ) : void ;
12-
13- capture (
14- replayId : string ,
15- occurrenceUuid : string ,
16- triggerContext : any ,
17- ) : string | null ;
18-
19- triggerReplay ( triggerContext : any ) : Promise < string | null > ;
20-
21- send ( replayId : string ) : Promise < void > ;
22-
23- discard ( replayId : string ) : boolean ;
24-
25- sendOrDiscardReplay (
26- replayId : string ,
27- err : any ,
28- resp : any ,
29- headers : Record < string , string > ,
30- ) : Promise < void > ;
31-
32- getSpans ( replayId : string ) : any [ ] | null ;
33-
34- setSpans ( replayId : string , spans : any [ ] ) : void ;
35-
36- clear ( ) : void ;
37-
38- get recorder ( ) : Recorder ;
39-
40- get size ( ) : number ;
41- }
42-
43- declare const Replay : Replay ;
3+ declare const Replay : Rollbar . ReplayType ;
444
455export default Replay ;
You can’t perform that action at this time.
0 commit comments