@uselemma/tracing 1.2.0 → 2.0.0

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.
@@ -21,9 +21,9 @@ export type TraceContext = {
21
21
  * state on the span.
22
22
  *
23
23
  * @example
24
- * const myAgent = wrapAgent(
24
+ * const myAgent = wrapAgent<{ topic: string }>(
25
25
  * 'my-agent',
26
- * async (ctx, input: { topic: string }) => {
26
+ * async (ctx, input) => {
27
27
  * // use ctx.span, ctx.runId, ctx.onComplete, etc.
28
28
  * const result = await doWork(input.topic);
29
29
  * ctx.onComplete(result);
@@ -13,9 +13,9 @@ const uuid_1 = require("uuid");
13
13
  * state on the span.
14
14
  *
15
15
  * @example
16
- * const myAgent = wrapAgent(
16
+ * const myAgent = wrapAgent<{ topic: string }>(
17
17
  * 'my-agent',
18
- * async (ctx, input: { topic: string }) => {
18
+ * async (ctx, input) => {
19
19
  * // use ctx.span, ctx.runId, ctx.onComplete, etc.
20
20
  * const result = await doWork(input.topic);
21
21
  * ctx.onComplete(result);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uselemma/tracing",
3
- "version": "1.2.0",
3
+ "version": "2.0.0",
4
4
  "description": "OpenTelemetry-based tracing module for Lemma",
5
5
  "license": "MIT",
6
6
  "author": "Lemma",