You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This will wrap an existing promise in a new promise that also creates a new subsegment in aws x-ray. It takes advantage of lambda already having an open trace to add a sub-segment to.
7
8
8
9
## Running locally
9
10
10
11
If you are running locally an not inside lambda, you will get a warning:
11
12
12
-
**WARNING: Skipping adding subsegment because we are not executing inside of aws lambda**
13
+
```text
14
+
WARNING: Skipping adding subsegment because we are not executing inside of aws lambda
15
+
```
13
16
14
-
This is because there is no open trace to add a segment to. However, this will allow you to test locally without errors occuring.
17
+
This is because there is no open trace to add a segment to. However, this will allow you to test locally without errors occurring.
15
18
16
19
## Usage
17
20
18
21
## Without a parent segment
22
+
23
+
You have two options available. For the simplest possible addition use:
0 commit comments