Skip to content

Maintenance: Complete Tracer BaseProvider on subsegment and context manager #1375

Closed
@heitorlessa

Description

@heitorlessa

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech-debtTechnical Debt tasks

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions