rian 0.4.0-beta.2 → 0.4.0-beta.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/async.js CHANGED
@@ -10,7 +10,7 @@ function configure(name, attributes = {}) {
10
10
  ...attributes,
11
11
  ["service.name"]: name,
12
12
  ["telemetry.sdk.name"]: "rian",
13
- ["telemetry.sdk.version"]: "0.4.0-beta.2"
13
+ ["telemetry.sdk.version"]: "0.4.0-beta.3"
14
14
  };
15
15
  }
16
16
  var span_buffer = /* @__PURE__ */ new Set(), wait_promises = /* @__PURE__ */ new WeakMap();
package/async.mjs CHANGED
@@ -10,7 +10,7 @@ function configure(name, attributes = {}) {
10
10
  ...attributes,
11
11
  ["service.name"]: name,
12
12
  ["telemetry.sdk.name"]: "rian",
13
- ["telemetry.sdk.version"]: "0.4.0-beta.2"
13
+ ["telemetry.sdk.version"]: "0.4.0-beta.3"
14
14
  };
15
15
  }
16
16
  var span_buffer = /* @__PURE__ */ new Set(), wait_promises = /* @__PURE__ */ new WeakMap();
package/index.d.ts CHANGED
@@ -27,7 +27,7 @@ export type Options = {
27
27
  /**
28
28
  * @borrows {@link Sampler}
29
29
  */
30
- sampler?: typeof Sampler | boolean;
30
+ sampler?: Sampler | boolean;
31
31
 
32
32
  clock?: ClockLike;
33
33
  };
@@ -47,7 +47,7 @@ export type Context = {
47
47
  * Return true if the span should be sampled, and reported to the {@link Exporter}.
48
48
  * Return false if the span should not be sampled, and not reported to the {@link Exporter}.
49
49
  */
50
- export function Sampler(
50
+ export type Sampler = (
51
51
  /**
52
52
  * The id of the new span looking for a sampling decision.
53
53
  */
@@ -64,7 +64,7 @@ export function Sampler(
64
64
  * The tracer this span belongs to.
65
65
  */
66
66
  tracer: { readonly name: string },
67
- ): boolean;
67
+ ) => boolean;
68
68
 
69
69
  // --- spans
70
70
 
package/index.js CHANGED
@@ -8,7 +8,7 @@ function configure(name, attributes = {}) {
8
8
  ...attributes,
9
9
  ["service.name"]: name,
10
10
  ["telemetry.sdk.name"]: "rian",
11
- ["telemetry.sdk.version"]: "0.4.0-beta.2"
11
+ ["telemetry.sdk.version"]: "0.4.0-beta.3"
12
12
  };
13
13
  }
14
14
  var span_buffer = /* @__PURE__ */ new Set(), wait_promises = /* @__PURE__ */ new WeakMap();
package/index.mjs CHANGED
@@ -8,7 +8,7 @@ function configure(name, attributes = {}) {
8
8
  ...attributes,
9
9
  ["service.name"]: name,
10
10
  ["telemetry.sdk.name"]: "rian",
11
- ["telemetry.sdk.version"]: "0.4.0-beta.2"
11
+ ["telemetry.sdk.version"]: "0.4.0-beta.3"
12
12
  };
13
13
  }
14
14
  var span_buffer = /* @__PURE__ */ new Set(), wait_promises = /* @__PURE__ */ new WeakMap();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rian",
3
- "version": "0.4.0-beta.2",
3
+ "version": "0.4.0-beta.3",
4
4
  "description": "Effective tracing for the edge and origins",
5
5
  "keywords": [
6
6
  "opentelemetry",