Code Monkey home page Code Monkey logo

Comments (4)

chrisradek avatar chrisradek commented on June 18, 2024

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.

jafl avatar jafl commented on June 18, 2024

I suggest putting the sdk in a lambda layer, so you can deploy once and forget it.

from aws-xray-sdk-node.

jostendorf avatar jostendorf commented on June 18, 2024

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.

onionhammer avatar onionhammer commented on June 18, 2024

This is definitely an issue. No reason for this to be here here:

image

@jostendorf what you posted is an ugly hack of a workaround, not a fix

from aws-xray-sdk-node.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.