Skip to content

Commit 36d4e3c

Browse files
authored
fix: Set aws api call xray subsegment namespace to aws (#90)
1 parent 09f98ed commit 36d4e3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plugins/utils/http-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export const createXRaySubsegment = (
114114
start_time: startTime,
115115
end_time: undefined,
116116
in_progress: false,
117-
namespace: 'remote'
117+
namespace: name.endsWith('amazonaws.com') ? 'aws' : 'remote'
118118
};
119119
if (http) {
120120
subsegment.http = http;

0 commit comments

Comments
 (0)