-
Notifications
You must be signed in to change notification settings - Fork 191
Feature request: tracer feature improvements #275
Copy link
Copy link
Closed
Labels
completedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippedfeature-requestThis item refers to a feature request for an existing or new utilityThis item refers to a feature request for an existing or new utilitytracerThis item relates to the Tracer UtilityThis item relates to the Tracer Utility
Milestone
Metadata
Metadata
Assignees
Labels
completedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippedfeature-requestThis item refers to a feature request for an existing or new utilityThis item refers to a feature request for an existing or new utilitytracerThis item relates to the Tracer UtilityThis item relates to the Tracer Utility
Description of the feature request
Problem statement
While an initial implementation of the
Tracercore package has been done there are a handful of features that are missing when compared with the Python version. Some of these features were implemented recently while others, due to the language difference, need to be implemented differently and for this reason where left out in the initial implementation.Summary of the feature
Tracerannotates onlyColdStart = trueduring the first invocation.Traceruses the service name only as default namespace when adding metadata to traces.Tracer(supports this) only via explicit opt-in using the escape hatch mechanism.Reusing tracer across your code (Python version implements Singleton pattern). At the moment everynew Tracer()returns a completely new instance, JS/TS could implement it like so.⬆️ We are opting to not introduce this feature in order to not force this pattern on every customer. See this comment.
Code examples
N/A
Benefits for you and the wider AWS community
Same behaviour as other Powertools libraries & better DX
Describe alternatives you've considered
N/A
Additional context
Related issues, RFCs