1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var Constants = require("./constants");
|
4 | var reference_1 = require("./reference");
|
5 | var span_1 = require("./span");
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 | function childOf(spanContext) {
|
14 |
|
15 | if (spanContext instanceof span_1.default) {
|
16 | spanContext = spanContext.context();
|
17 | }
|
18 | return new reference_1.default(Constants.REFERENCE_CHILD_OF, spanContext);
|
19 | }
|
20 | exports.childOf = childOf;
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 | function followsFrom(spanContext) {
|
29 |
|
30 | if (spanContext instanceof span_1.default) {
|
31 | spanContext = spanContext.context();
|
32 | }
|
33 | return new reference_1.default(Constants.REFERENCE_FOLLOWS_FROM, spanContext);
|
34 | }
|
35 | exports.followsFrom = followsFrom;
|
36 |
|
\ | No newline at end of file |