Skip to content

Commit a9861c9

Browse files
authored
fix(anthropic): Use correct instrumentAnthropicAiClient export (#15018)
Noticed this while investigating an issue. <!-- Use this checklist to make sure your PR is ready for merge. You may delete any sections you don't need. --> ## DESCRIBE YOUR PR *Tell us what you're changing and why. If your PR **resolves an issue**, please link it so it closes automatically.* ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [ ] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) ## LEGAL BOILERPLATE <!-- Sentry employees and contractors can delete or ignore this section. --> Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. and is gonna need some rights from me in order to utilize my contributions in this here PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms. ## EXTRA RESOURCES - [Sentry Docs contributor guide](https://docs.sentry.io/contributing/)
1 parent aff12de commit a9861c9

File tree

1 file changed

+3
-3
lines changed
  • docs/platforms/javascript/common/configuration/integrations

1 file changed

+3
-3
lines changed

docs/platforms/javascript/common/configuration/integrations/anthropic.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ Sentry.init({
5555
</PlatformSection>
5656

5757
<PlatformSection supported={["javascript.cloudflare"]}>
58-
For Cloudflare Workers, you need to manually instrument the Anthropic client using the `instrumentAnthropicClient` helper:
58+
For Cloudflare Workers, you need to manually instrument the Anthropic client using the `instrumentAnthropicAiClient` helper:
5959

6060
```javascript
6161
import * as Sentry from "@sentry/cloudflare";
6262
import Anthropic from "@anthropic-ai/sdk";
6363

6464
const anthropic = new Anthropic();
65-
const client = Sentry.instrumentAnthropicClient(anthropic, {
65+
const client = Sentry.instrumentAnthropicAiClient(anthropic, {
6666
recordInputs: true,
6767
recordOutputs: true,
6868
});
@@ -86,7 +86,7 @@ import * as Sentry from "@sentry/nextjs";
8686
import Anthropic from "@anthropic-ai/sdk";
8787

8888
const anthropic = new Anthropic();
89-
const client = Sentry.instrumentAnthropicClient(anthropic, {
89+
const client = Sentry.instrumentAnthropicAiClient(anthropic, {
9090
recordInputs: true,
9191
recordOutputs: true,
9292
});

0 commit comments

Comments
 (0)