Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

fix: copy to clipboard without quotes (#3605)

Rajat Dabade92ba46b2f55b
diff --git a/frontend/src/container/LogDetailedView/TableView.tsx b/frontend/src/container/LogDetailedView/TableView.tsx
index 28910afbde..92840bde45 100644
--- a/frontend/src/container/LogDetailedView/TableView.tsx
+++ b/frontend/src/container/LogDetailedView/TableView.tsx
@@ -164,6 +164,8 @@ function TableView({
width: 70,
ellipsis: false,
render: (field, record): JSX.Element => {
+ const textToCopy = field.slice(1, -1);
+
if (record.field === 'body') {
const parsedBody = recursiveParseJSON(field);
if (!isEmpty(parsedBody)) {
@@ -174,7 +176,7 @@ function TableView({
}
return (
- <CopyClipboardHOC textToCopy={field}>
+ <CopyClipboardHOC textToCopy={textToCopy}>
<span style={{ color: orange[6] }}>{field}</span>
</CopyClipboardHOC>
);