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.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
fix: [SIG-570]: handle case where - being present in the key (#4735)
Vikrant Guptaf34a49e19c59
diff --git a/frontend/src/hooks/queryBuilder/useTag.ts b/frontend/src/hooks/queryBuilder/useTag.tsindex 268a01e0c6..a3bbd4af05 100644--- a/frontend/src/hooks/queryBuilder/useTag.ts+++ b/frontend/src/hooks/queryBuilder/useTag.ts@@ -74,7 +74,11 @@ export const useTag = (const handleAddTag = useCallback((value: string): void => {const { tagKey } = getTagToken(value);- const [key, id] = tagKey.split('-');+ const parts = tagKey.split('-');++ // this is done to ensure that `hello-world` also gets converted to `body CONTAINS hello-world`+ const id = parts[parts.length - 1];+ const key = parts.slice(0, -1).join('-');if (id === 'custom') {const customValue = whereClauseConfig