Add attributes display to LogItem component

This commit is contained in:
Simon Larsen 2024-02-28 20:54:52 +00:00
parent 5795762e12
commit 4d4180358e
No known key found for this signature in database
GPG Key ID: AB45983AA9C81CDE

View File

@ -214,6 +214,17 @@ const LogItem: FunctionComponent<ComponentProps> = (
{getCopyButton(props.log.spanId?.toString() || '')}
</div>
)}
{props.log.attributes && (
<div className="flex">
<div className="font-medium text-slate-200 courier-prime mr-2">
ATTRIBUTES:
</div>
<div className={`${bodyColor} courier-prime`}>
{JSON.stringify(props.log.attributes, null, 2)}
</div>
</div>
)}
</div>
);
};