Feature request: tracer feature improvements #275
Labels
completed
This item is complete and has been merged/shipped
feature-request
This item refers to a feature request for an existing or new utility
tracer
This item relates to the Tracer Utility
Milestone
Description of the feature request
Problem statement
While an initial implementation of the
Tracer
core 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
Tracer
annotates onlyColdStart = true
during the first invocation.Tracer
uses 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
The text was updated successfully, but these errors were encountered: