@mastra/mcp-docs-server 1.2.15-alpha.19 → 1.2.15-alpha.21

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 (279) hide show
  1. package/.docs/docs/agents/code-mode.md +1 -1
  2. package/.docs/docs/agents/networks.md +2 -2
  3. package/.docs/docs/agents/overview.md +2 -2
  4. package/.docs/docs/agents/using-tools.md +1 -1
  5. package/.docs/docs/browser/overview.md +8 -8
  6. package/.docs/docs/browser/recording.md +2 -2
  7. package/.docs/docs/capabilities/{channels/overview.md → channels.md} +70 -7
  8. package/.docs/docs/capabilities/subagents.md +2 -2
  9. package/.docs/docs/deployment/cloud-providers.md +9 -9
  10. package/.docs/docs/deployment/overview.md +9 -9
  11. package/.docs/docs/deployment/sandbox.md +3 -3
  12. package/.docs/docs/deployment/web-framework.md +6 -6
  13. package/.docs/docs/deployment/workflow-runners.md +2 -2
  14. package/.docs/docs/harness/agent-controller.md +2 -2
  15. package/.docs/docs/index.md +8 -8
  16. package/.docs/docs/long-running-agents/durable-agents.md +2 -2
  17. package/.docs/docs/long-running-agents/signal-providers.md +2 -15
  18. package/.docs/docs/long-running-agents/signals.md +1 -1
  19. package/.docs/docs/mastra-platform/database.md +2 -2
  20. package/.docs/docs/mastra-platform/deploy.md +27 -0
  21. package/.docs/docs/mastra-platform/server.md +1 -1
  22. package/.docs/docs/mastra-platform/trace-intelligence.md +9 -13
  23. package/.docs/docs/mcp/overview.md +42 -0
  24. package/.docs/docs/memory/memory-processors.md +5 -5
  25. package/.docs/docs/memory/message-history.md +1 -1
  26. package/.docs/docs/memory/observational-memory.md +1 -1
  27. package/.docs/docs/observability/integrations/exporters/mastra-storage.md +16 -16
  28. package/.docs/docs/observability/integrations/overview.md +3 -3
  29. package/.docs/docs/server/auth/fga.md +1 -1
  30. package/.docs/docs/server/auth/simple-auth.md +1 -1
  31. package/.docs/docs/server/auth.md +8 -8
  32. package/.docs/docs/server/custom-api-routes.md +35 -0
  33. package/.docs/docs/storage/overview.md +14 -13
  34. package/.docs/docs/studio/observability.md +1 -1
  35. package/.docs/docs/workflows/overview.md +1 -1
  36. package/.docs/docs/workflows/snapshots.md +11 -11
  37. package/.docs/docs/workflows/time-travel.md +2 -0
  38. package/.docs/docs/workspace/filesystem.md +15 -15
  39. package/.docs/docs/workspace/sandbox.md +17 -17
  40. package/.docs/docs/workspace/search.md +1 -1
  41. package/.docs/guides/agent-frameworks/ai-sdk.md +2 -2
  42. package/.docs/guides/deployment/mastra-workers.md +1 -1
  43. package/.docs/guides/getting-started/quickstart.md +3 -3
  44. package/.docs/guides/index.md +8 -8
  45. package/.docs/guides/voice/overview.md +55 -106
  46. package/.docs/guides/voice/speech-to-text.md +7 -7
  47. package/.docs/guides/voice/text-to-speech.md +9 -10
  48. package/.docs/{guides/build-your-ui → integrations/agentic-ui}/ai-sdk-ui.md +2 -2
  49. package/.docs/{guides/build-your-ui/copilotkit/overview.md → integrations/agentic-ui/copilotkit.md} +256 -3
  50. package/.docs/{docs/browser → integrations/browsers}/agent-browser.md +2 -2
  51. package/.docs/{docs/browser → integrations/browsers}/browser-viewer.md +3 -3
  52. package/.docs/{docs/browser → integrations/browsers}/firecrawl.md +2 -2
  53. package/.docs/{docs/browser → integrations/browsers}/stagehand.md +1 -1
  54. package/.docs/{docs/capabilities → integrations}/channels/discord.md +2 -2
  55. package/.docs/integrations/channels/github.md +103 -0
  56. package/.docs/{docs/capabilities → integrations}/channels/imessage.md +7 -5
  57. package/.docs/{docs/capabilities → integrations}/channels/slack.md +4 -4
  58. package/.docs/{docs/capabilities → integrations}/channels/teams.md +2 -2
  59. package/.docs/{docs/capabilities → integrations}/channels/telegram.md +2 -2
  60. package/.docs/{docs/capabilities → integrations}/channels/whatsapp.md +2 -2
  61. package/.docs/{reference/storage/dsql.md → integrations/databases/aurora-dsql.md} +1 -1
  62. package/.docs/{reference/storage → integrations/databases}/clickhouse.md +2 -2
  63. package/.docs/{reference/storage → integrations/databases}/cloudflare-d1.md +1 -1
  64. package/.docs/{reference/storage/cloudflare.md → integrations/databases/cloudflare-kv.md} +1 -1
  65. package/.docs/{reference/storage → integrations/databases}/convex.md +1 -1
  66. package/.docs/{reference/storage → integrations/databases}/duckdb.md +5 -5
  67. package/.docs/{reference/storage → integrations/databases}/dynamodb.md +1 -1
  68. package/.docs/{reference/storage/lance.md → integrations/databases/lancedb.md} +1 -1
  69. package/.docs/{reference/storage → integrations/databases}/libsql.md +2 -2
  70. package/.docs/{reference/storage → integrations/databases}/mongodb.md +1 -1
  71. package/.docs/{reference/storage → integrations/databases}/mssql.md +1 -1
  72. package/.docs/integrations/databases/neon.md +220 -0
  73. package/.docs/{reference/storage → integrations/databases}/oracledb.md +1 -1
  74. package/.docs/{reference/storage → integrations/databases}/postgresql.md +1 -1
  75. package/.docs/{reference/storage → integrations/databases}/redis.md +1 -1
  76. package/.docs/{reference/storage → integrations/databases}/spanner.md +1 -1
  77. package/.docs/{reference/storage → integrations/databases}/upstash.md +1 -1
  78. package/.docs/{guides/deployment → integrations/deploy}/aws-bedrock-agentcore.md +1 -1
  79. package/.docs/{guides/deployment → integrations/deploy}/aws-lambda.md +1 -1
  80. package/.docs/{guides/deployment → integrations/deploy}/azure-app-services.md +1 -1
  81. package/.docs/{guides/deployment → integrations/deploy}/cloudflare.md +1 -1
  82. package/.docs/{guides/deployment → integrations/deploy}/digital-ocean.md +1 -1
  83. package/.docs/{guides/deployment → integrations/deploy}/netlify.md +1 -1
  84. package/.docs/{guides/deployment → integrations/deploy}/vercel.md +2 -2
  85. package/.docs/{reference/workspace/s3-filesystem.md → integrations/file-storage/amazon-s3.md} +5 -5
  86. package/.docs/{reference/workspace/archil-filesystem.md → integrations/file-storage/archil.md} +3 -3
  87. package/.docs/{reference/workspace/azure-blob-filesystem.md → integrations/file-storage/azure-blob.md} +2 -2
  88. package/.docs/{reference/workspace/gcs-filesystem.md → integrations/file-storage/google-cloud-storage.md} +5 -5
  89. package/.docs/{reference/workspace/mesa-filesystem.md → integrations/file-storage/mesa.md} +1 -1
  90. package/.docs/{reference/workspace/files-sdk-filesystem.md → integrations/file-storage/vercel-files.md} +5 -5
  91. package/.docs/{guides/getting-started → integrations/frameworks}/astro.md +1 -1
  92. package/.docs/{guides/getting-started → integrations/frameworks}/electron.md +1 -1
  93. package/.docs/{guides/getting-started → integrations/frameworks}/next-js.md +2 -2
  94. package/.docs/{guides/getting-started → integrations/frameworks}/nuxt.md +1 -1
  95. package/.docs/{guides/getting-started → integrations/frameworks}/sveltekit.md +1 -1
  96. package/.docs/{guides/getting-started → integrations/frameworks}/vite-react.md +1 -1
  97. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/arize.md +1 -1
  98. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/arthur.md +1 -1
  99. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/braintrust.md +1 -1
  100. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/confident-ai.md +1 -1
  101. package/.docs/integrations/observability/datadog.md +538 -0
  102. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/laminar.md +1 -1
  103. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/langfuse.md +1 -1
  104. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/langsmith.md +1 -1
  105. package/.docs/{docs/observability/integrations/exporters/otel.md → integrations/observability/opentelemetry.md} +276 -44
  106. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/posthog.md +1 -1
  107. package/.docs/{docs/observability/integrations/exporters → integrations/observability}/sentry.md +1 -1
  108. package/.docs/{reference/workspace/apple-container-sandbox.md → integrations/sandboxes/apple-container.md} +1 -1
  109. package/.docs/{reference/workspace/daytona-sandbox.md → integrations/sandboxes/daytona.md} +2 -2
  110. package/.docs/{reference/workspace/docker-sandbox.md → integrations/sandboxes/docker.md} +1 -1
  111. package/.docs/{reference/workspace/e2b-sandbox.md → integrations/sandboxes/e2b.md} +3 -3
  112. package/.docs/{reference/workspace/modal-sandbox.md → integrations/sandboxes/modal.md} +2 -2
  113. package/.docs/{reference/workspace/railway-sandbox.md → integrations/sandboxes/railway.md} +8 -0
  114. package/.docs/{reference/workspace/vercel-sandbox.md → integrations/sandboxes/vercel.md} +141 -12
  115. package/.docs/{reference → integrations}/tools/brightdata.md +1 -1
  116. package/.docs/{reference → integrations}/tools/perplexity.md +1 -1
  117. package/.docs/{reference → integrations}/tools/tavily.md +1 -1
  118. package/.docs/{reference → integrations}/voice/aws-nova-sonic.md +1 -1
  119. package/.docs/{reference → integrations}/voice/cloudflare.md +3 -3
  120. package/.docs/{reference/voice/google-gemini-live.md → integrations/voice/google.md} +305 -30
  121. package/.docs/{reference/voice/inworld-realtime.md → integrations/voice/inworld.md} +163 -25
  122. package/.docs/{reference → integrations}/voice/livekit.md +437 -34
  123. package/.docs/{reference/voice/openai-realtime.md → integrations/voice/openai.md} +117 -20
  124. package/.docs/integrations.md +147 -0
  125. package/.docs/models/embeddings.md +2 -2
  126. package/.docs/models/environment-variables.md +1 -0
  127. package/.docs/models/gateways/openrouter.md +4 -2
  128. package/.docs/models/gateways/vercel.md +2 -1
  129. package/.docs/models/index.md +1 -1
  130. package/.docs/models/providers/coralbricks.md +75 -0
  131. package/.docs/models/providers/evroc.md +2 -3
  132. package/.docs/models/providers/hyper.md +6 -6
  133. package/.docs/models/providers/kilo.md +7 -5
  134. package/.docs/models/providers/llmgateway.md +1 -2
  135. package/.docs/models/providers/nano-gpt.md +1 -3
  136. package/.docs/models/providers/opencode.md +0 -1
  137. package/.docs/models/providers/privatemode-ai.md +5 -4
  138. package/.docs/models/providers/snowflake-cortex.md +5 -1
  139. package/.docs/models/providers/wandb.md +2 -1
  140. package/.docs/models/providers/zenmux.md +0 -15
  141. package/.docs/models/providers.md +1 -0
  142. package/.docs/reference/agent-controller/agent-controller-class.md +32 -1
  143. package/.docs/reference/agents/channels.md +2 -2
  144. package/.docs/reference/agents/generateLegacy.md +2 -2
  145. package/.docs/reference/agents/getDefaultOptions.md +1 -1
  146. package/.docs/reference/agents/getDefaultStreamOptions.md +1 -1
  147. package/.docs/reference/agents/inngest-agent.md +1 -1
  148. package/.docs/reference/agents/network.md +1 -1
  149. package/.docs/reference/ai-sdk/handle-network-stream.md +1 -1
  150. package/.docs/reference/ai-sdk/network-route.md +1 -1
  151. package/.docs/reference/auth/auth0.md +1 -1
  152. package/.docs/reference/auth/better-auth.md +1 -1
  153. package/.docs/reference/auth/clerk.md +1 -1
  154. package/.docs/reference/auth/firebase.md +1 -1
  155. package/.docs/reference/auth/google.md +1 -1
  156. package/.docs/reference/auth/supabase.md +1 -1
  157. package/.docs/reference/auth/workos.md +1 -1
  158. package/.docs/reference/browser/agent-browser.md +1 -1
  159. package/.docs/reference/browser/browser-viewer.md +1 -1
  160. package/.docs/reference/browser/firecrawl-browser.md +1 -1
  161. package/.docs/reference/browser/stagehand-browser.md +1 -1
  162. package/.docs/reference/channels/channel-provider.md +1 -1
  163. package/.docs/reference/channels/slack-provider.md +2 -2
  164. package/.docs/reference/cli/mastra.md +2 -2
  165. package/.docs/reference/configuration.md +1 -26
  166. package/.docs/reference/core/getStorage.md +1 -1
  167. package/.docs/reference/core/getVector.md +2 -2
  168. package/.docs/reference/core/listVectors.md +2 -2
  169. package/.docs/reference/core/setStorage.md +1 -1
  170. package/.docs/reference/file-based-agents/storage.md +1 -1
  171. package/.docs/reference/file-based-agents/studio.md +1 -1
  172. package/.docs/reference/index.md +27 -55
  173. package/.docs/{guides → reference}/migrations/ai-sdk-v4-to-v5.md +1 -1
  174. package/.docs/{guides → reference}/migrations/mastra-cloud.md +1 -1
  175. package/.docs/{guides → reference}/migrations/upgrade-to-v1/cli.md +1 -1
  176. package/.docs/{guides → reference}/migrations/upgrade-to-v1/memory.md +1 -1
  177. package/.docs/{guides → reference}/migrations/upgrade-to-v1/overview.md +41 -41
  178. package/.docs/{guides → reference}/migrations/upgrade-to-v1/tools.md +1 -1
  179. package/.docs/{guides → reference}/migrations/upgrade-to-v1/tracing.md +10 -10
  180. package/.docs/reference/observability/tracing/bridges/datadog.md +2 -2
  181. package/.docs/reference/observability/tracing/bridges/otel.md +2 -2
  182. package/.docs/reference/observability/tracing/exporters/arize.md +1 -1
  183. package/.docs/reference/observability/tracing/exporters/arthur.md +1 -1
  184. package/.docs/reference/observability/tracing/exporters/confident-ai.md +1 -1
  185. package/.docs/reference/observability/tracing/exporters/mastra-platform-exporter.md +12 -0
  186. package/.docs/reference/observability/tracing/exporters/otel.md +2 -2
  187. package/.docs/reference/pubsub/lease-provider.md +1 -1
  188. package/.docs/{guides → reference}/rag/chunking-and-embedding.md +16 -19
  189. package/.docs/reference/rag/database-config.md +1 -1
  190. package/.docs/{guides/rag/graph-rag.md → reference/rag/graph-rag-guide.md} +1 -1
  191. package/.docs/{guides → reference}/rag/overview.md +2 -2
  192. package/.docs/{guides → reference}/rag/retrieval.md +1 -1
  193. package/.docs/{guides → reference}/rag/vector-databases.md +1 -1
  194. package/.docs/reference/server/create-route.md +27 -1
  195. package/.docs/reference/storage/composite.md +3 -3
  196. package/.docs/reference/storage/retention.md +4 -4
  197. package/.docs/reference/streaming/ChunkType.md +3 -3
  198. package/.docs/reference/streaming/agents/streamLegacy.md +3 -3
  199. package/.docs/reference/tools/mcp-server.md +1 -1
  200. package/.docs/reference/vectors/convex.md +2 -2
  201. package/.docs/reference/vectors/oracledb.md +2 -2
  202. package/.docs/reference/workers/overview.md +8 -8
  203. package/.docs/reference/workflows/run-methods/timeTravel.md +1 -0
  204. package/.docs/reference/workspace/platform-filesystem.md +2 -2
  205. package/.docs/reference/workspace/platform-sandbox.md +10 -2
  206. package/.docs/reference/workspace/process-manager.md +3 -3
  207. package/.docs/reference/workspace/sandbox.md +10 -0
  208. package/CHANGELOG.md +16 -0
  209. package/dist/index.js +1 -1
  210. package/dist/{src-BZcgzbk9.js → src-D-W-bx5t.js} +2 -2
  211. package/dist/{src-BZcgzbk9.js.map → src-D-W-bx5t.js.map} +1 -1
  212. package/dist/stdio.js +1 -1
  213. package/package.json +5 -5
  214. package/.docs/docs/capabilities/channels/other-adapters.md +0 -68
  215. package/.docs/docs/observability/integrations/bridges/datadog.md +0 -219
  216. package/.docs/docs/observability/integrations/bridges/otel.md +0 -234
  217. package/.docs/docs/observability/integrations/exporters/datadog.md +0 -321
  218. package/.docs/guides/build-your-ui/copilotkit/channels.md +0 -86
  219. package/.docs/guides/build-your-ui/copilotkit/generative-ui.md +0 -174
  220. package/.docs/guides/guide/chef-michel.md +0 -211
  221. package/.docs/guides/guide/publishing-mcp-server.md +0 -137
  222. package/.docs/guides/guide/slack-assistant.md +0 -193
  223. package/.docs/guides/guide/stock-agent.md +0 -132
  224. package/.docs/guides/guide/web-search.md +0 -322
  225. package/.docs/guides/guide/whatsapp-chat-bot.md +0 -407
  226. package/.docs/guides/voice/realtime-voice.md +0 -430
  227. package/.docs/reference/voice/google.md +0 -290
  228. package/.docs/reference/voice/inworld.md +0 -137
  229. package/.docs/reference/voice/openai.md +0 -96
  230. package/.docs/reference/voice/playai.md +0 -82
  231. package/.docs/reference/workspace/vercel-serverless.md +0 -128
  232. /package/.docs/{guides/concepts → docs/guides}/multi-agent-systems.md +0 -0
  233. /package/.docs/{guides/concepts → docs/guides}/streaming.md +0 -0
  234. /package/.docs/{guides/build-your-ui → integrations/agentic-ui}/assistant-ui.md +0 -0
  235. /package/.docs/{guides/build-your-ui → integrations/agentic-ui}/openui.md +0 -0
  236. /package/.docs/{docs/server → integrations}/auth/auth0.md +0 -0
  237. /package/.docs/{docs/server → integrations}/auth/better-auth.md +0 -0
  238. /package/.docs/{docs/server → integrations}/auth/clerk.md +0 -0
  239. /package/.docs/{docs/server → integrations}/auth/firebase.md +0 -0
  240. /package/.docs/{docs/server → integrations}/auth/google.md +0 -0
  241. /package/.docs/{docs/server → integrations}/auth/okta.md +0 -0
  242. /package/.docs/{docs/server → integrations}/auth/supabase.md +0 -0
  243. /package/.docs/{docs/server → integrations}/auth/workos.md +0 -0
  244. /package/.docs/{guides/deployment → integrations/deploy}/amazon-ec2.md +0 -0
  245. /package/.docs/{guides/deployment → integrations/deploy}/inngest.md +0 -0
  246. /package/.docs/{guides/deployment → integrations/deploy}/kubernetes.md +0 -0
  247. /package/.docs/{guides/deployment → integrations/deploy}/temporal.md +0 -0
  248. /package/.docs/{reference/workspace/agentfs-filesystem.md → integrations/file-storage/agentfs.md} +0 -0
  249. /package/.docs/{reference/workspace/google-drive-filesystem.md → integrations/file-storage/google-drive.md} +0 -0
  250. /package/.docs/{guides/getting-started → integrations/frameworks}/express.md +0 -0
  251. /package/.docs/{guides/getting-started → integrations/frameworks}/hono.md +0 -0
  252. /package/.docs/{guides/getting-started → integrations/frameworks}/nestjs.md +0 -0
  253. /package/.docs/{reference/workspace/agentcore-runtime-sandbox.md → integrations/sandboxes/agentcore.md} +0 -0
  254. /package/.docs/{reference/workspace/blaxel-sandbox.md → integrations/sandboxes/blaxel.md} +0 -0
  255. /package/.docs/{guides/guide → integrations/tools}/firecrawl.md +0 -0
  256. /package/.docs/{reference → integrations}/voice/azure.md +0 -0
  257. /package/.docs/{reference → integrations}/voice/deepgram.md +0 -0
  258. /package/.docs/{reference → integrations}/voice/elevenlabs.md +0 -0
  259. /package/.docs/{reference → integrations}/voice/mistral.md +0 -0
  260. /package/.docs/{reference → integrations}/voice/murf.md +0 -0
  261. /package/.docs/{reference → integrations}/voice/sarvam.md +0 -0
  262. /package/.docs/{reference → integrations}/voice/speechify.md +0 -0
  263. /package/.docs/{reference/voice/xai-realtime.md → integrations/voice/xai.md} +0 -0
  264. /package/.docs/{guides/getting-started → reference}/manual-install.md +0 -0
  265. /package/.docs/{guides → reference}/migrations/agentnetwork.md +0 -0
  266. /package/.docs/{guides → reference}/migrations/network-to-supervisor.md +0 -0
  267. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/agent.md +0 -0
  268. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/client.md +0 -0
  269. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/deployment.md +0 -0
  270. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/evals.md +0 -0
  271. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/mastra.md +0 -0
  272. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/mcp.md +0 -0
  273. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/processors.md +0 -0
  274. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/rag.md +0 -0
  275. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/storage.md +0 -0
  276. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/vectors.md +0 -0
  277. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/voice.md +0 -0
  278. /package/.docs/{guides → reference}/migrations/upgrade-to-v1/workflows.md +0 -0
  279. /package/.docs/{guides → reference}/migrations/vnext-to-standard-apis.md +0 -0
@@ -1,6 +1,6 @@
1
1
  > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
2
 
3
- # Braintrust exporter
3
+ # Braintrust
4
4
 
5
5
  [Braintrust](https://www.braintrust.dev/) is an evaluation and monitoring platform that helps you measure and improve LLM application quality. The Braintrust exporter sends your traces to Braintrust, enabling systematic evaluation, scoring, and experimentation.
6
6
 
@@ -1,6 +1,6 @@
1
1
  > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
2
 
3
- # Confident AI exporter
3
+ # Confident AI
4
4
 
5
5
  [Confident AI](https://www.confident-ai.com/) is an LLM observability and evaluation platform for teams to build reliable AI applications in both development and production.
6
6
 
@@ -0,0 +1,538 @@
1
+ > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
+
3
+ # Datadog
4
+
5
+ [Datadog](https://datadoghq.com/) is a complete monitoring platform with dedicated LLM Observability features. Mastra supports Datadog through an exporter for sending completed traces and a bridge for integrating with `dd-trace` context in real time.
6
+
7
+ ## Exporter
8
+
9
+ The Datadog exporter sends your traces to Datadog's LLM Observability product, providing insights into model performance and token usage, plus conversation flows.
10
+
11
+ ### Installation
12
+
13
+ **npm**:
14
+
15
+ ```bash
16
+ npm install @mastra/datadog@latest
17
+ ```
18
+
19
+ **pnpm**:
20
+
21
+ ```bash
22
+ pnpm add @mastra/datadog@latest
23
+ ```
24
+
25
+ **Yarn**:
26
+
27
+ ```bash
28
+ yarn add @mastra/datadog@latest
29
+ ```
30
+
31
+ **Bun**:
32
+
33
+ ```bash
34
+ bun add @mastra/datadog@latest
35
+ ```
36
+
37
+ ### Configuration
38
+
39
+ #### Prerequisites
40
+
41
+ 1. **Datadog Account**: Sign up at [datadoghq.com](https://datadoghq.com/) with LLM Observability enabled
42
+ 2. **API Key**: Get your API key from Datadog Organization Settings → API Keys
43
+ 3. **Environment Variables**: Set your credentials
44
+
45
+ ```bash
46
+ DD_API_KEY=your-datadog-api-key
47
+ DD_LLMOBS_ML_APP=my-llm-app
48
+ DD_SITE=datadoghq.com # Optional: defaults to datadoghq.com
49
+ DD_ENV=production # Optional: environment name
50
+ ```
51
+
52
+ #### Zero-Config Setup
53
+
54
+ With environment variables set, use the exporter with no configuration:
55
+
56
+ ```typescript
57
+ import { Mastra } from '@mastra/core'
58
+ import { Observability } from '@mastra/observability'
59
+ import { DatadogExporter } from '@mastra/datadog'
60
+
61
+ export const mastra = new Mastra({
62
+ observability: new Observability({
63
+ configs: {
64
+ datadog: {
65
+ serviceName: 'my-service',
66
+ exporters: [new DatadogExporter()],
67
+ },
68
+ },
69
+ }),
70
+ })
71
+ ```
72
+
73
+ #### Explicit Configuration
74
+
75
+ You can also pass credentials directly (takes precedence over environment variables):
76
+
77
+ ```typescript
78
+ import { Mastra } from '@mastra/core'
79
+ import { Observability } from '@mastra/observability'
80
+ import { DatadogExporter } from '@mastra/datadog'
81
+
82
+ export const mastra = new Mastra({
83
+ observability: new Observability({
84
+ configs: {
85
+ datadog: {
86
+ serviceName: 'my-service',
87
+ exporters: [
88
+ new DatadogExporter({
89
+ mlApp: process.env.DD_LLMOBS_ML_APP!,
90
+ apiKey: process.env.DD_API_KEY!,
91
+ }),
92
+ ],
93
+ },
94
+ },
95
+ }),
96
+ })
97
+ ```
98
+
99
+ ### Configuration options
100
+
101
+ #### Complete Configuration
102
+
103
+ ```typescript
104
+ new DatadogExporter({
105
+ // Required settings
106
+ mlApp: process.env.DD_LLMOBS_ML_APP!, // Groups traces under this ML app name
107
+ apiKey: process.env.DD_API_KEY!, // Required for agentless mode (default)
108
+
109
+ // Optional settings
110
+ site: 'datadoghq.com', // Datadog site (datadoghq.eu, us3.datadoghq.com, etc.)
111
+ service: 'my-service', // Service name (defaults to mlApp)
112
+ env: 'production', // Environment name
113
+ agentless: true, // true = direct HTTPS, false = local Datadog Agent
114
+
115
+ // Advanced settings
116
+ integrationsEnabled: false, // Enable dd-trace auto-instrumentation
117
+
118
+ // Diagnostic logging
119
+ logLevel: 'info', // debug | info | warn | error
120
+ })
121
+ ```
122
+
123
+ #### With Local Datadog Agent
124
+
125
+ If you have a Datadog Agent running locally, you can route traces through it instead of direct HTTPS:
126
+
127
+ ```typescript
128
+ new DatadogExporter({
129
+ mlApp: process.env.DD_LLMOBS_ML_APP!,
130
+ agentless: false, // Use local Datadog Agent
131
+ env: 'production',
132
+ })
133
+ ```
134
+
135
+ Note: When using agent mode, the API key is read from the local agent's configuration.
136
+
137
+ ### Span type mapping
138
+
139
+ Mastra span types are automatically mapped to Datadog LLM Observability span kinds:
140
+
141
+ | Mastra SpanType | Datadog Kind |
142
+ | -------------------- | ------------ |
143
+ | `AGENT_RUN` | `agent` |
144
+ | `MODEL_GENERATION` | `workflow` |
145
+ | `MODEL_STEP` | `llm` |
146
+ | `TOOL_CALL` | `tool` |
147
+ | `MCP_TOOL_CALL` | `tool` |
148
+ | `WORKFLOW_RUN` | `workflow` |
149
+ | Other workflow types | `task` |
150
+ | `GENERIC` | `task` |
151
+
152
+ Other/future Mastra span types will default to 'task' when mapped unless specified.
153
+
154
+ ### Application Performance Monitoring
155
+
156
+ The sections above cover Mastra's [LLM Observability](https://docs.datadoghq.com/llm_observability/) integration. To trace your Mastra HTTP server routes (request latency, error tracking, service maps), use `dd-trace` directly for Datadog Application Performance Monitoring (APM).
157
+
158
+ #### APM prerequisites
159
+
160
+ 1. **Datadog Agent**: Install a [Datadog Agent](https://docs.datadoghq.com/agent/) on the same host or accessible via network. The agent receives traces from `dd-trace` on `localhost:8126` and forwards them to Datadog. Follow the [agent installation guide](https://docs.datadoghq.com/agent/) to set it up.
161
+
162
+ 2. **dd-trace package**: Install the tracing library in your project:
163
+
164
+ **npm**:
165
+
166
+ ```bash
167
+ npm install dd-trace
168
+ ```
169
+
170
+ **pnpm**:
171
+
172
+ ```bash
173
+ pnpm add dd-trace
174
+ ```
175
+
176
+ **Yarn**:
177
+
178
+ ```bash
179
+ yarn add dd-trace
180
+ ```
181
+
182
+ **Bun**:
183
+
184
+ ```bash
185
+ bun add dd-trace
186
+ ```
187
+
188
+ > **Note:** APM traces always route through the Datadog Agent. This is different from LLM Observability, which supports agentless mode (direct HTTPS to Datadog).
189
+
190
+ #### APM only
191
+
192
+ Import and initialize `dd-trace` at the top of your entry file, before any other imports:
193
+
194
+ ```typescript
195
+ import tracer from 'dd-trace'
196
+
197
+ tracer.init({
198
+ service: process.env.DD_SERVICE || 'my-mastra-app',
199
+ env: process.env.DD_ENV || 'production',
200
+ version: process.env.DD_VERSION,
201
+ })
202
+
203
+ import { Mastra } from '@mastra/core'
204
+
205
+ export const mastra = new Mastra({
206
+ bundler: {
207
+ externals: [
208
+ 'dd-trace',
209
+ '@datadog/native-metrics',
210
+ '@datadog/native-appsec',
211
+ '@datadog/native-iast-taint-tracking',
212
+ '@datadog/pprof',
213
+ ],
214
+ },
215
+ })
216
+ ```
217
+
218
+ Set the tracer metadata environment variables:
219
+
220
+ ```bash
221
+ DD_SERVICE=my-mastra-app
222
+ DD_ENV=production
223
+ DD_VERSION=1.0.0
224
+ ```
225
+
226
+ `dd-trace` auto-instruments popular HTTP frameworks, including those supported by Mastra's [server adapters](https://mastra.ai/docs/server/server-adapters). Inbound requests, outbound HTTP calls, and database queries appear as APM traces in Datadog.
227
+
228
+ #### APM and LLM Observability
229
+
230
+ Import and initialize `dd-trace` before creating the Mastra instance. The `DatadogExporter` detects the existing tracer and skips re-initialization, adding LLM Observability on top of your APM setup:
231
+
232
+ ```typescript
233
+ import tracer from 'dd-trace'
234
+
235
+ tracer.init({
236
+ service: process.env.DD_SERVICE || 'my-mastra-app',
237
+ env: process.env.DD_ENV || 'production',
238
+ version: process.env.DD_VERSION,
239
+ })
240
+
241
+ import { Mastra } from '@mastra/core'
242
+ import { Observability } from '@mastra/observability'
243
+ import { DatadogExporter } from '@mastra/datadog'
244
+
245
+ export const mastra = new Mastra({
246
+ observability: new Observability({
247
+ configs: {
248
+ datadog: {
249
+ serviceName: 'my-mastra-app',
250
+ exporters: [
251
+ new DatadogExporter({
252
+ mlApp: process.env.DD_LLMOBS_ML_APP!,
253
+ apiKey: process.env.DD_API_KEY!,
254
+ }),
255
+ ],
256
+ },
257
+ },
258
+ }),
259
+ bundler: {
260
+ externals: [
261
+ 'dd-trace',
262
+ '@datadog/native-metrics',
263
+ '@datadog/native-appsec',
264
+ '@datadog/native-iast-taint-tracking',
265
+ '@datadog/pprof',
266
+ ],
267
+ },
268
+ })
269
+ ```
270
+
271
+ ```bash
272
+ DD_SERVICE=my-mastra-app
273
+ DD_ENV=production
274
+ DD_VERSION=1.0.0
275
+ DD_API_KEY=your-datadog-api-key
276
+ DD_LLMOBS_ML_APP=my-llm-app
277
+ ```
278
+
279
+ Server routes appear as APM traces and LLM calls appear as LLM Observability spans, all under the same service in Datadog.
280
+
281
+ > **Note:** Import and initialize `dd-trace` before all other modules. This allows its auto-instrumentation to patch HTTP, database, and framework libraries at load time.
282
+
283
+ ### Troubleshooting
284
+
285
+ #### Native module ABI mismatch
286
+
287
+ If you see errors like:
288
+
289
+ ```text
290
+ Error: No native build was found for runtime=node abi=137 platform=linuxglibc arch=x64
291
+ ```
292
+
293
+ This indicates a Node.js version compatibility issue with `dd-trace`'s native modules. These native modules are **optional** and provide performance monitoring features.
294
+
295
+ **Solutions:**
296
+
297
+ 1. **Use Node.js 22.x**: Native modules have the best compatibility with Node.js 22.x.
298
+
299
+ 2. **Ignore native module warnings**: The native modules (`@datadog/native-metrics`, `@datadog/native-appsec`, etc.) are optional. If they fail to load, core tracing functionality still works.
300
+
301
+ #### Bundler externals configuration
302
+
303
+ When using bundlers like esbuild, webpack, or the Mastra CLI bundler, you may need to mark `dd-trace` and its dependencies as external:
304
+
305
+ ```typescript
306
+ export const mastra = new Mastra({
307
+ bundler: {
308
+ externals: [
309
+ 'dd-trace',
310
+ '@datadog/native-metrics',
311
+ '@datadog/native-appsec',
312
+ '@datadog/native-iast-taint-tracking',
313
+ '@datadog/pprof',
314
+ ],
315
+ },
316
+ })
317
+ ```
318
+
319
+ ### Related
320
+
321
+ - [Tracing overview](https://mastra.ai/docs/observability/tracing/overview)
322
+ - [Datadog LLM Observability documentation](https://docs.datadoghq.com/llm_observability/)
323
+ - [Datadog APM documentation](https://docs.datadoghq.com/tracing/)
324
+
325
+ ## Bridge
326
+
327
+ > **Warning:** The Datadog Bridge is currently **experimental**. APIs and configuration options may change in future releases.
328
+
329
+ The Datadog Bridge enables bidirectional integration between Mastra's tracing system and Datadog. Unlike exporters that send trace data after execution completes, the bridge creates native `dd-trace` spans in real time so that auto-instrumented APM operations (HTTP calls, database queries, etc.) inside your tools and processors are correctly nested under their parent Mastra spans.
330
+
331
+ ### When to use the bridge
332
+
333
+ Use the `DatadogBridge` when you:
334
+
335
+ - Use `dd-trace` auto-instrumentation in your application (HTTP servers, database clients, etc.)
336
+ - Want APM service calls made by tools, MCP tools, or output processors to appear under their parent Mastra span instead of the request handler
337
+ - Need both APM traces and LLM Observability data to share a consistent trace topology
338
+ - Are building a distributed system where Datadog trace context must propagate across services
339
+
340
+ ### How it works
341
+
342
+ The `DatadogBridge` participates in two parts of the `dd-trace` pipeline:
343
+
344
+ **APM context propagation (real time):**
345
+
346
+ - Creates a `dd-trace` APM span via `tracer.startSpan()` when each Mastra span is created
347
+ - Activates the APM span in `dd-trace`'s scope via `tracer.scope().activate()` during execution
348
+ - Auto-instrumented operations inside the active scope are parented to the correct Mastra span
349
+ - Inherits the active `dd-trace` context (e.g., an incoming request span) when no explicit Mastra parent exists
350
+
351
+ **LLM Observability emission (on span end):**
352
+
353
+ - Emits annotations (model info, token usage, input/output, errors) through `dd-trace`'s LLM Observability pipeline
354
+ - Maintains parent-child relationships in Datadog LLM Observability using nested `llmobs.trace()` calls
355
+ - Reuses the same data shape and span-kind mapping as the [Datadog Exporter](#span-type-mapping)
356
+
357
+ ### Trace and log correlation
358
+
359
+ Without the bridge, the Datadog Exporter only creates LLM Observability spans after a trace completes. During execution, no `dd-trace` span is active in scope, so any HTTP or database call made by a tool falls back to whatever `dd-trace` span is active at the time, typically the incoming request handler. The result is that service calls from MCP tools or output processors appear as children of the request span instead of the agent or processor span that actually made them.
360
+
361
+ The bridge fixes this by creating real `dd-trace` spans up front, so the scope is correct when auto-instrumentation runs.
362
+
363
+ ### Installation
364
+
365
+ **npm**:
366
+
367
+ ```bash
368
+ npm install @mastra/datadog dd-trace
369
+ ```
370
+
371
+ **pnpm**:
372
+
373
+ ```bash
374
+ pnpm add @mastra/datadog dd-trace
375
+ ```
376
+
377
+ **Yarn**:
378
+
379
+ ```bash
380
+ yarn add @mastra/datadog dd-trace
381
+ ```
382
+
383
+ **Bun**:
384
+
385
+ ```bash
386
+ bun add @mastra/datadog dd-trace
387
+ ```
388
+
389
+ The bridge requires `dd-trace` to be installed and a local Datadog Agent (or compatible OTLP receiver) to receive APM data. See the [APM prerequisites](#apm-prerequisites) for agent setup details.
390
+
391
+ ### Configuration
392
+
393
+ Using the `DatadogBridge` requires two steps:
394
+
395
+ 1. Initialize `dd-trace` so its auto-instrumentation patches HTTP, database, and framework libraries
396
+ 2. Add the `DatadogBridge` to your Mastra observability config
397
+
398
+ #### Step 1: Initialize dd-trace
399
+
400
+ `dd-trace` must be initialized before any other imports so its auto-instrumentation can patch libraries at load time. The bridge will detect an already-initialized tracer and reuse it.
401
+
402
+ ```typescript
403
+ import tracer from 'dd-trace'
404
+
405
+ tracer.init({
406
+ service: process.env.DD_SERVICE || 'my-mastra-app',
407
+ env: process.env.DD_ENV || 'production',
408
+ version: process.env.DD_VERSION,
409
+ })
410
+
411
+ import { Mastra } from '@mastra/core'
412
+ import { Observability } from '@mastra/observability'
413
+ import { DatadogBridge } from '@mastra/datadog'
414
+
415
+ // ...
416
+ ```
417
+
418
+ > **Note:** Import and initialize `dd-trace` at the very top of your application's entry file, before any other imports.
419
+
420
+ #### Step 2: Mastra Configuration
421
+
422
+ Add the `DatadogBridge` to your Mastra observability config:
423
+
424
+ ```typescript
425
+ export const mastra = new Mastra({
426
+ observability: new Observability({
427
+ configs: {
428
+ default: {
429
+ serviceName: 'my-mastra-app',
430
+ bridge: new DatadogBridge({
431
+ mlApp: process.env.DD_LLMOBS_ML_APP!,
432
+ }),
433
+ },
434
+ },
435
+ }),
436
+ bundler: {
437
+ externals: [
438
+ 'dd-trace',
439
+ '@datadog/native-metrics',
440
+ '@datadog/native-appsec',
441
+ '@datadog/native-iast-taint-tracking',
442
+ '@datadog/pprof',
443
+ ],
444
+ },
445
+ })
446
+ ```
447
+
448
+ ```bash
449
+ DD_SERVICE=my-mastra-app
450
+ DD_ENV=production
451
+ DD_VERSION=1.0.0
452
+ DD_LLMOBS_ML_APP=my-llm-app
453
+ ```
454
+
455
+ When `dd-trace` is initialized, it routes APM data to your local Datadog Agent on `localhost:8126`. The bridge enables LLM Observability on top of the same tracer, so both sets of data appear under the same service in Datadog.
456
+
457
+ No Mastra exporters are required when using the bridge. Both APM and LLM Observability data flow through `dd-trace`. You can still add Mastra exporters if you want to send traces to additional destinations.
458
+
459
+ ### Agent vs. agentless mode
460
+
461
+ The bridge defaults to **agent mode** (`agentless: false`). This assumes a local Datadog Agent is running on `localhost:8126` to receive both APM and LLM Observability data. This is the typical setup when using `dd-trace` auto-instrumentation, since APM data always routes through the agent.
462
+
463
+ If you don't have a local Datadog Agent and only need LLM Observability data (no APM auto-instrumentation), you can enable agentless mode to send data directly to Datadog. In this case, you must provide an API key.
464
+
465
+ ```typescript
466
+ new DatadogBridge({
467
+ mlApp: process.env.DD_LLMOBS_ML_APP!,
468
+ apiKey: process.env.DD_API_KEY!,
469
+ agentless: true,
470
+ })
471
+ ```
472
+
473
+ > **Note:** For most bridge users, agent mode is the right choice. APM data can't be sent in agentless mode, so enabling agentless splits LLM Observability traffic away from APM traffic. If you want LLM Observability only without an agent, use the [Datadog Exporter](#exporter) instead.
474
+
475
+ ### Trace hierarchy
476
+
477
+ With the `DatadogBridge`, your traces maintain proper hierarchy across `dd-trace` and Mastra boundaries. Service calls made by tools and processors appear under the correct Mastra span:
478
+
479
+ ```text
480
+ HTTP POST /api/chat (from web framework instrumentation)
481
+ └── agent.orchestrator (from Mastra via DatadogBridge)
482
+ ├── chat gpt-5.4 (LLM call)
483
+ ├── tool.execute search (tool execution)
484
+ │ └── HTTP GET api.example.com (auto-instrumented from inside the tool)
485
+ └── processor.guardrail (output processor)
486
+ └── HTTP POST guardrail-service/check (auto-instrumented from inside the processor)
487
+ ```
488
+
489
+ In Datadog, the APM trace shows this full topology, and the LLM Observability product shows the agent and LLM-specific spans with their inputs, outputs, and token metrics.
490
+
491
+ ### Span type mapping
492
+
493
+ The bridge uses the same span-kind mapping as the Datadog Exporter for LLM Observability. See [span type mapping](#span-type-mapping) in the exporter section.
494
+
495
+ ### Using tags
496
+
497
+ Tags help you categorize and filter traces in Datadog. Add tags when executing agents or workflows:
498
+
499
+ ```typescript
500
+ const result = await agent.generate('Hello', {
501
+ tracingOptions: {
502
+ tags: ['production', 'experiment-v2', 'user-request'],
503
+ },
504
+ })
505
+ ```
506
+
507
+ Tags formatted as `key:value` (e.g., `instance_name:career-scout-api`) are split into structured tag entries. Tags without a colon are set with a `true` value.
508
+
509
+ ### Promoting context keys to flat tags
510
+
511
+ Use `requestContextKeys` to promote specific keys from the request context or span attributes into flat, indexable LLM Observability tags. This makes them filterable in the Datadog UI:
512
+
513
+ ```typescript
514
+ new DatadogBridge({
515
+ mlApp: process.env.DD_LLMOBS_ML_APP!,
516
+ requestContextKeys: ['tenantId', 'agentId'],
517
+ })
518
+ ```
519
+
520
+ Promoted keys are removed from `annotations.metadata` and added as flat tags on each LLM Observability span.
521
+
522
+ ### Troubleshooting
523
+
524
+ If APM spans aren't connecting to Mastra spans as expected:
525
+
526
+ - Verify `dd-trace` is initialized **before** any other imports (it patches libraries at load time)
527
+ - Verify a local Datadog Agent is running and reachable at `localhost:8126`
528
+ - Ensure the `DatadogBridge` is set as `bridge` (not as an entry in `exporters`) in your observability config
529
+ - Confirm you haven't also added the `DatadogExporter` to `exporters`: using both will double-emit LLM Observability data
530
+
531
+ For native-module compatibility issues with `dd-trace` and bundler externals, see the [Datadog exporter troubleshooting](#troubleshooting) section.
532
+
533
+ ### Related
534
+
535
+ - [Tracing overview](https://mastra.ai/docs/observability/tracing/overview)
536
+ - [DatadogBridge reference](https://mastra.ai/reference/observability/tracing/bridges/datadog)
537
+ - [Datadog APM documentation](https://docs.datadoghq.com/tracing/)
538
+ - [Datadog LLM Observability documentation](https://docs.datadoghq.com/llm_observability/)
@@ -1,6 +1,6 @@
1
1
  > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
2
 
3
- # Laminar exporter
3
+ # Laminar
4
4
 
5
5
  [Laminar](https://laminar.sh/) is an open-source, OpenTelemetry-native observability platform for AI agents. Trace, debug, and monitor every Mastra agent run, model step, tool call, and sub-agent with a single `MastraExporter` wired into your `Observability` config.
6
6
 
@@ -1,6 +1,6 @@
1
1
  > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
2
 
3
- # Langfuse exporter
3
+ # Langfuse
4
4
 
5
5
  [Langfuse](https://langfuse.com/) is an open-source observability platform specifically designed for LLM applications. The Langfuse exporter sends your traces to Langfuse, providing detailed insights into model performance and token usage, plus conversation flows.
6
6
 
@@ -1,6 +1,6 @@
1
1
  > Discover all available pages from the documentation index: https://mastra.ai/llms.txt
2
2
 
3
- # LangSmith exporter
3
+ # LangSmith
4
4
 
5
5
  [LangSmith](https://smith.langchain.com/) is LangChain's platform for monitoring and evaluating LLM applications. The LangSmith exporter sends your traces to LangSmith, providing insights into model performance and debugging capabilities, plus evaluation workflows.
6
6