Skip to content

Commit

Permalink
fix: disable x-ray tracing in prod
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Shaw committed Jul 2, 2024
1 parent eccb58c commit 9bc5118
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions stacks/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ export function API ({ stack }) {
const privateKey = new Config.Secret(stack, 'PRIVATE_KEY')
const pkg = getApiPackageJson()
const git = getGitInfo()

stack.setDefaultFunctionProps({
memorySize: '1 GB',
runtime: 'nodejs18.x',
architecture: 'arm_64',
timeout: '15 minutes'
timeout: '15 minutes',
tracing: stack.stage === 'prod' ? 'disabled' : 'active'
})

const { claimsTable } = use(DB)
Expand Down

0 comments on commit 9bc5118

Please sign in to comment.