Comments (7)
Writing down my understanding from our discussion yesterday:
- We have tests where
Math.random
yields a spread (or entropy) that's too large (i.e. 50 to 150). We should find somerandom
that reduces the entropy, preferably to something like 90 to 110. This should not increase the bundle size significantly. - 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})
- No further details, as there's a full issue: #129
- 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.
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.
@bahrmichael your understanding is 100% correct.
@dreamorosi well spotted! I wasn't aware that separated packages formats exist.
from aws-lambda-powertools-typescript.
⚠️ 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.
Middy middleware implemented in #313
from aws-lambda-powertools-typescript.
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.
⚠️ 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)
- Bug: importing `Tracer` from powertools v2 causes `SyntaxError` HOT 5
- Bug: Logged errors do not include own properties. HOT 5
- Maintenance: add subpath exports to package.json HOT 1
- Maintenance: add JMESPath package to workspace HOT 1
- Docs: add JMESPath utility documentation HOT 2
- Feature request: add helper function to decode base64 encoded strings HOT 2
- Feature request: expand shared type utilities HOT 2
- Feature request: define grammar, errors, and types for JMESPath module HOT 2
- Docs: Describe removing `ContextExamples` in the migration doc HOT 3
- Feature request: support batching of AWS SDK calls with batch processor HOT 2
- Docs: typos in tracer docs HOT 1
- Maintenance: temporarily remove README from jsmespath typedoc HOT 1
- Feature request: add safeParse option HOT 3
- Feature request: JMESPath lexer HOT 1
- Feature request: JMESPath built-in functions HOT 2
- Feature request: JMESPath powertools functions HOT 2
- Feature request: JMESPath expression class and utilities HOT 2
- Feature request: JMESPath tree interpreter HOT 1
- Feature request: JMESPath abstract syntax tree (AST) HOT 2
- Feature request: JMESPath parser HOT 2
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-lambda-powertools-typescript.