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

community[minor]: Use usage metadata message field for token reporting in DatadogLLMObsTracer #6552

Merged

Conversation

mejackreed
Copy link
Contributor

In place of #6373 based off of suggestions from @jacoblee93 and @bracesproul

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Aug 16, 2024
Copy link

vercel bot commented Aug 16, 2024

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

Name Status Preview Comments Updated (UTC)
langchainjs-docs ✅ Ready (Inspect) Visit Preview Aug 22, 2024 9:51pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
langchainjs-api-refs ⬜️ Ignored (Inspect) Aug 22, 2024 9:51pm

@dosubot dosubot bot added the auto:improvement Medium size change to existing code to handle new use-cases label Aug 16, 2024
@bracesproul bracesproul changed the title Use AIMessage API for token reporting in DatadogLLMObsTracer community[minor]: Use usage metadata message field for token reporting in DatadogLLMObsTracer Aug 16, 2024
Copy link
Member

@bracesproul bracesproul left a comment

Choose a reason for hiding this comment

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

lgtm. If CI passes I can get it merged in. Thank you

@dosubot dosubot bot added the lgtm PRs that are ready to be merged as-is label Aug 22, 2024
@bracesproul bracesproul merged commit b088c33 into langchain-ai:main Aug 22, 2024
34 checks passed
@mejackreed mejackreed deleted the add-anthropic-token-reporting branch August 22, 2024 22:29
CarterMorris pushed a commit to CarterMorris/langchainjs that referenced this pull request Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto:improvement Medium size change to existing code to handle new use-cases lgtm PRs that are ready to be merged as-is size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants