style(analytics): simplify empty projections to [] in Log/Metric/Span and remove stray blank line in TableManegement

This commit is contained in:
Nawaz Dhandala 2025-10-22 18:08:18 +01:00
parent 546b4a4fb3
commit bc234deb0e
No known key found for this signature in database
GPG key ID: 96C5DCA24769DBCA
4 changed files with 3 additions and 11 deletions

View file

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

View file

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

View file

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

View file

@ -15,8 +15,6 @@ export default class AnalyticsTableManagement {
await service.execute(
service.statementGenerator.toTableCreateStatement(),
);
}
}