Comments (4)
Hi @jostendorf
The aws-xray-sdk-core package does require the aws-sdk to be present at runtime for the centralized sampling functionality to work, so we can't move it to be a dev dependency.
Are you generating a bundle for your app? #73 will address some of the size concerns by only importing the xray service instead of the entire SDK, though if you're pushing all of node_modules somewhere then you'll still see the entire SDK on disk.
from aws-xray-sdk-node.
I suggest putting the sdk in a lambda layer, so you can deploy once and forget it.
from aws-xray-sdk-node.
You don't need to put the aws-sdk in a lambda layer. You get it for free in the lambda container. I have figured out a way to remove this nested dependency using serverless-webpack. This issue can be closed.
Add this to the custom tag:
packagerOptions:
scripts:
- rm -rf node_modules/aws-sdk
from aws-xray-sdk-node.
This is definitely an issue. No reason for this to be here here:
@jostendorf what you posted is an ugly hack of a workaround, not a fix
from aws-xray-sdk-node.
Related Issues (20)
- Is http2 allowed to be passed to AWSXRay.captureHTTPsGlobal? HOT 3
- parent.addNewSubsegmentWithoutSampling is not a function HOT 2
- XRay doesn't work with axios HOT 2
- Request for Review: Adding node-fetch support to XRay HOT 2
- [ aws-xray-sdk-fastify] Typo of FastityLoggerInstance AND aws-sdk dependency absent HOT 1
- Linking CloudWatch logs to traces from ECS Fargate HOT 3
- Size of the aws-xray-sdk-core package dependencies (i.e. the bundle) HOT 1
- memory leaks caused by cls-hooked HOT 3
- Vulnerability in the library HOT 6
- Adding custom attributes to AWS SDK v3 calls HOT 2
- Please update readme for postgres
- captureAWSv3Client doesn't support SecretManager client HOT 3
- Add support for the lamda-api web framework
- captureAsyncFunc is not working for AWS Lambda with runtime nodejs 16 HOT 1
- Release 3.5.2 HOT 2
- Segment containing BigInt in metadata throws an error when serialized HOT 2
- Cannot find module 'aws-xray-sdk' in nodejs Lambda
- warning message @aws-sdk/service-error-classification is moved to @smithy/service-error-classification
- Support undici HOT 1
- Consider supporting SQL annotations for Athena calls. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-xray-sdk-node.