forked from open-telemetry/opentelemetry-collector-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add signoz_error_index_v2 (#1734)
- Loading branch information
Showing
7 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
exporter/clickhousetracesexporter/migrations/000012_init_signoz_error_index_v2.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE IF EXISTS signoz_traces.signoz_error_index_v2 |
15 changes: 15 additions & 0 deletions
15
exporter/clickhousetracesexporter/migrations/000012_init_signoz_error_index_v2.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
CREATE TABLE IF NOT EXISTS signoz_traces.signoz_error_index_v2 ( | ||
timestamp DateTime64(9) CODEC(DoubleDelta, LZ4), | ||
errorID FixedString(32) CODEC(ZSTD(1)), | ||
groupID FixedString(32) CODEC(ZSTD(1)), | ||
traceID FixedString(32) CODEC(ZSTD(1)), | ||
spanID String CODEC(ZSTD(1)), | ||
serviceName LowCardinality(String) CODEC(ZSTD(1)), | ||
exceptionType LowCardinality(String) CODEC(ZSTD(1)), | ||
exceptionMessage String CODEC(ZSTD(1)), | ||
exceptionStacktrace String CODEC(ZSTD(1)), | ||
exceptionEscaped bool CODEC(T64, ZSTD(1)), | ||
INDEX idx_error_id errorID TYPE bloom_filter GRANULARITY 4 | ||
) ENGINE MergeTree() | ||
PARTITION BY toDate(timestamp) | ||
ORDER BY (timestamp, groupID) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters