@webmcp-agents/telemetry 0.5.0 → 0.6.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.
@@ -1,5 +1,5 @@
1
1
  import { A as SCOPE_NAME, C as ATTR_USAGE_INPUT_TOKENS, D as EVENT_PARK, M as SPAN_CHAT, N as SPAN_EXECUTE_TOOL, O as EVENT_RESUME, P as SPAN_INVOKE_AGENT, S as ATTR_TOOL_WAITED_MS, _ as ATTR_TOOL_CALL_RESULT, a as ATTR_ERROR_TYPE, b as ATTR_TOOL_NAME, c as ATTR_PARENT_CALL_ID, d as ATTR_RUN_REASON, f as ATTR_RUN_STEPS, g as ATTR_TOOL_CALL_ID, h as ATTR_TOOL_CALL_ARGUMENTS, i as ATTR_CUSTOM, k as EVENT_YIELD, l as ATTR_REQUEST_MODEL, m as ATTR_STEP, n as ATTR_AGENT_ID, o as ATTR_OPERATION_NAME, r as ATTR_CONVERSATION_ID, s as ATTR_PAGE, t as ATTR_ADAPTER, u as ATTR_RUN_ID, v as ATTR_TOOL_CONFIRM, w as ATTR_USAGE_OUTPUT_TOKENS, x as ATTR_TOOL_STATE, y as ATTR_TOOL_ERROR_CODE } from "./semconv-74esS-9v.js";
2
- import { a as failure, c as parseTraceparent, f as withMappedKeys, i as cleanAttributes, l as randomHex, n as appAttributes, o as isSampled, s as keyValues, t as VERSION, u as registeredGlobalTrace } from "./util-4und6m9s.js";
2
+ import { a as failure, c as parseTraceparent, f as withMappedKeys, i as cleanAttributes, l as randomHex, n as appAttributes, o as isSampled, s as keyValues, t as VERSION, u as registeredGlobalTrace } from "./util-5Bj-Z8Ym.js";
3
3
  import { createRedactor, getRedactor } from "@webmcp-agents/core/redact";
4
4
  // src/browser/exporters.ts
