@ynhcj/xiaoyi-channel 0.0.95-beta → 0.0.96-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/provider.js +4 -2
- package/package.json +1 -1
package/dist/src/provider.js
CHANGED
|
@@ -289,8 +289,10 @@ export const xiaoyiProvider = {
|
|
|
289
289
|
const traceId = ctx.extraParams[HEADER_TRACE_ID];
|
|
290
290
|
const sessionId = ctx.extraParams[HEADER_SESSION_ID];
|
|
291
291
|
const interactionId = ctx.extraParams[HEADER_INTERACTION_ID];
|
|
292
|
-
if (typeof traceId === "string")
|
|
293
|
-
|
|
292
|
+
if (typeof traceId === "string") {
|
|
293
|
+
const isCron = isCronTriggered(context.messages);
|
|
294
|
+
dynamicHeaders[HEADER_TRACE_ID] = isCron ? `cron_${traceId}` : traceId;
|
|
295
|
+
}
|
|
294
296
|
if (typeof sessionId === "string")
|
|
295
297
|
dynamicHeaders[HEADER_SESSION_ID] = sessionId;
|
|
296
298
|
if (typeof interactionId === "string")
|