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:
Mustaque Ahmed 2022-02-01 10:26:31 +05:30 committed by GitHub
parent d92a3e64f5
commit ebb1c2ac79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 6 deletions

View File

@ -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,

View File

@ -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,
}
}