File tree 2 files changed +13
-3
lines changed
2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,11 @@ export function transformTransaction(item: any): Transaction {
29
29
return {
30
30
name : item . transaction ,
31
31
traceId : item . contexts . trace . trace_id ,
32
+ spanId : item . contexts . trace . span_id ,
33
+ status : item . contexts . trace . status ,
34
+ data : item . contexts . trace ?. data ?? { } ,
35
+ op : item . contexts . trace ?. op ?? null ,
36
+ parentSpanId : item . contexts . trace ?. parent_span_id ?? null ,
32
37
release : item . release ,
33
38
tags : item . tags || { } ,
34
39
extra : item . extra ,
Original file line number Diff line number Diff line change @@ -47,15 +47,20 @@ declare namespace sentryTestkit {
47
47
interface Transaction {
48
48
name : string
49
49
traceId : string
50
+ spanId : string
51
+ parentSpanId ?: string | null
52
+ data ?: Record < string , any >
53
+ status ?: string | null
54
+ op ?: string | null
50
55
release ?: string
51
- extra ?: Record < string , unknown >
52
- tags : Record < string , unknown >
56
+ extra ?: Record < string , any >
57
+ tags : Record < string , any >
53
58
spans : Span [ ]
54
59
}
55
60
56
61
export interface Testkit {
57
62
puppeteer : {
58
- startListening ( page : Page , baseUrl ?: String ) : void
63
+ startListening ( page : Page , baseUrl ?: string ) : void
59
64
stopListening ( page : Page ) : void
60
65
}
61
66
reports ( ) : Report [ ]
You can’t perform that action at this time.
0 commit comments