@unhandled/instrumentation-mastra 1.0.9 → 1.0.11

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.
Files changed (2) hide show
  1. package/README.md +11 -0
  2. package/package.json +4 -4
package/README.md CHANGED
@@ -77,3 +77,14 @@ Model metadata (request and response model, provider and, with `recordOutputs`,
77
77
  ## Evaluations
78
78
 
79
79
  Span events named `gen_ai.evaluation.result` are recognised. `extractEvaluations(span)` returns `{ name, scoreValue, scoreLabel, explanation, scorerId, scorerVersion, targetTraceId }` per event, read from `gen_ai.evaluation.name`, `.score.value`, `.score.label`, `.explanation`, `.scorer.id`, `.scorer.version` and `.target.trace_id`. A numeric string score is exported as a number.
80
+
81
+ ## For AI agents
82
+
83
+ A coding agent can install this package, check that its data arrives and fix the errors it reports through the Unhandled MCP server at `https://unhandled.net/mcp/x/debug`. In Claude Code, the Unhandled plugin adds that server plus skills for instrumenting a service, fixing a production error with a failing test first and verifying a deploy:
84
+
85
+ ```bash
86
+ claude plugin marketplace add treboryx/unhandled
87
+ claude plugin install unhandled@unhandled
88
+ ```
89
+
90
+ Codex, Cursor, Gemini CLI and other agents connect to the same URL. [Coding agents](https://unhandled.net/docs/features/agents) has the setup for each one and an `AGENTS.md` section to add to your repository.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unhandled/instrumentation-mastra",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Mastra span normalization for Unhandled",
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,7 +25,7 @@
25
25
  "dependencies": {
26
26
  "@opentelemetry/api": "~1.9.1",
27
27
  "@opentelemetry/sdk-trace-base": "^2.12.0",
28
- "@unhandled/protocol": "0.10.0"
28
+ "@unhandled/protocol": "0.12.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@adonisjs/tsconfig": "^2.0.0",
@@ -37,7 +37,7 @@
37
37
  "@opentelemetry/exporter-trace-otlp-http": "^0.223.0",
38
38
  "@opentelemetry/instrumentation": "^0.223.0",
39
39
  "@types/node": "^25.9.9",
40
- "@unhandled/node": "0.9.0",
40
+ "@unhandled/node": "0.9.2",
41
41
  "@unhandled/otlp-receiver": "0.0.0",
42
42
  "import-in-the-middle": "^3.5.2",
43
43
  "typescript": "~6.0.2"
@@ -46,7 +46,7 @@
46
46
  "@mastra/core": ">=1.0.0",
47
47
  "@mastra/observability": ">=1.0.0",
48
48
  "@mastra/otel-bridge": ">=1.0.0",
49
- "@unhandled/node": "^0.9.0"
49
+ "@unhandled/node": "^0.9.2"
50
50
  },
51
51
  "peerDependenciesMeta": {
52
52
  "@mastra/observability": {