Skip to content

Docs: Example of tracer.captureMethod() should demo in async instead of sync function #1203

Closed
@kennethwkz-mm

Description

@kennethwkz-mm

What were you searching in the docs?

About the tracer.captureMethod() example of correct usage, actually the method is not support non-promise function.

Is this related to an existing documentation section?

https://awslabs.github.io/aws-lambda-powertools-typescript/latest/core/tracer/#methods

How can we improve?

It should change the example with show @tracer.captureMethod() in async - promise function.

Got a suggestion in mind?

No response

Acknowledgment

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

Metadata

Metadata

Assignees

Labels

completedThis item is complete and has been merged/shippeddocumentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions