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: move ee references out of cmd/community (#10063)

Pandey3051d442c082
diff --git a/.github/workflows/commitci.yaml b/.github/workflows/commitci.yaml
index 2c67ba5f9f..4935c07317 100644
--- a/.github/workflows/commitci.yaml
+++ b/.github/workflows/commitci.yaml
@@ -25,3 +25,10 @@ jobs:
else
echo "No references to 'ee' packages found in 'pkg' directory"
fi
+
+ if grep -R --include="*.go" '.*/ee/.*' cmd/community/; then
+ echo "Error: Found references to 'ee' packages in 'cmd/community' directory"
+ exit 1
+ else
+ echo "No references to 'ee' packages found in 'cmd/community' directory"
+ fi
diff --git a/cmd/community/server.go b/cmd/community/server.go
index 8fd00e445b..c91b6fb0ee 100644
--- a/cmd/community/server.go
+++ b/cmd/community/server.go
@@ -5,12 +5,11 @@ import (
"log/slog"
"github.com/SigNoz/signoz/cmd"
- "github.com/SigNoz/signoz/ee/authz/openfgaauthz"
- "github.com/SigNoz/signoz/ee/authz/openfgaschema"
- "github.com/SigNoz/signoz/ee/sqlstore/postgressqlstore"
"github.com/SigNoz/signoz/pkg/analytics"
"github.com/SigNoz/signoz/pkg/authn"
"github.com/SigNoz/signoz/pkg/authz"
+ "github.com/SigNoz/signoz/pkg/authz/openfgaauthz"
+ "github.com/SigNoz/signoz/pkg/authz/openfgaschema"
"github.com/SigNoz/signoz/pkg/factory"
"github.com/SigNoz/signoz/pkg/gateway"
"github.com/SigNoz/signoz/pkg/gateway/noopgateway"
@@ -26,7 +25,6 @@ import (
"github.com/SigNoz/signoz/pkg/signoz"
"github.com/SigNoz/signoz/pkg/sqlschema"
"github.com/SigNoz/signoz/pkg/sqlstore"
- "github.com/SigNoz/signoz/pkg/sqlstore/sqlstorehook"
"github.com/SigNoz/signoz/pkg/types/authtypes"
"github.com/SigNoz/signoz/pkg/version"
"github.com/SigNoz/signoz/pkg/zeus"
@@ -59,13 +57,6 @@ func runServer(ctx context.Context, config signoz.Config, logger *slog.Logger) e
// print the version
version.Info.PrettyPrint(config.Version)
- // add enterprise sqlstore factories to the community sqlstore factories
- sqlstoreFactories := signoz.NewSQLStoreProviderFactories()
- if err := sqlstoreFactories.Add(postgressqlstore.NewFactory(sqlstorehook.NewLoggingFactory())); err != nil {
- logger.ErrorContext(ctx, "failed to add postgressqlstore factory", "error", err)
- return err
- }
-
signoz, err := signoz.New(
ctx,
config,