AWS "X-Ray Tracing" for Lambdas deployed with Architect.
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 pragma
To 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@xray
or setxray true
in aconfig.arc
.
environments
can be still be set under@xray
inapp.arc
.
X-Ray Pricing -- X-Ray Tracers beware: it's not free, but it is cheap.