-
Notifications
You must be signed in to change notification settings - Fork 162
Closed
Labels
completedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippeddocumentationImprovements or additions to documentationImprovements or additions to documentationnot-a-bugNew and existing bug reports incorrectly submitted as bugNew and existing bug reports incorrectly submitted as bugtracerThis item relates to the Tracer UtilityThis item relates to the Tracer Utility
Milestone
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
Metadata
Metadata
Assignees
Labels
completedThis item is complete and has been merged/shippedThis item is complete and has been merged/shippeddocumentationImprovements or additions to documentationImprovements or additions to documentationnot-a-bugNew and existing bug reports incorrectly submitted as bugNew and existing bug reports incorrectly submitted as bugtracerThis item relates to the Tracer UtilityThis item relates to the Tracer Utility