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: removed api.setLlmMetadata as llm metadata will be assigned via api.addCustomAttribute with a prefix of llm. #1918

Merged
merged 1 commit into from Dec 18, 2023

Conversation

bizob2828
Copy link
Member

Description

It was discusssed with AI team that setLlmMetadata was too rigid. They wanted a dynamic way to assign attributes. We already have that in api.addCustomAttribute(s). The AI will associate llm metadata downstream if custom attributes on transaction match llm. as the prefix to the attributes names. With that we're also changing conversation id to be llm.conversation_id.

… api.addCustomAttribute with a prefix of `llm.`
Copy link

codecov bot commented Dec 18, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (2d666b6) 96.98% compared to head (730a638) 96.98%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1918      +/-   ##
==========================================
- Coverage   96.98%   96.98%   -0.01%     
==========================================
  Files         212      212              
  Lines       40060    40036      -24     
==========================================
- Hits        38853    38829      -24     
  Misses       1207     1207              
Flag Coverage Δ
integration-tests-16.x 78.70% <0.00%> (+0.01%) ⬆️
integration-tests-18.x 78.96% <0.00%> (+0.02%) ⬆️
integration-tests-20.x 78.97% <0.00%> (+0.01%) ⬆️
unit-tests-16.x 91.01% <100.00%> (-0.01%) ⬇️
unit-tests-18.x 90.99% <100.00%> (-0.01%) ⬇️
unit-tests-20.x 90.99% <100.00%> (-0.01%) ⬇️
versioned-tests-16.x 73.76% <100.00%> (-0.04%) ⬇️
versioned-tests-18.x 73.78% <100.00%> (-0.04%) ⬇️
versioned-tests-20.x 73.79% <100.00%> (-0.04%) ⬇️

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.

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 cc4a975 into main Dec 18, 2023
48 checks passed
Node.js Engineering Board automation moved this from Needs PR Review to Done: Issues recently completed Dec 18, 2023
@bizob2828 bizob2828 deleted the remove-llm-meta branch December 18, 2023 20:13
@github-actions github-actions bot mentioned this pull request Jan 3, 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.

None yet

2 participants