sdk changedmanage-claude/opentelemetry/sdk
Recorded here
Lines+10added
Lines−10removed
From line
1
where the diff opens
First seen
14 Oct 2026
this site's first read of the page
Recorded edits25to this page, all time
The whole hunk
from line 1, old and new numbered
/
from line 1
11---
2title: Set up OpenTelemetry with the Claude SDK
2title: Set up OpenTelemetry with the Anthropic SDK
33url: https://platform.claude.com/docs/en/manage-claude/opentelemetry/sdk
4description: Trace the Claude SDK's requests and tool uses in Python, TypeScript, C#, Go, Java, PHP, or Ruby, and send the spans to your observability platform.
4description: Trace the Anthropic SDK's requests and tool uses in Python, TypeScript, C#, Go, Java, PHP, or Ruby, and send the spans to your observability platform.
55featureMetadata:
66 topic:
77 title: OpenTelemetry
from line 29
2929 - claude-sonnet-4-5-20250929
3030 supportedPlatforms:
3131 Claude API: beta
32 Claude Platform on AWS: beta
3332 Amazon Bedrock: beta
34 Amazon Bedrock (InvokeModel): beta
33 Amazon Bedrock (bedrock-runtime): beta
34 Claude Platform on AWS: beta
3535 Claude Models on Google Cloud (Google managed): beta
3636 Microsoft Foundry: beta
3737---
3838
39With OpenTelemetry, the Claude SDK can emit a span for each request that it sends and each tool use that the [tool runner](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-runner) runs. You can view these spans in your observability platform, nested in your own traces.
39With OpenTelemetry, the Anthropic SDK can emit a span for each request that it sends and each tool use that the [tool runner](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-runner) runs. You can view these spans in your observability platform, nested in your own traces.
4040
4141The SDK emits spans in your application. Your application’s OpenTelemetry exporter sends them to your observability platform.
4242
from line 46
4646
4747## 1. Install the SDK
4848
49Install or upgrade to the latest version of the Claude SDK:
49Install or upgrade to the latest version of the Anthropic SDK:
5050
5151<Tabs>
5252 <Tab title="Python">
from line 98
9898 </Tab>
9999
100100 <Tab title="Java">
101 Add the Claude SDK to your dependencies, or update it to at least the following version if your build file already declares it:
101 Add the Anthropic SDK to your dependencies, or update it to at least the following version if your build file already declares it:
102102
103103 <Tabs>
104104 <Tab title="Gradle">
from line 837
837837
838838* Availability: Available
839839
840| Status | Cloud platforms |
841| ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
842| Beta | Claude API, [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock), [Amazon Bedrock (InvokeModel)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy), [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
840| Status | Cloud platforms |
841| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
842| Beta | Claude API, [Amazon Bedrock](https://platform.claude.com/docs/en/build-with-claude/claude-in-amazon-bedrock), [Amazon Bedrock (bedrock-runtime)](https://platform.claude.com/docs/en/build-with-claude/claude-on-amazon-bedrock-legacy), [Claude Platform on AWS](https://platform.claude.com/docs/en/build-with-claude/claude-platform-on-aws), [Claude Models on Google Cloud (Google managed)](https://platform.claude.com/docs/en/build-with-claude/claude-models-on-google-cloud/google-managed), [Microsoft Foundry](https://platform.claude.com/docs/en/build-with-claude/claude-in-microsoft-foundry) |
843843
844844#### [Managed Agents](https://platform.claude.com/docs/en/managed-agents/overview)
845845
No line in this hunk matches that.