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 ability to recordLlmFeedbackEvent by traceId #2043

Merged
merged 2 commits into from Feb 26, 2024

Conversation

bizob2828
Copy link
Member

Description

Updated api.recordLlmFeedbackEvent to require a traceId obtained via api.getTraceMetadata. I also removed getLlmMessageIds api as it no longer needed to get the relevant ids to post feedback. Lastly, we no longer need the tx.llm.responses set to store these ids to be used in getLlmMessageIds. This is technically a breaking change but since AIM is in limited preview we are no releasing as a semver major.

Related Issues

Closes #2042

Copy link

codecov bot commented Feb 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.15%. Comparing base (b9c73ca) to head (93d458f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2043      +/-   ##
==========================================
- Coverage   97.15%   97.15%   -0.01%     
==========================================
  Files         248      247       -1     
  Lines       41600    41560      -40     
==========================================
- Hits        40418    40378      -40     
  Misses       1182     1182              
Flag Coverage Δ
integration-tests-16.x 78.60% <54.16%> (+0.01%) ⬆️
integration-tests-18.x 78.58% <54.16%> (+0.02%) ⬆️
integration-tests-20.x 78.57% <54.16%> (+0.02%) ⬆️
unit-tests-16.x 90.83% <100.00%> (-0.06%) ⬇️
unit-tests-18.x 90.81% <100.00%> (-0.06%) ⬇️
unit-tests-20.x 90.81% <100.00%> (-0.06%) ⬇️
versioned-tests-16.x 74.76% <76.00%> (-0.25%) ⬇️
versioned-tests-18.x 75.34% <76.00%> (-0.14%) ⬇️
versioned-tests-20.x 75.35% <76.00%> (-0.14%) ⬇️

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 26, 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 once tests pass. We will need to update all of the existing sample applications, as they all utilize the removed API methods.

@bizob2828
Copy link
Member Author

Looks good to me once tests pass. We will need to update all of the existing sample applications, as they all utilize the removed API methods.

Yea I will queue those up. We cannot merge until the agent has been released.

@bizob2828
Copy link
Member Author

Ok this Pr will have a branched version of aws-sdk instrumentation. I cannot merge that until we release a new version of the agent

@bizob2828 bizob2828 merged commit b0a4ed1 into newrelic:main Feb 26, 2024
22 checks passed
Node.js Engineering Board automation moved this from Needs PR Review to Done: Issues recently completed Feb 26, 2024
@bizob2828 bizob2828 deleted the update-llm-feedback 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.

Update recordLlmFeedbackEvent
2 participants