Skip to content

Commit

Permalink
Add required envs for lambda extensions in TF examples (#81)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kavinraja-G authored Dec 3, 2021
1 parent 0320998 commit 5f308ca
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/terraform/nodejs/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ resource "aws_lambda_function" "newrelic_terraform_example_nodejs_function" {
# For the instrumentation handler to invoke your real handler, we need this value
NEW_RELIC_LAMBDA_HANDLER = var.lambda_function_handler
NEW_RELIC_ACCOUNT_ID = var.newrelic_account_id
# Enable NR Lambda extension if the telemetry data are ingested via lambda extension
NEW_RELIC_LAMBDA_EXTENSION_ENABLED = true
# Enable Distributed tracing for in-depth monitoring of transactions in lambda (Optional)
NEW_RELIC_DISTRIBUTED_TRACING_ENABLED = true
}
}
# This layer includes the New Relic Lambda Extension, a sidecar process that sends telemetry,
Expand Down
4 changes: 4 additions & 0 deletions examples/terraform/python/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ resource "aws_lambda_function" "newrelic_terraform_example_python_function" {
# For the instrumentation handler to invoke your real handler, we need this value
NEW_RELIC_LAMBDA_HANDLER = var.lambda_function_handler
NEW_RELIC_ACCOUNT_ID = var.newrelic_account_id
# Enable NR Lambda extension if the telemetry data are ingested via lambda extension
NEW_RELIC_LAMBDA_EXTENSION_ENABLED = true
# Enable Distributed tracing for in-depth monitoring of transactions in lambda (Optional)
NEW_RELIC_DISTRIBUTED_TRACING_ENABLED = true
}
}
# This layer includes the New Relic Lambda Extension, a sidecar process that sends telemetry,
Expand Down

0 comments on commit 5f308ca

Please sign in to comment.