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.

feat: tagkey length check is added (#999)

palash-signoz95311db543fb
diff --git a/frontend/src/container/Trace/Search/AllTags/Tag/TagKey.tsx b/frontend/src/container/Trace/Search/AllTags/Tag/TagKey.tsx
index aa6f95a4e6..da0f957008 100644
--- a/frontend/src/container/Trace/Search/AllTags/Tag/TagKey.tsx
+++ b/frontend/src/container/Trace/Search/AllTags/Tag/TagKey.tsx
@@ -62,11 +62,11 @@ function TagsKey(props: TagsKeysProps): JSX.Element {
const counter = useRef(0);
useEffect(() => {
- if (counter.current === 0) {
+ if (counter.current === 0 && selectedKey.length === 0) {
counter.current = 1;
onSearchHandler();
}
- }, [onSearchHandler]);
+ }, [onSearchHandler, selectedKey.length]);
return (
<AutoComplete