Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ locals {
not_after_limit = "2025-07-01T00:00:00Z"
server_docker_image = "${include.root.locals.location}-docker.pkg.dev/${include.root.locals.project_id}/docker-${local.env}/tesseract-gcp:${include.root.locals.docker_container_tag}"
spanner_pu = 500
trace_fraction = 0.1
}

include "root" {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ locals {
not_after_limit = "2026-01-01T00:00:00Z"
server_docker_image = "${include.root.locals.location}-docker.pkg.dev/${include.root.locals.project_id}/docker-${local.env}/tesseract-gcp:${include.root.locals.docker_container_tag}"
spanner_pu = 500
trace_fraction = 0.1
}

include "root" {
Expand Down
1 change: 1 addition & 0 deletions deployment/modules/gcp/cloudrun/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ resource "google_cloud_run_v2_service" "default" {
"--inmemory_antispam_cache_size=25000000", # About 1GB of memory.
"--not_after_start=${var.not_after_start}",
"--not_after_limit=${var.not_after_limit}",
"--trace_fraction=${var.trace_fraction}"
]
ports {
container_port = 6962
Expand Down
7 changes: 5 additions & 2 deletions deployment/modules/gcp/cloudrun/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,15 @@ variable "signer_private_key_secret_name" {

variable "not_after_start" {
description = "Start of the range of acceptable NotAfter values, inclusive. Leaving this empty implies no lower bound to the range. RFC3339 UTC format, e.g: 2024-01-02T15:04:05Z."
default = ""
type = string
}

variable "not_after_limit" {
description = "Cut off point of notAfter dates - only notAfter dates strictly *before* notAfterLimit will be accepted. Leaving this empty means no upper bound on the accepted range. RFC3339 UTC format, e.g: 2024-01-02T15:04:05Z."
default = ""
type = string
}

variable "trace_fraction" {
description = "Fraction of open-telemetry span traces to sample."
type = number
}
1 change: 1 addition & 0 deletions deployment/modules/gcp/tesseract/cloudrun/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ module "cloudrun" {
antispam_spanner_db = module.storage.antispam_spanner_db.name
signer_public_key_secret_name = module.secretmanager.ecdsa_p256_public_key_id
signer_private_key_secret_name = module.secretmanager.ecdsa_p256_private_key_id
trace_fraction = var.trace_fraction

depends_on = [
module.secretmanager,
Expand Down
6 changes: 6 additions & 0 deletions deployment/modules/gcp/tesseract/cloudrun/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,9 @@ variable "ephemeral" {
default = false
type = bool
}

variable "trace_fraction" {
description = "Fraction of open-telemetry span traces to sample."
default = 0
type = number
}
Loading