-
Notifications
You must be signed in to change notification settings - Fork 600
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
Create set_llm_token_count_callback
API
#2485
Create set_llm_token_count_callback
API
#2485
Conversation
The API accepts one argument, a proc, that should contain the callback the agent will invoke if it cannot glean the token count from instrumentation. A supportability metric is recorded when the API is called.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one gave me a bit of proc déjà vu.
Your work on the error callback made this easy! |
lib/new_relic/agent.rb
Outdated
# | ||
# @param callback_proc [Proc] the callback proc | ||
# | ||
# Typically this method should be called only once to set a callback for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need the word 'typically'?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so. This documentation was drawn from another one of our APIs. I'll remove!
SimpleCov Report
|
The API accepts one argument, a proc, that should contain the callback the agent will invoke if it cannot glean the token count from instrumentation.
A supportability metric is recorded when the API is called.
Closes: #2451