Created
June 5, 2018 19:23
-
-
Save jpwilliams/1901cefdaff283ca3afcf5eb45375dbf to your computer and use it in GitHub Desktop.
Jaeger FOLLOWS_FROM Issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const opentracing = require('opentracing') | |
const { initTracer } = require('jaeger-client') | |
const tracer = initTracer({ | |
serviceName: 'test', | |
reporter: { | |
logSpans: true, | |
flushIntervalMs: 10 | |
} | |
}) | |
const spanA = tracer.startSpan('spanA', { | |
tags: {[opentracing.Tags.SAMPLING_PRIORITY]: 1} | |
}) | |
const spanB = tracer.startSpan('spanB', { | |
tags: {[opentracing.Tags.SAMPLING_PRIORITY]: 1}, | |
references: [opentracing.followsFrom(spanA.context())] | |
}) | |
spanA.finish() | |
spanB.finish() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"data": [ | |
{ | |
"traceID": "c8a6ee744774398c", | |
"spans": [ | |
{ | |
"traceID": "c8a6ee744774398c", | |
"spanID": "c8a6ee744774398c", | |
"flags": 3, | |
"operationName": "spanA", | |
"references": [], | |
"startTime": 1528226417451000, | |
"duration": 1000, | |
"tags": [], | |
"logs": [], | |
"processID": "p1", | |
"warnings": null | |
}, | |
{ | |
"traceID": "c8a6ee744774398c", | |
"spanID": "bc70e13373f73bf6", | |
"flags": 3, | |
"operationName": "spanB", | |
"references": [ | |
{ | |
"refType": "CHILD_OF", | |
"traceID": "c8a6ee744774398c", | |
"spanID": "c8a6ee744774398c" | |
}, | |
{ | |
"refType": "FOLLOWS_FROM", | |
"traceID": "c8a6ee744774398c", | |
"spanID": "c8a6ee744774398c" | |
} | |
], | |
"startTime": 1528226417452000, | |
"duration": 2000, | |
"tags": [], | |
"logs": [], | |
"processID": "p1", | |
"warnings": null | |
} | |
], | |
"processes": { | |
"p1": { | |
"serviceName": "test", | |
"tags": [ | |
{ | |
"key": "ip", | |
"type": "float64", | |
"value": -1062731434 | |
}, | |
{ | |
"key": "jaeger.hostname", | |
"type": "string", | |
"value": "jackwilarlaptop.home" | |
}, | |
{ | |
"key": "jaeger.version", | |
"type": "string", | |
"value": "Node-3.9.2dev0" | |
} | |
] | |
} | |
}, | |
"warnings": null | |
} | |
], | |
"total": 0, | |
"limit": 0, | |
"offset": 0, | |
"errors": null | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment