0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00

[MASTRA-2865] update storage initialization and added underscore methods (#3433)

## Description

An issue in local dev is that storage isn't initialized right away until
traces are stored, and doesn't get initialized at all if custom
exporting is used for telemetry.

This PR ensures storage is initialized in local development through the
entry file as well as underscore methods in the server handlers.

## Related Issue(s)

<!-- Link to the issue(s) this PR addresses, using hashtag notation:
#123 -->

## Type of Change

- [ ] Bug fix (non-breaking change that fixes an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to change)
- [ ] Documentation update
- [ ] Code refactoring
- [ ] Performance improvement
- [ ] Test update

## Checklist

- [ ] I have performed a self-review of my own code
- [ ] I have made corresponding changes to the documentation (if
applicable)
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] I have generated a changeset for this PR
This commit is contained in:
NikAiyer 2025-04-03 15:07:57 -05:00 • committed by GitHub
commit a3f0e9081a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 26 additions and 16 deletions