Skip to content

Commit 390a313

Browse files
committed
wip: initial boilerplate for anthrophic sdk instrumentation.
1 parent e95c19d commit 390a313

File tree

30 files changed

+1767
-456
lines changed

30 files changed

+1767
-456
lines changed

.github/component_owners.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,6 @@ components:
5151

5252
instrumentation-genai/opentelemetry-instrumentation-openai-agents-v2:
5353
- nagkumar91
54+
55+
instrumentation-genai/opentelemetry-instrumentation-anthropic:
56+
- vasantteja

.github/workflows/core_contrib_test_0.yml

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,66 @@ jobs:
203203
- name: Run tests
204204
run: tox -e py39-test-instrumentation-google-genai-latest -- -ra
205205

206+
py39-test-instrumentation-anthropic-oldest:
207+
name: instrumentation-anthropic-oldest
208+
runs-on: ubuntu-latest
209+
timeout-minutes: 30
210+
steps:
211+
- name: Checkout contrib repo @ SHA - ${{ env.CONTRIB_REPO_SHA }}
212+
uses: actions/checkout@v4
213+
with:
214+
repository: open-telemetry/opentelemetry-python-contrib
215+
ref: ${{ env.CONTRIB_REPO_SHA }}
216+
217+
- name: Checkout core repo @ SHA - ${{ env.CORE_REPO_SHA }}
218+
uses: actions/checkout@v4
219+
with:
220+
repository: open-telemetry/opentelemetry-python
221+
ref: ${{ env.CORE_REPO_SHA }}
222+
path: opentelemetry-python
223+
224+
- name: Set up Python 3.9
225+
uses: actions/setup-python@v5
226+
with:
227+
python-version: "3.9"
228+
architecture: "x64"
229+
230+
- name: Install tox
231+
run: pip install tox-uv
232+
233+
- name: Run tests
234+
run: tox -e py39-test-instrumentation-anthropic-oldest -- -ra
235+
236+
py39-test-instrumentation-anthropic-latest:
237+
name: instrumentation-anthropic-latest
238+
runs-on: ubuntu-latest
239+
timeout-minutes: 30
240+
steps:
241+
- name: Checkout contrib repo @ SHA - ${{ env.CONTRIB_REPO_SHA }}
242+
uses: actions/checkout@v4
243+
with:
244+
repository: open-telemetry/opentelemetry-python-contrib
245+
ref: ${{ env.CONTRIB_REPO_SHA }}
246+
247+
- name: Checkout core repo @ SHA - ${{ env.CORE_REPO_SHA }}
248+
uses: actions/checkout@v4
249+
with:
250+
repository: open-telemetry/opentelemetry-python
251+
ref: ${{ env.CORE_REPO_SHA }}
252+
path: opentelemetry-python
253+
254+
- name: Set up Python 3.9
255+
uses: actions/setup-python@v5
256+
with:
257+
python-version: "3.9"
258+
architecture: "x64"
259+
260+
- name: Install tox
261+
run: pip install tox-uv
262+
263+
- name: Run tests
264+
run: tox -e py39-test-instrumentation-anthropic-latest -- -ra
265+
206266
py39-test-resource-detector-containerid:
207267
name: resource-detector-containerid
208268
runs-on: ubuntu-latest

.github/workflows/lint_0.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,25 @@ jobs:
108108
- name: Run tests
109109
run: tox -e lint-instrumentation-google-genai
110110

111+
lint-instrumentation-anthropic:
112+
name: instrumentation-anthropic
113+
runs-on: ubuntu-latest
114+
timeout-minutes: 30
115+
steps:
116+
- name: Checkout repo @ SHA - ${{ github.sha }}
117+
uses: actions/checkout@v4
118+
119+
- name: Set up Python 3.13
120+
uses: actions/setup-python@v5
121+
with:
122+
python-version: "3.13"
123+
124+
- name: Install tox
125+
run: pip install tox-uv
126+
127+
- name: Run tests
128+
run: tox -e lint-instrumentation-anthropic
129+
111130
lint-resource-detector-containerid:
112131
name: resource-detector-containerid
113132
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)