File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
apps/webapp/app/v3/eventRepository Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -1110,9 +1110,16 @@ export class ClickhouseEventRepository implements IEventRepository {
1110
1110
parsedMetadata &&
1111
1111
"entity" in parsedMetadata &&
1112
1112
typeof parsedMetadata . entity === "object" &&
1113
- parsedMetadata . entity
1113
+ parsedMetadata . entity &&
1114
+ "entityType" in parsedMetadata . entity &&
1115
+ typeof parsedMetadata . entity . entityType === "string" &&
1116
+ "entityId" in parsedMetadata . entity &&
1117
+ typeof parsedMetadata . entity . entityId === "string"
1114
1118
) {
1115
- span . entity = parsedMetadata . entity as { type : string | undefined ; id : string | undefined } ;
1119
+ span . entity = {
1120
+ id : parsedMetadata . entity . entityId ,
1121
+ type : parsedMetadata . entity . entityType ,
1122
+ } ;
1116
1123
}
1117
1124
1118
1125
if ( record . kind === "SPAN" ) {
You can’t perform that action at this time.
0 commit comments