Skip to content

Commit 1bae740

Browse files
authored
chore: update cluster to fix logging issues (#16701)
Close TMNT-236
2 parents 614ee22 + 0c1fdf8 commit 1bae740

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spartan/terraform/gke-cluster/cluster/main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ resource "google_container_cluster" "primary" {
3434
dataset_id = "egress_consumption"
3535
}
3636
}
37+
38+
node_config {
39+
logging_variant = "MAX_THROUGHPUT"
40+
}
3741
}
3842

3943
# Create 2 core node pool with local ssd

yarn-project/foundation/src/log/gcloud-logger-config.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,6 @@ const GOOGLE_CLOUD_TRACE_SAMPLED = 'logging.googleapis.com/trace_sampled';
1313
*/
1414
export const GoogleCloudLoggerConfig = {
1515
messageKey: 'message',
16-
// Same as pino.stdTimeFunctions.isoTime but uses "timestamp" key instead of "time"
17-
timestamp(): string {
18-
return `,"timestamp":"${new Date(Date.now()).toISOString()}"`;
19-
},
2016
formatters: {
2117
log(object: Record<string, unknown>): Record<string, unknown> {
2218
// Add trace context attributes following Cloud Logging structured log format described

0 commit comments

Comments
 (0)