rian 0.0.2-alpha.2 → 0.0.2-alpha.3
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/index.js +2 -2
- package/index.mjs +2 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -28,7 +28,7 @@ const create = (name, options) => {
|
|
|
28
28
|
const scope = (name, parent) => {
|
|
29
29
|
const me = parent ? parent.child() : tracecontext.make_traceparent();
|
|
30
30
|
const attributes = {};
|
|
31
|
-
const start =
|
|
31
|
+
const start = Date.now();
|
|
32
32
|
let ended = false;
|
|
33
33
|
const $ = {
|
|
34
34
|
get traceparent() {
|
|
@@ -51,7 +51,7 @@ const create = (name, options) => {
|
|
|
51
51
|
id: me,
|
|
52
52
|
parent,
|
|
53
53
|
start,
|
|
54
|
-
end:
|
|
54
|
+
end: Date.now(),
|
|
55
55
|
name,
|
|
56
56
|
attributes,
|
|
57
57
|
});
|
package/index.mjs
CHANGED
|
@@ -26,7 +26,7 @@ const create = (name, options) => {
|
|
|
26
26
|
const scope = (name, parent) => {
|
|
27
27
|
const me = parent ? parent.child() : make_traceparent();
|
|
28
28
|
const attributes = {};
|
|
29
|
-
const start =
|
|
29
|
+
const start = Date.now();
|
|
30
30
|
let ended = false;
|
|
31
31
|
const $ = {
|
|
32
32
|
get traceparent() {
|
|
@@ -49,7 +49,7 @@ const create = (name, options) => {
|
|
|
49
49
|
id: me,
|
|
50
50
|
parent,
|
|
51
51
|
start,
|
|
52
|
-
end:
|
|
52
|
+
end: Date.now(),
|
|
53
53
|
name,
|
|
54
54
|
attributes,
|
|
55
55
|
});
|