Closed
Description
Summary
As of now, Tracer Provider isn't fully typed and documented. We need to complete subsegment context manager typing, and any critical typing from X-Ray SDK that's worth bringing for a Tracing Provider.
Since these might change in the future due to OTel support, we should focus on key features only.
Why is this needed?
As of now, autocomplete isn't fully working for escape hatch features. We don't need to provide all types in X-Ray SDK, but main features that we also make use of, like subsegments and context manager.
from aws_lambda_powertools import Logger, Tracer
tracer.provider # should no longer be Any
Which area does this relate to?
Tracer
Solution
No response
Acknowledgment
- This request meets Lambda Powertools Tenets
- Should this be considered in other Lambda Powertools languages? i.e. Java, TypeScript