Skip to content

Commit 867005d

Browse files
feat(LLMO-1023): integrate logWrapper for trace ID logging
- Add logWrapper to imports from spacecat-shared-utils - Add logWrapper to wrapper chain after enrichPathInfo - Bump @adobe/spacecat-shared-utils to ^1.76.0 - Logs will now automatically include AWS X-Ray trace IDs and HTTP x-trace-id headers Related: adobe/spacecat-shared#1154
1 parent a572480 commit 867005d

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
"@adobe/spacecat-shared-slack-client": "1.5.29",
8484
"@adobe/spacecat-shared-tier-client": "1.2.3",
8585
"@adobe/spacecat-shared-tokowaka-client": "1.0.3",
86-
"@adobe/spacecat-shared-utils": "1.72.1",
86+
"@adobe/spacecat-shared-utils": "^1.76.0",
8787
"@aws-sdk/client-s3": "3.930.0",
8888
"@aws-sdk/client-sfn": "3.930.0",
8989
"@aws-sdk/client-sqs": "3.930.0",

src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ import {
3232
elevatedSlackClientWrapper,
3333
SLACK_TARGETS,
3434
} from '@adobe/spacecat-shared-slack-client';
35-
import { hasText, resolveSecretsName } from '@adobe/spacecat-shared-utils';
35+
import { hasText, logWrapper, resolveSecretsName } from '@adobe/spacecat-shared-utils';
3636

3737
import sqs from './support/sqs.js';
3838
import getRouteHandlers from './routes/index.js';
@@ -214,6 +214,7 @@ export const main = wrap(run)
214214
.with(bodyData)
215215
.with(multipartFormData)
216216
.with(enrichPathInfo)
217+
.with(logWrapper)
217218
.with(sqs)
218219
.with(s3ClientWrapper)
219220
.with(imsClientWrapper)

0 commit comments

Comments
 (0)