Skip to content
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

[BRA-1860] add setGlobalHandler for automatic traces with LangChain.js #490

Merged
merged 11 commits into from
Jan 2, 2025

Conversation

ibolmo
Copy link
Contributor

@ibolmo ibolmo commented Dec 15, 2024

This PR adds support for initializing a global LangChain callback handler to avoid manually passing the handler to each LangChain object. This makes it easier to integrate Braintrust tracing with LangChain.js applications.

@ibolmo ibolmo self-assigned this Dec 15, 2024
@ibolmo ibolmo marked this pull request as ready for review December 27, 2024 21:36
@ibolmo ibolmo changed the title [BRA-1860] add init method (but not yet fully working) [BRA-1860] add init method for global callback handler support Dec 27, 2024
@ibolmo ibolmo requested a review from sachinpad December 27, 2024 21:50
.tool-versions Show resolved Hide resolved
integrations/langchain-js/README.md Show resolved Hide resolved
integrations/langchain-js/README.md Outdated Show resolved Hide resolved
integrations/langchain-js/src/init.test.ts Outdated Show resolved Hide resolved
@ibolmo ibolmo changed the title [BRA-1860] add init method for global callback handler support [BRA-1860] add setGlobalHandler method for global callback handler support Dec 30, 2024
@ibolmo ibolmo changed the title [BRA-1860] add setGlobalHandler method for global callback handler support [BRA-1860] add setGlobalHandler for automatic traces with LangChain.js Jan 2, 2025
@ibolmo ibolmo merged commit 55cc037 into main Jan 2, 2025
8 checks passed
@ibolmo ibolmo deleted the bra-1860 branch January 2, 2025 17:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants