Skip to content

Commit 8fac92a

Browse files
committed
Propagate trace_id and span_id to job-executor
1 parent aec5454 commit 8fac92a

File tree

3 files changed

+27
-5462
lines changed

3 files changed

+27
-5462
lines changed

examples/RemoteJobs/functions.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,11 @@ async function submitRemoteJob(ins, outs, context, cb) {
4949
throw error;
5050
}
5151

52+
var trace_id = span.spanContext().traceId
53+
var parent_id = span.spanContext().spanId
54+
5255
// "submit" job (start the handler process)
53-
var proc = spawn(cmd, ['../../../hyperflow-job-executor/jobexec.js', context.taskId, context.redis_url], {shell: true});
56+
var proc = spawn(cmd, ['../../../hyperflow-job-executor/jobexec.js', context.taskId, context.redis_url, parent_id, trace_id], {shell: true});
5457

5558
proc.stderr.on('data', function (data) {
5659
logger.debug(data.toString());

examples/RemoteJobs/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)