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

feat: Added ai_monitoring.streaming.enabled. When set to false this will not instrument chat completion streams, thus it will not create relevant Llm events. #2021

Merged
merged 2 commits into from Feb 15, 2024

Conversation

bizob2828
Copy link
Member

Description

The specification has been updated to have a new configuration ai_monitoring.streaming.enabled. It will default to true. If customers are having issues with our stream instrumentation they can disable this option.
It will not instrument stream and create the relevant Llm events. However it will still create the span, Supportability/Nodejs/ML/<library>/<version> metric and add llm: true to the transaction.

Related Issues

Closes #2018

will not instrument chat completion streams, thus it will not create
relevant Llm events.
Copy link

codecov bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (5f93f65) 97.10% compared to head (af8e361) 97.11%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2021   +/-   ##
=======================================
  Coverage   97.10%   97.11%           
=======================================
  Files         239      239           
  Lines       41037    41066   +29     
=======================================
+ Hits        39851    39880   +29     
  Misses       1186     1186           
Flag Coverage Δ
integration-tests-16.x 78.70% <100.00%> (+0.01%) ⬆️
integration-tests-18.x 78.68% <100.00%> (-0.01%) ⬇️
integration-tests-20.x 78.69% <100.00%> (+<0.01%) ⬆️
unit-tests-16.x 91.13% <94.73%> (+0.04%) ⬆️
unit-tests-18.x 91.03% <94.73%> (+0.04%) ⬆️
unit-tests-20.x 91.03% <94.73%> (+0.04%) ⬆️
versioned-tests-16.x 75.06% <100.00%> (-0.01%) ⬇️
versioned-tests-18.x 75.09% <100.00%> (-0.01%) ⬇️
versioned-tests-20.x 75.09% <100.00%> (-0.01%) ⬇️

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.

jsumners-nr
jsumners-nr previously approved these changes Feb 15, 2024
Copy link
Contributor

@jsumners-nr jsumners-nr left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@bizob2828 bizob2828 merged commit ff78b51 into newrelic:main Feb 15, 2024
22 checks passed
Node.js Engineering Board automation moved this from Needs PR Review to Done: Issues recently completed Feb 15, 2024
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 ai_monitoring.streaming.enabled configuration
2 participants