arc-plugin-add-xray

0.2.0 • Public • Published

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 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 set xray true in a config.arc.
environments can be still be set under @xray in app.arc.

Resources

Lambda X-Ray Tracing Docs

X-Ray Pricing -- X-Ray Tracers beware: it's not free, but it is cheap.

Readme

Keywords

none

Package Sidebar

Install

npm i arc-plugin-add-xray

Weekly Downloads

0

Version

0.2.0

License

Apache-2.0

Unpacked Size

5.27 kB

Total Files

3

Last publish

Collaborators

  • tbeseda