Closed
Description
Description of the feature request
This feature request is to expose some of the currently private APIs to annotate cold start, add error as metadata, and so on.
Problem statement
At the moment instrumenting tracing for a function manually is a bit clunky and requires reverse-engineering the decorator/middleware implementations.
Summary of the feature
- Public method
tracer.annotateColdStart()
- Public method
tracer.addErrorAsMetadata()
- Public method
tracer.addResponseAsMetadata()
Code examples
N/A
Benefits for you and the wider AWS community
Better DX
Describe alternatives you've considered
N/A
Additional context
N/A
Related issues, RFCs
N/A