0.2.0 • Published 3 years ago
arc-plugin-add-xray v0.2.0
arc-plugin-add-xray
AWS "X-Ray Tracing" for Lambdas deployed with Architect.
Usage
npm i -D arc-plugin-add-xray# ... in your app.arc
@plugins
arc-plugin-add-xray # enable "@xray"
@xray
environments staging production # defaults to only staging
http # add X-Ray to all @http functions
scheduled # can be any Lambda pragmaTo enable X-Ray Tracing in individual functions add xray true to a function's config.arc:
# ./src/events/foobar
@aws
xray trueℹ️ To enable X-Ray Tracing for ALL Lambda functions, do not set a pragma in
app.arc's@xrayor setxray truein aconfig.arc.environmentscan be still be set under@xrayinapp.arc.
Resources
X-Ray Pricing -- X-Ray Tracers beware: it's not free, but it is cheap.