Skip to content

Commit

Permalink
exclude openai from Sentry registerEsmLoaderHooks
Browse files Browse the repository at this point in the history
  • Loading branch information
mschfh committed Nov 27, 2024
1 parent 7fffd2e commit aca0872
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/instrument.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as Sentry from '@sentry/node'
Sentry.init({
tracesSampleRate: 1.0,
tracePropagationTargets: [],
registerEsmLoaderHooks: { exclude: [/openai/] },
integrations: function (integrations) {
// Remove HTTP Integration, it breaks proxy requests
return integrations.filter(function (integration) {
Expand Down

0 comments on commit aca0872

Please sign in to comment.