Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

serverless-plugin-tracing

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

serverless-plugin-tracing - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

package.json
{
"name": "serverless-plugin-tracing",
"version": "1.0.0",
"version": "1.0.1",
"description": "Enables AWS X-Ray for entire Serverless stack or individual functions",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -13,5 +13,5 @@ # serverless-plugin-tracing

Example:
Example `serverless.yml`:
```yml
```yaml
service: my-great-service

@@ -43,4 +43,19 @@

```
Serverless: Tracing ENABLED for function "my-great-service-test-mainFunction"
Serverless: Tracing DISABLED for function "my-great-service-test-healthcheck"
Serverless: Tracing ENABLED for function
"my-great-service-test-mainFunction"
Serverless: Tracing DISABLED for function
"my-great-service-test-healthcheck"
```
**Important**: in addition to using the plugin, you need to enable capturing
traces in the code as well:
```javascript
const awsXRay = require('aws-xray-sdk');
const awsSdk = awsXRay.captureAWS(require('aws-sdk'));
```
The plugin only controls the checkbox that be viewed in AWS Console:
go to AWS Lambda -> select a Lambda function -> Configuration tab -> Advanced settings ->
"Enable active tracing". If `tracing` ends up being `true` for a function,
the checkbox will be checked for that function.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc