![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
serverless-plugin-tracing
Advanced tools
Enables AWS X-Ray for entire Serverless stack or individual functions
Enables AWS X-Ray (https://aws.amazon.com/xray/) for the entire Serverless stack or individual functions.
Update: as of 2.0.0
, plugin uses Cloud Formation to update TracingConfig
and no longer
makes additional AWS SDK calls. No cange to YAML contract: stays same as in 1.x
Tested with serverless@1.22.0
.
Note: this plugin is currently Beta.
Note: 1.x was tested to work well with serverless@1.13.2
. Some older versions of serverless
may not work due to outdated Javascript SDK that
does not support TracingConfig
.
npm install --save-dev serverless-plugin-tracing
Example serverless.yml
:
service: my-great-service
provider:
name: aws
stage: test
tracing: true # enable tracing
iamRoleStatements:
- Effect: "Allow" # xray permissions (required)
Action:
- "xray:PutTraceSegments"
- "xray:PutTelemetryRecords"
Resource:
- "*"
plugins:
- serverless-plugin-tracing
functions:
mainFunction: # inherits tracing settings from "provider"
handler: src/app/index.handler
healthcheck:
tracing: false # overrides provider settings (opt out)
Output after serverless deploy
:
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:
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.
FAQs
Enables AWS X-Ray for entire Serverless stack or individual functions
We found that serverless-plugin-tracing demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.