release: @traceai/mastra v0.2.0 — Mastra v1 observability#183
Merged
Conversation
…onventions Mastra v1 (>=1.16) removed the `telemetry:` config key that the old FITraceExporter plugged into, so traces silently stopped exporting. This adds a v1-native path: - createFIObservability() / createFIMastraExporter(): wire Future AGI into Mastra's v1 `observability` API with the correct collector host (api.futureagi.com), x-api-key/x-secret-key auth, and project_name/project_type resource attributes (without project_name the trace is accepted but no project is created). - FIMastraSpanExporter: reuses @mastra/otel-exporter's SpanConverter, then enriches each span with gen_ai.span.kind (mapped from the Mastra span type) and input.value/output.value, so spans render with the right kind (not "unknown") and their I/O in Future AGI. - Excludes MODEL_CHUNK streaming spans by default. - Legacy v0.x FITraceExporter/isFISpan moved to the `@traceai/mastra/legacy` subpath so v1 users don't pull @traceai/vercel. - Adds unit tests for the enrichment and factory/resolver logic.
feat(mastra): support Mastra v1 observability + map spans to gen_ai conventions
nik13
approved these changes
Jun 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Promotes the Mastra v1 observability work from `dev` to `main`.
What's in this release
`@traceai/mastra` 0.1.0 → 0.2.0 (merged via #182)
Verification
Scope note
`dev` is ahead of `main` by exactly the 3 Mastra commits — this PR introduces only the `traceai_mastra` package + lockfile. main's `#165` otel shutdown hotfix is not affected (dev never touched `otel.py`, so the three-dot merge preserves it).