M
Mastraโ€ข6d ago
shiroyasha9

Support for passing `projectId` for Langsmith Integration

Hi Mastra team, we're using the LangSmith AI Tracing integration and have a large project with traces from multiple sources. Is there a way to specify a custom project ID or set environment variables to control which LangSmith project the traces are recorded under? I haven't found this option in the exporter config or documentation. Is this supported, or is there a recommended approach for multi-project tracing? Appreciate any guidance! Package versions used:
{
"@mastra/ai-sdk": "^1.0.1",
"@mastra/core": "^0.24.6",
"@mastra/evals": "^0.14.4",
"@mastra/langsmith": "^0.1.3",
"@mastra/libsql": "^0.16.3",
"@mastra/loggers": "^0.10.19",
"@mastra/memory": "^0.15.12"
}
{
"@mastra/ai-sdk": "^1.0.1",
"@mastra/core": "^0.24.6",
"@mastra/evals": "^0.14.4",
"@mastra/langsmith": "^0.1.3",
"@mastra/libsql": "^0.16.3",
"@mastra/loggers": "^0.10.19",
"@mastra/memory": "^0.15.12"
}
3 Replies
Mastra Triager
Mastra Triagerโ€ข6d ago
๐Ÿ“ Created GitHub issue: https://github.com/mastra-ai/mastra/issues/10748 ๐Ÿ” If you're experiencing an error, please provide a minimal reproducible example whenever possible to help us resolve it quickly. ๐Ÿ™ Thank you for helping us improve Mastra!
Abhi Aiyer
Abhi Aiyerโ€ข5d ago
Hi @shiroyasha9 ! We can add this! But in the meantime: LANGCHAIN_PROJECT is the env var used by their SDK for project ids ill add that to our docs
Abhi Aiyer
Abhi Aiyerโ€ข5d ago
GitHub
feat(langsmith): add projectName config option by abhiaiyer91 ยท Pu...
Closes #10748 Adds support for specifying which LangSmith project to send traces to via the projectName config option. This overrides the LANGCHAIN_PROJECT environment variable if both are set. new...

Did you find this page helpful?