autotel-skybridge 0.1.6 → 0.1.7
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/dist/index.cjs +1 -1
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -46,7 +46,7 @@ function skybridgeTracing(config) {
|
|
|
46
46
|
return (0, autotel_mcp_instrumentation.traceMcpHandler)(async () => {
|
|
47
47
|
const result = await next();
|
|
48
48
|
const error = TOOL_ERROR in extra ? extra[TOOL_ERROR] : void 0;
|
|
49
|
-
if (error !== void 0 && config?.captureErrors !== false) autotel.ctx.recordError(error);
|
|
49
|
+
if (error !== void 0 && config?.captureErrors !== false) autotel.ctx.recordError((0, autotel_mcp_instrumentation.recordableError)(config ?? {}, error, name));
|
|
50
50
|
return result;
|
|
51
51
|
}, {
|
|
52
52
|
type,
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ctx } from "autotel";
|
|
2
|
-
import { traceMcpHandler } from "autotel-mcp-instrumentation";
|
|
2
|
+
import { recordableError, traceMcpHandler } from "autotel-mcp-instrumentation";
|
|
3
3
|
//#region src/index.ts
|
|
4
4
|
/**
|
|
5
5
|
* autotel-skybridge - OpenTelemetry for Skybridge MCP Apps
|
|
@@ -45,7 +45,7 @@ function skybridgeTracing(config) {
|
|
|
45
45
|
return traceMcpHandler(async () => {
|
|
46
46
|
const result = await next();
|
|
47
47
|
const error = TOOL_ERROR in extra ? extra[TOOL_ERROR] : void 0;
|
|
48
|
-
if (error !== void 0 && config?.captureErrors !== false) ctx.recordError(error);
|
|
48
|
+
if (error !== void 0 && config?.captureErrors !== false) ctx.recordError(recordableError(config ?? {}, error, name));
|
|
49
49
|
return result;
|
|
50
50
|
}, {
|
|
51
51
|
type,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "autotel-skybridge",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"description": "OpenTelemetry for Skybridge MCP Apps, powered by autotel",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
],
|
|
33
33
|
"author": "Jag Reehal <jag@jagreehal.com> (https://jagreehal.com)",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"autotel-mcp-instrumentation": "
|
|
35
|
+
"autotel-mcp-instrumentation": "61.0.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"autotel": "*",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@opentelemetry/core": "^3.1.0",
|
|
46
46
|
"@opentelemetry/sdk-trace": "^3.1.0",
|
|
47
47
|
"@types/node": "^26.6.5",
|
|
48
|
-
"autotel": "9.
|
|
48
|
+
"autotel": "9.5.2",
|
|
49
49
|
"skybridge": "^2.0.4",
|
|
50
50
|
"tsdown": "^0.23.1",
|
|
51
51
|
"typescript": "^7.0.2",
|