Skip to content

Commit

Permalink
fix openai error
Browse files Browse the repository at this point in the history
  • Loading branch information
jsumners-nr committed Jul 9, 2024
1 parent d0e5b9d commit 3a6cfdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/instrumentation/openai.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ module.exports = function initialize(agent, openai, moduleName, shim) {
}

segment.end()
if (shouldSkipInstrumentation(agent.config) === true) {
if (shouldSkipInstrumentation(shim.agent.config, shim) === true) {
// We need this check inside the wrapper because it is possible for monitoring
// to be disabled at the account level. In such a case, the value is set
// after the instrumentation has been initialized.
Expand Down

0 comments on commit 3a6cfdb

Please sign in to comment.