rian 0.0.2-alpha.2 → 0.0.2-alpha.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.js +2 -2
  2. package/index.mjs +2 -2
  3. 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 = performance.now();
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: performance.now(),
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 = performance.now();
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: performance.now(),
52
+ end: Date.now(),
53
53
  name,
54
54
  attributes,
55
55
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rian",
3
- "version": "0.0.2-alpha.2",
3
+ "version": "0.0.2-alpha.3",
4
4
  "description": "A tracer for the edge",
5
5
  "keywords": [
6
6
  "TODO"