mirror of
https://git.mirrors.martin98.com/https://github.com/SigNoz/signoz
synced 2025-08-10 22:29:00 +08:00
fix: remove table default.signoz_spans
from the codebase (#656)
* fix: remove table `default.signoz_spans` from the codebase * fix: remove spanTable and archiveSpanTable from clickHouseReader
This commit is contained in:
parent
d92a3e64f5
commit
ebb1c2ac79
@ -19,9 +19,7 @@ const (
|
||||
defaultDatasource string = "tcp://localhost:9000"
|
||||
defaultOperationsTable string = "signoz_operations"
|
||||
defaultIndexTable string = "signoz_index"
|
||||
defaultSpansTable string = "signoz_spans"
|
||||
defaultErrorTable string = "signoz_error_index"
|
||||
defaultArchiveSpansTable string = "signoz_archive_spans"
|
||||
defaultWriteBatchDelay time.Duration = 5 * time.Second
|
||||
defaultWriteBatchSize int = 10000
|
||||
defaultEncoding Encoding = EncodingJSON
|
||||
@ -90,7 +88,6 @@ func NewOptions(datasource string, primaryNamespace string, otherNamespaces ...s
|
||||
Datasource: datasource,
|
||||
OperationsTable: defaultOperationsTable,
|
||||
IndexTable: defaultIndexTable,
|
||||
SpansTable: defaultSpansTable,
|
||||
ErrorTable: defaultErrorTable,
|
||||
WriteBatchDelay: defaultWriteBatchDelay,
|
||||
WriteBatchSize: defaultWriteBatchSize,
|
||||
@ -107,7 +104,6 @@ func NewOptions(datasource string, primaryNamespace string, otherNamespaces ...s
|
||||
Datasource: datasource,
|
||||
OperationsTable: "",
|
||||
IndexTable: "",
|
||||
SpansTable: defaultArchiveSpansTable,
|
||||
ErrorTable: "",
|
||||
WriteBatchDelay: defaultWriteBatchDelay,
|
||||
WriteBatchSize: defaultWriteBatchSize,
|
||||
|
@ -74,7 +74,6 @@ type ClickHouseReader struct {
|
||||
operationsTable string
|
||||
indexTable string
|
||||
errorTable string
|
||||
spansTable string
|
||||
queryEngine *promql.Engine
|
||||
remoteStorage *remote.Storage
|
||||
ruleManager *rules.Manager
|
||||
@ -98,7 +97,6 @@ func NewReader(localDB *sqlx.DB) *ClickHouseReader {
|
||||
localDB: localDB,
|
||||
operationsTable: options.primary.OperationsTable,
|
||||
indexTable: options.primary.IndexTable,
|
||||
spansTable: options.primary.SpansTable,
|
||||
errorTable: options.primary.ErrorTable,
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user