-
Notifications
You must be signed in to change notification settings - Fork 522
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix(serverless): Add "SENTRY_" prefix to env variables in serverless …
…init script + added traces_sample_rate (#1025) * Added SENTRY_ prefix to serverless env variables and added traces sample rate env variable * Linting reformat
- Loading branch information
1 parent
25125b5
commit 3be779a
Showing
2 changed files
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,8 +45,9 @@ def build_no_code_serverless_function_and_layer( | |
Timeout=timeout, | ||
Environment={ | ||
"Variables": { | ||
"INITIAL_HANDLER": "test_lambda.test_handler", | ||
"DSN": "https://[email protected]/123", | ||
"SENTRY_INITIAL_HANDLER": "test_lambda.test_handler", | ||
"SENTRY_DSN": "https://[email protected]/123", | ||
"SENTRY_TRACES_SAMPLE_RATE": "1.0", | ||
} | ||
}, | ||
Role=os.environ["SENTRY_PYTHON_TEST_AWS_IAM_ROLE"], | ||
|