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

chore: Added @azure/openai and @langchain/community/llms/bedrock as tracking packages so we can measure usage with angler #2053

Merged
merged 1 commit into from Feb 29, 2024

Conversation

bizob2828
Copy link
Member

Description

Added @azure/openai and @langchain/community/llms/bedrock as tracking type modules in lib/instrumentations.. This will produce supportability metrics that angler can load so we can track customers using these packages before deciding to add instrumentation.

How to Test

In an app

npm i @azure/openai @langchain/community
# in index.js
require('@azure/openai')
require('@langchain/community/llms/bedrock')

Run npm linked version of agent and check logs.

You will see supportability metrics get logged as such

[{\"name\":\"Supportability/Features/Instrumentation/OnRequire/@azure/openai\"},[1,0,0,0,0,0]]
[{\"name\":\"Supportability/Features/Instrumentation/OnRequire/@azure/openai/Version/1\"},[1,0,0,0,0,0]]
{\"name\":\"Supportability/Features/Instrumentation/OnRequire/@langchain/community/llms/bedrock\"},[1,0,0,0,0,0]]
[{\"name\":\"Supportability/Features/Instrumentation/OnRequire/@langchain/community/llms/bedrock/Version/0\"},[1,0,0,0,0,0]]

Related Issues

Closes #2045

…racking packages so we can measure usage with angler
Copy link

codecov bot commented Feb 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.15%. Comparing base (b0a4ed1) to head (9654a55).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2053   +/-   ##
=======================================
  Coverage   97.15%   97.15%           
=======================================
  Files         247      247           
  Lines       41567    41569    +2     
=======================================
+ Hits        40385    40387    +2     
  Misses       1182     1182           
Flag Coverage Δ
integration-tests-16.x 78.59% <100.00%> (-0.01%) ⬇️
integration-tests-18.x 78.57% <100.00%> (+<0.01%) ⬆️
integration-tests-20.x 78.58% <100.00%> (+0.01%) ⬆️
unit-tests-16.x 90.83% <100.00%> (+<0.01%) ⬆️
unit-tests-18.x 90.81% <100.00%> (+<0.01%) ⬆️
unit-tests-20.x 90.81% <100.00%> (+<0.01%) ⬆️
versioned-tests-16.x 74.75% <100.00%> (-0.03%) ⬇️
versioned-tests-18.x 75.35% <100.00%> (-0.03%) ⬇️
versioned-tests-20.x 75.36% <100.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bizob2828 bizob2828 merged commit 4830ea3 into newrelic:main Feb 29, 2024
24 checks passed
Node.js Engineering Board automation moved this from Needs PR Review to Done: Issues recently completed Feb 29, 2024
@github-actions github-actions bot mentioned this pull request Mar 4, 2024
@bizob2828 bizob2828 deleted the add-tracking-mods branch April 3, 2024 19:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Node.js Engineering Board
  
Done: Issues recently completed
Development

Successfully merging this pull request may close these issues.

Add supportability tracking metrics for langchain bedrock and azure openai
2 participants