Skip to content

Docs: wrong documentation for tracer manual mode #329

Closed
@flochaz

Description

@flochaz

Bug description

Using #326 global examples and especially https://github.com/awslabs/aws-lambda-powertools-typescript/blob/examples/cdk/examples/cdk/lib/example-stack.MyFunction.ts#L43

Subsegment does not seems to be created in xray:

Screenshot 2021-12-16 at 09 44 26

And inline doc is not correct (importing Segment and using Subsegment ... ):

Expected Behavior

To have a subsegment called MySubSegment showing up in xray.

Current Behavior

Just basic segment showing

Possible Solution

Steps to Reproduce

  1. branch example/cdk
  2. deploy example
  3. check xray

Environment

  • Powertools version used: 0.1.0-beta-9
  • Packaging format (Layers, npm): npm
  • AWS Lambda function runtime: NODEJS_14
  • Debugging logs: NA

Metadata

Metadata

Assignees

Labels

completedThis item is complete and has been merged/shippeddocumentationImprovements or additions to documentationnot-a-bugNew and existing bug reports incorrectly submitted as bugtracerThis item relates to the Tracer Utility

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions