mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-01-16 23:00:51 +00:00
style(analytics): simplify empty projections to [] in Log/Metric/Span and remove stray blank line in TableManegement
This commit is contained in:
parent
546b4a4fb3
commit
bc234deb0e
4 changed files with 3 additions and 11 deletions
|
|
@ -313,9 +313,7 @@ export default class Log extends AnalyticsBaseModel {
|
|||
spanIdColumn,
|
||||
bodyColumn,
|
||||
],
|
||||
projections: [
|
||||
|
||||
],
|
||||
projections: [],
|
||||
sortKeys: ["projectId", "time", "serviceId"],
|
||||
primaryKeys: ["projectId", "time", "serviceId"],
|
||||
partitionKey: "sipHash64(projectId) % 16",
|
||||
|
|
|
|||
|
|
@ -557,9 +557,7 @@ export default class Metric extends AnalyticsBaseModel {
|
|||
bucketCountsColumn,
|
||||
explicitBoundsColumn,
|
||||
],
|
||||
projections: [
|
||||
|
||||
],
|
||||
projections: [],
|
||||
sortKeys: ["projectId", "time", "serviceId"],
|
||||
primaryKeys: ["projectId", "time", "serviceId"],
|
||||
partitionKey: "sipHash64(projectId) % 16",
|
||||
|
|
|
|||
|
|
@ -539,9 +539,7 @@ export default class Span extends AnalyticsBaseModel {
|
|||
nameColumn,
|
||||
kindColumn,
|
||||
],
|
||||
projections: [
|
||||
|
||||
],
|
||||
projections: [],
|
||||
sortKeys: ["projectId", "startTime", "serviceId", "traceId"],
|
||||
primaryKeys: ["projectId", "startTime", "serviceId", "traceId"],
|
||||
partitionKey: "sipHash64(projectId) % 16",
|
||||
|
|
|
|||
|
|
@ -15,8 +15,6 @@ export default class AnalyticsTableManagement {
|
|||
await service.execute(
|
||||
service.statementGenerator.toTableCreateStatement(),
|
||||
);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue