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(license): return the active license even in case of suspended status (#8097)

Vikrant Gupta4733af974e12
diff --git a/frontend/src/container/SideNav/SideNav.tsx b/frontend/src/container/SideNav/SideNav.tsx
index 2603981f14..d3c0b03c5b 100644
--- a/frontend/src/container/SideNav/SideNav.tsx
+++ b/frontend/src/container/SideNav/SideNav.tsx
@@ -105,7 +105,7 @@ function SideNav(): JSX.Element {
const isWorkspaceBlocked = trialInfo?.workSpaceBlock || false;
- const isLicenseActive = licenseStatus === 'VALID';
+ const isLicenseActive = licenseStatus !== '' && licenseStatus !== 'INVALID';
const onClickSignozCloud = (): void => {
window.open(
diff --git a/pkg/types/licensetypes/license.go b/pkg/types/licensetypes/license.go
index 994b2c7b63..55e4204238 100644
--- a/pkg/types/licensetypes/license.go
+++ b/pkg/types/licensetypes/license.go
@@ -87,7 +87,7 @@ func GetActiveLicenseFromStorableLicenses(storableLicenses []*StorableLicense, o
return nil, err
}
- if license.Status != "VALID" {
+ if license.Status == "INVALID" {
continue
}
if activeLicense == nil &&