Closed
Description
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:
And inline doc is not correct (importing Segment and using Subsegment ... ):
- https://github.com/awslabs/aws-lambda-powertools-typescript/blob/main/packages/tracing/src/Tracer.ts#L59
- https://github.com/awslabs/aws-lambda-powertools-typescript/blob/main/packages/tracing/src/Tracer.ts#L65
Expected Behavior
To have a subsegment called MySubSegment
showing up in xray.
Current Behavior
Just basic segment showing
Possible Solution
Steps to Reproduce
- branch example/cdk
- deploy example
- 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