fix: trace event is now not decoding the events (#1766)

Co-authored-by: Pranay Prateek <pranay@signoz.io>
This commit is contained in:
Palash Gupta 2022-11-28 18:27:09 +05:30 committed by GitHub
parent 67c0c9032f
commit ce072bdc3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -77,12 +77,7 @@ export const spanToTreeUtil = (inputSpanList: Span[]): ITraceForest => {
serviceName: span[3],
hasError: !!span[11],
serviceColour: '',
event: span[10].map((e) => {
return (
JSON.parse(decodeURIComponent((e as never) || ('{}' as never))) ||
({} as Record<string, unknown>)
);
}),
event: span[10].map((e) => JSON.parse(e || '{}') || {}),
references: spanReferences,
};
spanMap[span[1]] = spanObject;