5
5
  /**
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as recordAgentEvent, r as withAgentSpan, t as observeAgents } from "./observe-Bei_BEpM.js";
1
+ import { n as recordAgentEvent, r as withAgentSpan, t as observeAgents } from "./observe-BTuF-PfR.js";
2
2
  import { A as SCOPE_NAME, C as ATTR_USAGE_INPUT_TOKENS, D as EVENT_PARK, E as DEFAULT_AGENT_NAME, M as SPAN_CHAT, N as SPAN_EXECUTE_TOOL, O as EVENT_RESUME, P as SPAN_INVOKE_AGENT, S as ATTR_TOOL_WAITED_MS, T as ATTR_WEBMCP_AGENT_ID, _ as ATTR_TOOL_CALL_RESULT, a as ATTR_ERROR_TYPE, b as ATTR_TOOL_NAME, c as ATTR_PARENT_CALL_ID, d as ATTR_RUN_REASON, f as ATTR_RUN_STEPS, g as ATTR_TOOL_CALL_ID, h as ATTR_TOOL_CALL_ARGUMENTS, i as ATTR_CUSTOM, j as SCOPE_NAME_LEGACY, k as EVENT_YIELD, l as ATTR_REQUEST_MODEL, m as ATTR_STEP, n as ATTR_AGENT_ID, o as ATTR_OPERATION_NAME, p as ATTR_SESSION_ID, r as ATTR_CONVERSATION_ID, s as ATTR_PAGE, t as ATTR_ADAPTER, u as ATTR_RUN_ID, v as ATTR_TOOL_CONFIRM, w as ATTR_USAGE_OUTPUT_TOKENS, x as ATTR_TOOL_STATE, y as ATTR_TOOL_ERROR_CODE } from "./semconv-74esS-9v.js";
3
3
  // src/browser/console.ts
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { c as parseTraceparent, o as isSampled, r as around } from "./util-4und6m9s.js";
1
+ import { c as parseTraceparent, o as isSampled, r as around } from "./util-5Bj-Z8Ym.js";
2
2
  import { onAgentRun } from "@webmcp-agents/chat";
3
3
  import { onAgentEvent } from "@webmcp-agents/core";
4
4
  // src/browser/custom.ts
@@ -114,7 +114,7 @@ function observeAgents(options = {}) {
114
114
  if (!loading && !start) return;
115
115
  if (custom && ++customs > MAX_QUEUED_CUSTOM) return;
116
116
  queue.push(op);
117
- loading ??= import("./engine-K_Cwwt9r.js").then((m) => engine = m.createEngine(options) ?? null, () => engine = null).then(() => {
117
+ loading ??= import("./engine-BLhKZ5vF.js").then((m) => engine = m.createEngine(options) ?? null, () => engine = null).then(() => {
118
118
  for (const q of queue.splice(0)) if (engine) q(engine);
119
119
  });
120
120
  };
package/dist/react.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as observeAgents } from "./observe-Bei_BEpM.js";
1
+ import { t as observeAgents } from "./observe-BTuF-PfR.js";
2
2
  import { useEffect, useRef } from "react";
3
3
  // src/react.tsx
4
4
  /**
package/dist/server.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as failure, c as parseTraceparent, d as traceparentSampled, f as withMappedKeys, i as cleanAttributes, n as appAttributes, o as isSampled, r as around, s as keyValues, t as VERSION, u as registeredGlobalTrace } from "./util-4und6m9s.js";
1
+ import { a as failure, c as parseTraceparent, d as traceparentSampled, f as withMappedKeys, i as cleanAttributes, n as appAttributes, o as isSampled, r as around, s as keyValues, t as VERSION, u as registeredGlobalTrace } from "./util-5Bj-Z8Ym.js";
2
2
  import { A as SCOPE_NAME, C as ATTR_USAGE_INPUT_TOKENS, D as EVENT_PARK, E as DEFAULT_AGENT_NAME, M as SPAN_CHAT, N as SPAN_EXECUTE_TOOL, O as EVENT_RESUME, P as SPAN_INVOKE_AGENT, S as ATTR_TOOL_WAITED_MS, T as ATTR_WEBMCP_AGENT_ID, _ as ATTR_TOOL_CALL_RESULT, a as ATTR_ERROR_TYPE, b as ATTR_TOOL_NAME, c as ATTR_PARENT_CALL_ID, d as ATTR_RUN_REASON, f as ATTR_RUN_STEPS, g as ATTR_TOOL_CALL_ID, h as ATTR_TOOL_CALL_ARGUMENTS, i as ATTR_CUSTOM, j as SCOPE_NAME_LEGACY, k as EVENT_YIELD, l as ATTR_REQUEST_MODEL, m as ATTR_STEP, n as ATTR_AGENT_ID, o as ATTR_OPERATION_NAME, p as ATTR_SESSION_ID, r as ATTR_CONVERSATION_ID, s as ATTR_PAGE, t as ATTR_ADAPTER, u as ATTR_RUN_ID, v as ATTR_TOOL_CONFIRM, w as ATTR_USAGE_OUTPUT_TOKENS, x as ATTR_TOOL_STATE, y as ATTR_TOOL_ERROR_CODE } from "./semconv-74esS-9v.js";
3
3
  import { isCrossSite, validTraceparent } from "@webmcp-agents/chat/server";
4
4
  import { createRedactor, getRedactor } from "@webmcp-agents/core/redact";
@@ -1,6 +1,6 @@
1
1
  // src/shared/util.ts
2
2
  /** This package's version, on every span's instrumentation scope. Read from package.json, so a release bump keeps it true. */
3
- const VERSION = "0.5.0";
3
+ const VERSION = "0.6.0";
4
4
  const anyValue = (v) => typeof v === "string" ? { stringValue: v } : typeof v === "boolean" ? { boolValue: v } : typeof v === "number" ? Number.isInteger(v) ? { intValue: v } : { doubleValue: v } : { arrayValue: { values: v.map(anyValue) } };
5
5
  /** OTLP JSON `KeyValue`s from attributes (values that are not attribute values are left out). */
6
6
  const keyValues = (attributes = {}) => Object.entries(attributes).filter(([, v]) => isAttributeValue(v)).map(([key, v]) => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webmcp-agents/telemetry",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "description": "Send WebMCP agent runs to any OpenTelemetry backend: model steps from the chat handler, runs and tool calls from the browser through a relay, with standard OTEL_* env, no vendor code and redaction on by default.",
6
6
  "license": "MIT",
@@ -56,8 +56,8 @@
56
56
  }
57
57
  },
58
58
  "dependencies": {
59
- "@webmcp-agents/chat": "^0.5.0",
60
- "@webmcp-agents/core": "^0.5.0"
59
+ "@webmcp-agents/chat": "^0.6.0",
60
+ "@webmcp-agents/core": "^0.6.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@ai-sdk/otel": "1.0.163",
@@ -75,7 +75,7 @@
75
75
  "tsdown": "^0.23.7",
76
76
  "vite": "^8.3.6",
77
77
  "vitest-browser-react": "^2.3.0",
78
- "@webmcp-agents/devtools": "^0.5.0"
78
+ "@webmcp-agents/devtools": "^0.6.0"
79
79
  },
80
80
  "repository": {
81
81
  "type": "git",