
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
@dazn/lambda-powertools-pattern-basic
Advanced tools
Basic template that configures a 1% smaple rate for debug logs
A basic pattern that helps you follow our guidelines around logging and monitoring.
Main features:
configures Datadog metrics namespace using the function name if one is not specified already
configures Datadog default tags with awsRegion
, functionName
, functionVersion
and environment
applies the @dazn/lambda-powertools-middleware-correlation-ids
middleware at a default 1% sample rate
applies the @dazn/lambda-powertools-middleware-sample-logging
middleware at a default 1% sample rate
applies the @dazn/lambda-powertools-middleware-log-timeout
middleware at default 10ms threshold (i.e. log an error message 10ms before an invocation actually times out)
allow override for the default 1% sample rate via a SAMPLE_DEBUG_LOG_RATE
environment variable, to sample debug logs at 5% rate then set SAMPLE_DEBUG_LOG_RATE
to 0.05
Install from NPM: npm install @dazn/lambda-powertools-pattern-basic
const wrap = require('@dazn/lambda-powertools-pattern-basic')
module.exports.handler = wrap(async (event, context) => {
return 42
})
FAQs
Basic template that configures a 1% smaple rate for debug logs
We found that @dazn/lambda-powertools-pattern-basic demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.