{
- onClick?.({ id, type: type ?? '', aliasWith });
- }}
- >
-
- {Array.from({ length: result.level }).map((_, index) => (
-
- ))}
-
0 ? 1 : 0,
- }}
- onClick={() => {
- toggleCollapse(id);
- }}
- >
- {collapsedIds.has(id) ? (
-
- ) : (
-
- )}{' '}
-
- {!isFilterActive && (
-
- {result.children.length > 0
- ? `(${result.children.length})`
- : ''}
-
- )}
+ const {
+ Body: _body,
+ ServiceName: serviceName,
+ id,
+ type,
+ aliasWith,
+ } = result;
+ let body = `${_body}`;
+ try {
+ body = typeof _body === 'string' ? _body : JSON.stringify(_body);
+ } catch (e) {
+ console.warn(
+ "DBTraceWaterfallChart: Couldn't JSON stringify Body",
+ e,
+ );
+ }
-
- {type === SourceKind.Log ? (
-
- ) : null}
- {
- // toggleCollapse(id);
- // }}
- title={`${serviceName}${hasHttpAttributes && httpUrl ? ` | ${displayText}` : ''}`}
- role="button"
- >
- {serviceName ? `${serviceName} | ` : ''}
- {displayText}
-
-
-