Title: Add tracing for AzureOpenAI client · Issue #18280 · getsentry/sentry-javascript · GitHub
Open Graph Title: Add tracing for AzureOpenAI client · Issue #18280 · getsentry/sentry-javascript
X Title: Add tracing for AzureOpenAI client · Issue #18280 · getsentry/sentry-javascript
Description: Problem Statement Currently OpenAI integration works only for vanilla open AI client OpenAI class in openai module. The Azure OpenAI version is not instrumented despite being included in the openai module and exposing the same interface....
Open Graph Description: Problem Statement Currently OpenAI integration works only for vanilla open AI client OpenAI class in openai module. The Azure OpenAI version is not instrumented despite being included in the openai...
X Description: Problem Statement Currently OpenAI integration works only for vanilla open AI client OpenAI class in openai module. The Azure OpenAI version is not instrumented despite being included in the openai...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/18280
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add tracing for AzureOpenAI client","articleBody":"### Problem Statement\n\nCurrently OpenAI integration works only for vanilla open AI client `OpenAI` class in `openai` module.\nThe Azure OpenAI version is not instrumented despite being included in the `openai` module and exposing the same interface.\n\n### Solution Brainstorm\n\nSlightly refactoring the `packages/node/src/integrations/tracing/openai/instrumentation.ts` to be able to patch the two clients may work:\n\n```typescript\n private _patch(exports: PatchedModuleExports): PatchedModuleExports | void {\n let result = exports;\n result = this._patchClient(result, 'OpenAI');\n result = this._patchClient(result, 'AzureOpenAI');\n return result;\n }\n```\n\n\n### Additional Context\n\n_No response_\n\n### Priority\n\n\u003csub>React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding `+1` or `me too`, to help us triage it.\u003c/sub>","author":{"url":"https://github.com/bignoncedric","@type":"Person","name":"bignoncedric"},"datePublished":"2025-11-21T10:02:36Z","url":"https://github.com/getsentry/sentry-javascript/issues/18280"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5d2bb392-af16-82d7-b96d-1c0098caae92 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DE18:21AC8A:4C672:6A36C:6B042C23 |
| html-safe-nonce | 4874bfc2a9656a2bd94bcdd7955c4091c39f10f4c32365e85f38a098f65c84ea |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERTE4OjIxQUM4QTo0QzY3Mjo2QTM2Qzo2QjA0MkMyMyIsInZpc2l0b3JfaWQiOiIxNzg5MzczMDI5NDM1NDIzMDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fa6ce5e12d866ab1f17105ac06f30109557c383d02821441b025ef8a9cdd70fa |
| hovercard-subject-tag | issue:3651008916 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/18280/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3361eef306fee887ea6e436f9473366e1a5f5f8e4d764f785f7a3c74a703bccc/getsentry/sentry-javascript/issues/18280 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3361eef306fee887ea6e436f9473366e1a5f5f8e4d764f785f7a3c74a703bccc/getsentry/sentry-javascript/issues/18280 |
| og:image:alt | Problem Statement Currently OpenAI integration works only for vanilla open AI client OpenAI class in openai module. The Azure OpenAI version is not instrumented despite being included in the openai... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | bignoncedric |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width