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

Separate base tracer from langchain tracers, Remove concept of session from base tracer, add missing exports, update console tracer accordingly #1221

Merged
merged 2 commits into from
May 11, 2023

Conversation

nfcampos
Copy link
Collaborator

No description provided.

@vercel
Copy link

vercel bot commented May 11, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview May 11, 2023 5:45pm

});
let tracerSession: TracerSession;
if (!response.ok) {
throw new Error(
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed creating a fake session if it fails, as the fake session won't be accepted by the backend anyway, so there's no point

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a try / catch in manager.ts so the program doesn't crash when the env var is set?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We already have that

serialized: run.serialized,
error: run.error,
inputs: run.inputs,
outputs: run.outputs ?? {},
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a little strange as runs with error shouldn't have outputs

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's supposed to be optional - I can double check that it works, may have added unnecessarily

@nfcampos nfcampos added the lgtm PRs that are ready to be merged as-is label May 11, 2023
@nfcampos nfcampos merged commit caec1f7 into main May 11, 2023
9 checks passed
@nfcampos nfcampos deleted the nc/tracer-reorg branch May 11, 2023 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm PRs that are ready to be merged as-is
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants