module NewRelic::Agent::Instrumentation::OpenAI::Prepend
Public Instance Methods
Source
# File lib/new_relic/agent/instrumentation/ruby_openai/prepend.rb, line 16 def json_post(**kwargs) json_post_with_new_relic(**kwargs) { super } end
In versions 4.0.0+ json_post
is an instance method defined in the OpenAI::HTTP module, included by the OpenAI::Client class.
In versions below 4.0.0 json_post
is a class method on OpenAI::Client.
Dependency detection will apply the instrumentation to the correct scope, so we don’t need to change the code here.
Calls superclass method