0
Fork 0
mirror of https://github.com/mastra-ai/mastra.git synced 2026-11-17 08:44:46 +00:00
mastra/observability/braintrust
History 2026-11-12 21:12:29 +00:00
..
examples chore: migrate linting to oxlint (#20173) 2026-07-25 01:04:02 +02:00
src fix(braintrust): log provider-reported cost as metrics.estimated_cost (#28954) 2026-10-30 19:31:25 +05:30
CHANGELOG.md chore: version - exit prerelease mode 2026-11-12 21:12:29 +00:00
lint-staged.config.js refactor(lint): replace ESLint with type-aware oxlint (#27476) 2026-10-18 10:38:35 -07:00
oxlint.config.ts chore: migrate linting to oxlint (#20173) 2026-07-25 01:04:02 +02:00
package.json chore: version - exit prerelease mode 2026-11-12 21:12:29 +00:00
README.md chore(*): Update/unify/add READMEs (#22858) 2026-09-02 14:36:59 +02:00
tsconfig.build.json Initial release of BraintrustExporter for ai-observability (#7419) 2025-09-04 09:01:56 -07:00
tsconfig.json chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
tsdown.config.ts chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
turbo.json chore: migrate package builds to tsdown (#19829) 2026-07-28 12:32:21 +02:00
vitest.config.ts fix(core,observability): propagate toolCallId to tool span attributes (#19405) 2026-07-30 23:00:32 +02:00

@mastra/braintrust

Export Mastra traces to Braintrust for LLM evaluation and monitoring with zero-config environment variables or explicit project configuration.

Installation

npm install @mastra/braintrust

Usage

import { Mastra } from '@mastra/core/mastra';
import { Observability } from '@mastra/observability';
import { BraintrustExporter } from '@mastra/braintrust';

export const mastra = new Mastra({
  observability: new Observability({
    configs: {
      braintrust: {
        serviceName: 'my-service',
        exporters: [new BraintrustExporter()],
      },
    },
  }),
});

Documentation

Changelog

See the package changelog for version history and release notes.

Support

We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.