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

serverless-plugin-tracing

Package Overview
Dependencies
Maintainers
2
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.3 to 1.0.4

8

index.js

@@ -17,8 +17,8 @@ 'use strict';

const providerLevelTracingEnabled = (service.provider.tracing === true);
Object.keys(service.functions).forEach(functionName => {
this.toggleTracing(`${service.service}-${stage}-${functionName}`,
return Promise.all(Object.keys(service.functions).map(functionName => {
return this.toggleTracing(`${service.service}-${stage}-${functionName}`,
(service.functions[functionName].tracing === true)
|| (providerLevelTracingEnabled && service.functions[functionName].tracing !== false)
);
});
}));
}

@@ -28,3 +28,3 @@

this.serverless.cli.log(`Tracing ${isEnabled ? 'ENABLED' : 'DISABLED'} for function "${functionName}"`);
this.aws.request('Lambda', 'updateFunctionConfiguration', {
return this.aws.request('Lambda', 'updateFunctionConfiguration', {
FunctionName: functionName,

@@ -31,0 +31,0 @@ TracingConfig: {

{
"name": "serverless-plugin-tracing",
"version": "1.0.3",
"version": "1.0.4",
"description": "Enables AWS X-Ray for entire Serverless stack or individual functions",

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

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