powertools-lambda-python icon indicating copy to clipboard operation
powertools-lambda-python copied to clipboard

Docs: Clarify warning around using `clear_state=True` with Logger() when using Powertools as a Lambda layer vs using other Lambda layers

Open ChrisHills463 opened this issue 1 year ago • 2 comments

What were you searching in the docs?

I was reading about Logger()

Is this related to an existing documentation section?

https://docs.powertools.aws.dev/lambda/python/latest/core/logger/#clearing-all-state

How can we improve?

The documentation contains a warning Danger: This can have unintended side effects if you use Layers however I believe this relates to using other layers as opposed to using the Powertools layer itself.

Got a suggestion in mind?

Something like...

Danger: This can have unintended side effects if you use Layers other than Powertools.

Acknowledgment

  • [X] I understand the final update might be different from my proposed suggestion, or refused.

ChrisHills463 avatar Jun 06 '24 07:06 ChrisHills463

Hi @ChrisHills463,

The docs are correct, it affects us – we should probably change the wording though here with what it actually affects.

sthulb avatar Jun 07 '24 11:06 sthulb

Assigning to release it this Thursday

heitorlessa avatar Jun 24 '24 08:06 heitorlessa

Hi @leandrodamascena, can you pick this up in the next iteration? Should be a quick one.

dreamorosi avatar Jan 24 '25 11:01 dreamorosi

Assigned to @anafalcao

leandrodamascena avatar Jan 29 '25 15:01 leandrodamascena

⚠️COMMENT VISIBILITY WARNING⚠️

This issue is now closed. Please be mindful that future comments are hard for our team to see.

If you need more assistance, please either tag a team member or open a new issue that references this one.

If you wish to keep having a conversation with other community members under this issue feel free to do so.

github-actions[bot] avatar Jan 31 '25 22:01 github-actions[bot]