Skip to content
This repository was archived by the owner on Mar 25, 2026. It is now read-only.

docs: update Mastra integration for latest observability API#135

Merged
rogeriochaves merged 1 commit intomainfrom
docs/update-mastra-integration
Mar 25, 2026
Merged

docs: update Mastra integration for latest observability API#135
rogeriochaves merged 1 commit intomainfrom
docs/update-mastra-integration

Conversation

@sergioestebance
Copy link
Contributor

Summary

  • Fixes broken observability: Mastra now requires new Observability({...}) from @mastra/observability instead of a plain config object. The old style silently disables all observability with a warning.
  • Adds @mastra/observability as a required dependency (replaces @mastra/loggers which was unnecessary)
  • Adds required id param to LibSQLStore constructor (now mandatory in latest @mastra/libsql)
  • Updates storage config from :memory: to file:./mastra.db to match Mastra's current recommended pattern

Test plan

  • Verify the code example works with latest Mastra packages (@mastra/core@1.15.0, @mastra/observability@1.5.1, @mastra/otel-exporter@1.0.8)
  • Confirm traces appear in LangWatch dashboard when running the example

Mastra now requires the `Observability` class from `@mastra/observability`
instead of a plain config object — the old style silently disables
observability. Also adds required `id` param to `LibSQLStore` and removes
unnecessary `@mastra/loggers` dependency.
@rogeriochaves rogeriochaves merged commit 1381692 into main Mar 25, 2026
2 checks passed
@rogeriochaves rogeriochaves deleted the docs/update-mastra-integration branch March 25, 2026 21:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants