diff --git a/java/sample-apps/aws-sdk/deploy/agent/main.tf b/java/sample-apps/aws-sdk/deploy/agent/main.tf index 7fc72172..d65ffeb8 100644 --- a/java/sample-apps/aws-sdk/deploy/agent/main.tf +++ b/java/sample-apps/aws-sdk/deploy/agent/main.tf @@ -52,7 +52,7 @@ receivers: http: exporters: - logging: + debug: awsxray: prometheusremotewrite: endpoint: "${aws_prometheus_workspace.test_amp_workspace[0].prometheus_endpoint}api/v1/remote_write" @@ -68,7 +68,7 @@ service: exporters: [awsxray] metrics: receivers: [otlp] - exporters: [logging, prometheusremotewrite] + exporters: [debug, prometheusremotewrite] EOT filename = "config.yaml" } diff --git a/nodejs/sample-apps/aws-sdk/deploy/wrapper/main.tf b/nodejs/sample-apps/aws-sdk/deploy/wrapper/main.tf index 93945b9a..382b5f9b 100644 --- a/nodejs/sample-apps/aws-sdk/deploy/wrapper/main.tf +++ b/nodejs/sample-apps/aws-sdk/deploy/wrapper/main.tf @@ -14,6 +14,7 @@ module "app" { collector_layer_arn = null sdk_layer_arn = local.architecture_to_arns_mapping[var.architecture][data.aws_region.current.name] tracing_mode = "Active" + runtime = var.runtime architecture = var.architecture } diff --git a/nodejs/sample-apps/aws-sdk/deploy/wrapper/variables.tf b/nodejs/sample-apps/aws-sdk/deploy/wrapper/variables.tf index 99f903ff..33216b3c 100644 --- a/nodejs/sample-apps/aws-sdk/deploy/wrapper/variables.tf +++ b/nodejs/sample-apps/aws-sdk/deploy/wrapper/variables.tf @@ -9,3 +9,9 @@ variable "architecture" { description = "Lambda function architecture, either arm64 or x86_64" default = "x86_64" } + +variable "runtime" { + type = string + description = "NodeJS runtime version used for sample Lambda Function" + default = "nodejs18.x" +}