@@ -354,6 +354,14 @@ export class EventRepository {
354
354
? null
355
355
: unflattenAttributes ( fullEvent . output as Attributes ) ;
356
356
357
+ const show = unflattenAttributes (
358
+ filteredAttributes ( fullEvent . properties as Attributes , SemanticInternalAttributes . SHOW )
359
+ ) [ SemanticInternalAttributes . SHOW ] as
360
+ | {
361
+ actions ?: boolean ;
362
+ }
363
+ | undefined ;
364
+
357
365
const properties = sanitizedAttributes ( fullEvent . properties ) ;
358
366
359
367
const events = transformEvents ( span . data . events , fullEvent . metadata as Attributes ) ;
@@ -365,6 +373,7 @@ export class EventRepository {
365
373
output,
366
374
properties,
367
375
events,
376
+ show,
368
377
} ;
369
378
}
370
379
@@ -480,14 +489,14 @@ export class EventRepository {
480
489
const links : Link [ ] =
481
490
options . spanParentAsLink && propagatedContext ?. traceparent
482
491
? [
483
- {
484
- context : {
485
- traceId : propagatedContext . traceparent . traceId ,
486
- spanId : propagatedContext . traceparent . spanId ,
487
- traceFlags : TraceFlags . SAMPLED ,
492
+ {
493
+ context : {
494
+ traceId : propagatedContext . traceparent . traceId ,
495
+ spanId : propagatedContext . traceparent . spanId ,
496
+ traceFlags : TraceFlags . SAMPLED ,
497
+ } ,
488
498
} ,
489
- } ,
490
- ]
499
+ ]
491
500
: [ ] ;
492
501
493
502
const eventBuilder = {
@@ -742,9 +751,9 @@ function prepareEvent(event: QueriedEvent): PreparedEvent {
742
751
function parseEventsField ( events : Prisma . JsonValue ) : SpanEvents {
743
752
const eventsUnflattened = events
744
753
? ( events as any [ ] ) . map ( ( e ) => ( {
745
- ...e ,
746
- properties : unflattenAttributes ( e . properties as Attributes ) ,
747
- } ) )
754
+ ...e ,
755
+ properties : unflattenAttributes ( e . properties as Attributes ) ,
756
+ } ) )
748
757
: undefined ;
749
758
750
759
const spanEvents = SpanEvents . safeParse ( eventsUnflattened ) ;
@@ -938,8 +947,8 @@ function transformException(
938
947
...exception ,
939
948
stacktrace : exception . stacktrace
940
949
? correctErrorStackTrace ( exception . stacktrace , projectDirAttributeValue , {
941
- removeFirstLine : true ,
942
- } )
950
+ removeFirstLine : true ,
951
+ } )
943
952
: undefined ,
944
953
} ;
945
954
}
@@ -966,4 +975,4 @@ function getNowInNanoseconds(): bigint {
966
975
967
976
function getDateFromNanoseconds ( nanoseconds : bigint ) {
968
977
return new Date ( Number ( nanoseconds ) / 1_000_000 ) ;
969
- }
978
+ }
0 commit comments