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.

Revert "feat(sql): increase busy timeout (#9336)" (#9337)

Vikrant Gupta800a34e6253f
diff --git a/pkg/sqlstore/sqlitesqlstore/provider.go b/pkg/sqlstore/sqlitesqlstore/provider.go
index f5a372ee0a..0896d919dd 100644
--- a/pkg/sqlstore/sqlitesqlstore/provider.go
+++ b/pkg/sqlstore/sqlitesqlstore/provider.go
@@ -42,7 +42,7 @@ func New(ctx context.Context, providerSettings factory.ProviderSettings, config
connectionParams := url.Values{}
// using the defaults from :https://github.com/mattn/go-sqlite3/blob/master/sqlite3.go#L1098
- connectionParams.Add("_pragma", "busy_timeout(10000)")
+ connectionParams.Add("_pragma", "busy_timeout(5000)")
connectionParams.Add("_pragma", "foreign_keys(1)")
sqldb, err := sql.Open("sqlite", "file:"+config.Sqlite.Path+"?"+connectionParams.Encode())
if err != nil {