-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
feat(cloudflare,vercel-edge): Add support for LangChain instrumentation #17986
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
0ea9d06 to
d07f822
Compare
size-limit report 📦
|
node-overhead report 🧳Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.
|
d07f822 to
0a41fc8
Compare
8320a8c to
628a513
Compare
Bug: Type Assertion Causes Runtime MismatchThe code passes a Record object |
Bug: Future Compatibility Date Causes ErrorsThe compatibility_date is set to "2025-06-17" which is in the future relative to the current date (10/23/2025 according to the context). This appears to be a typo and should likely be "2024-06-17" or another valid past date. A future compatibility date may cause unexpected behavior or errors in Cloudflare Workers. |
Adds support for LangChain manual instrumentation in @sentry/cloudflare and @sentry/vercel-edge.
To instrument LangChain operations, create a callback handler with Sentry.createLangChainCallbackHandler and pass it to your LangChain invocations.
The callback handler automatically creates spans for: