-
Notifications
You must be signed in to change notification settings - Fork 402
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
Papercuts we're currently prioritizing #857
Comments
Thanks a lot for raising this @whardier ! I was about to create a list of papercuts we'd like to address, these being two of them. The SubSegment typing is the most elaborate one, I need one full day to create and refactor a few things, including having an easy way to unit test your application with a Fake Tracer Provider. |
List of papercuts we're currently prioritizing based on their impact High impact
Medium impact
Low impact
Maintenance impactNon-customer facing but that needs to be addressed at some point
Completed
|
A thought: it took me a few moments and tries to get unit testing working for some features (e.g. #706). One suggestion might be a dedicated area of the docs for unit testing, instead of hunting down the solutions for each feature. |
Another one :) |
single_metric PR: |
yet another one that @heitorlessa found: |
Another one: Idempotency doesn't support serialization of data classes - both input (idempotency key) and return... it could be easily solved by inspecting if it's a dataclass, then using |
|
We could already fixes, but definitely fits into this theme: |
@heitorlessa see |
@heitorlessa - these 2 are ready to be reviewed and merged |
Sorry @heitorlessa a papercut fix caused another paper cut :P |
Some typos and code clean up for data classes: |
I'm locking this issue and will split them up into individual issues. We've accidentally got sidetracked in not tackling the actual top papercuts and started addressing new ones. |
Resolving in favour of #1009 so we can keep it clean |
Need to add proper ContextManager typing via typing.ContrxtManager in several places.
Currently overriding single_metric (-> ContextManager[SingleMetric]) and noticed several other areas where this needs done as well.
Also be nice if there was a proper DummySubSegment type returned for tracing provider.in_subsegment to avoid including types from aws modules to cast.
Expected Behavior
Have rich type annotations along for the ride when using context managers.
Current Behavior
Need to self annotate.
Possible Solution
Add in proper type annotation to some or all of the context manager decorated functions.
The text was updated successfully, but these errors were encountered: