Giter VIP home page Giter VIP logo

Comments (7)

bahrmichael avatar bahrmichael commented on September 26, 2024

Writing down my understanding from our discussion yesterday:

  1. We have tests where Math.random yields a spread (or entropy) that's too large (i.e. 50 to 150). We should find some random that reduces the entropy, preferably to something like 90 to 110. This should not increase the bundle size significantly.
  2. Decorators only work for classes, but many people use functional programming with TypeScript, and as far as I understand we can't decorate functions (which are not part of classes). Therefore we want to investigate if we can add logging/tracing/metrics via middy middleware. Example pseudo code below:
app
    .use(cors())
    .use(tracing()
    .use(metrics({coldStarts: true})
  1. No further details, as there's a full issue: #129
  2. Lodash was used because it was easy to get started. It's a big library though, so we'd like to replace it with something simpler and smaller.

from aws-lambda-powertools-typescript.

dreamorosi avatar dreamorosi commented on September 26, 2024

Regarding number 4, a quick win until we have our own implementation could be to switch to lodash.merge and lodash.clonedeep instead of importing the full package.

Just for context, these two are the functions that I saw are used in the Logger and that are exported as separate packages.

from aws-lambda-powertools-typescript.

saragerion avatar saragerion commented on September 26, 2024

@bahrmichael your understanding is 100% correct.

@dreamorosi well spotted! I wasn't aware that separated packages formats exist.

from aws-lambda-powertools-typescript.

github-actions avatar github-actions commented on September 26, 2024

⚠️ COMMENT VISIBILITY WARNING ⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

from aws-lambda-powertools-typescript.

dreamorosi avatar dreamorosi commented on September 26, 2024

Middy middleware implemented in #313

from aws-lambda-powertools-typescript.

saragerion avatar saragerion commented on September 26, 2024

2, 4 have been addressed.

1 won't be part of the GA milestone and 3 has its own issue.

from aws-lambda-powertools-typescript.

github-actions avatar github-actions commented on September 26, 2024

⚠️ COMMENT VISIBILITY WARNING ⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please either tag a team member or open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

from aws-lambda-powertools-typescript.

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.