-
Notifications
You must be signed in to change notification settings - Fork 153
RFC: naming convention of core utilities #26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Option C and A packages/logging, packages/tracing, packages/metrics Logger, Tracer, Metrics These make it easier to import, same as Python, and easier on docs too ;) Suuuuper excited and looking forward to this |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
@alan-churley @dreamorosi what's your thought on this one? Feel free to leave a comment with your preference |
I like C and A as well. The package describes the action/service ( The problem with this is that currently the Python Powertools use |
Sorry I read A too quickly and didn't see Meter in it --- tbh, I wouldn't be too worried about having Tracer, Logger, and Metrics --- there are going to be other exceptions as other utilities get created |
Don't worry and agree with you about the exception. From a language point of view it makes sense for it to be different since contrary to logging and tracing it doesn't express a verb. Happy to hear and discuss other opinions tho. |
100%. After spending the last three hours fighting with a type checker,
this is a refreshing issue to read ;)
…On Fri, 16 Jul 2021 at 20:53, Andrea Amorosi ***@***.***> wrote:
Don't worry and agree with you about the exception. From a language point
of view it makes sense for it to be different since contrary to logging and
tracing it doesn't express a verb.
Happy to hear and discuss other opinions tho.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#26 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAZPQBDB4GFSMGUXQ6OEKJ3TYB5ZFANCNFSM42Q2IFWA>
.
|
Without reading the previous comments, I'm in favor of Option C. I was initially for A, but "meter" sounds less clear to me than "metrics". Also "inch" vs. "meter" jokes. Not inclined for Option B, as those sound more like collections of utilities. I understand this to be more of a one class, that helps me do a bunch of things, rather than many functions (per package) that I can pick for various use cases. Input from my team:
After reading the comments above, I'm leaning towards a mix and match to whatever our customers are already used to. I'd prefer little cognitive complexity when switching back and forth between languages and their Lambda powertools. Summary: Inclined towards making it easy for customers by staying consistent with other powertools libraries. |
Personal preference is packages/logger, packages/tracer, packages/metrics Semantics should come second to usability here IMO, and the added perk of being consistent with Python powertools |
|
Description of the proposal
We need to come to an agreement about the naming convention of the core utilities, to keep them consistent within the wider TypeScript tools.
Name of the core utility (and consequently the folders that contain the libraries):
packages/logger
,packages/tracer
,packages/meter
OR
packages/logs
,packages/traces
,packages/metrics
OR
packages/logging
,packages/tracing
,packages/metrics
(?)Name of
Class
that is used in the code to call the library:const logger = new Logger();
,const tracer = new Tracer();
,const meter = new Meter();
OR
const logs = new Logs();
,const traces = new Traces();
,const metrics = new Metrics();
OR
const logging = new Logging();
,const tracing = new Tracing();
,const metrics = new Metrics();
(?)Related issues, RFCs
TODO: this needs to be created/moved in the official RFC repo: https://github.com/awslabs/aws-lambda-powertools-rfcs.
Adding this issue here for visibility and to open the conversation.
The text was updated successfully, but these errors were encountered: