Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 0 additions & 60 deletions .github/workflows/core_contrib_test_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,66 +143,6 @@ jobs:
- name: Run tests
run: tox -e py39-test-instrumentation-vertexai-latest -- -ra

py39-test-instrumentation-google-genai-oldest:
name: instrumentation-google-genai-oldest
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout contrib repo @ SHA - ${{ env.CONTRIB_REPO_SHA }}
uses: actions/checkout@v4
with:
repository: open-telemetry/opentelemetry-python-contrib
ref: ${{ env.CONTRIB_REPO_SHA }}

- name: Checkout core repo @ SHA - ${{ env.CORE_REPO_SHA }}
uses: actions/checkout@v4
with:
repository: open-telemetry/opentelemetry-python
ref: ${{ env.CORE_REPO_SHA }}
path: opentelemetry-python

- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"
architecture: "x64"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -e py39-test-instrumentation-google-genai-oldest -- -ra

py39-test-instrumentation-google-genai-latest:
name: instrumentation-google-genai-latest
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout contrib repo @ SHA - ${{ env.CONTRIB_REPO_SHA }}
uses: actions/checkout@v4
with:
repository: open-telemetry/opentelemetry-python-contrib
ref: ${{ env.CONTRIB_REPO_SHA }}

- name: Checkout core repo @ SHA - ${{ env.CORE_REPO_SHA }}
uses: actions/checkout@v4
with:
repository: open-telemetry/opentelemetry-python
ref: ${{ env.CORE_REPO_SHA }}
path: opentelemetry-python

- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"
architecture: "x64"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -e py39-test-instrumentation-google-genai-latest -- -ra

py39-test-instrumentation-anthropic-oldest:
name: instrumentation-anthropic-oldest
runs-on: ubuntu-latest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ env:
CORE_REPO_SHA: {% raw %}${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}{% endraw %}
'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4'
) || 'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4' }}{% endraw %}
CONTRIB_REPO_SHA: main
PIP_EXISTS_ACTION: w

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ env:
CORE_REPO_SHA: {% raw %}${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}{% endraw %}
'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4'
) || 'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4' }}{% endraw %}
CONTRIB_REPO_SHA: main
PIP_EXISTS_ACTION: w

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ env:
CORE_REPO_SHA: {% raw %}${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}{% endraw %}
'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4'
) || 'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4' }}{% endraw %}
CONTRIB_REPO_SHA: main
PIP_EXISTS_ACTION: w

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lint_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ env:
CORE_REPO_SHA: ${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}
'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4'
) || 'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4' }}
CONTRIB_REPO_SHA: main
PIP_EXISTS_ACTION: w

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/misc_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ env:
CORE_REPO_SHA: ${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}
'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4'
) || 'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4' }}
CONTRIB_REPO_SHA: main
PIP_EXISTS_ACTION: w

Expand Down
80 changes: 40 additions & 40 deletions .github/workflows/test_0.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ env:
CORE_REPO_SHA: ${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}
'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4'
) || 'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4' }}
CONTRIB_REPO_SHA: main
PIP_EXISTS_ACTION: w

Expand Down Expand Up @@ -716,44 +716,6 @@ jobs:
- name: Run tests
run: tox -e py314-test-instrumentation-vertexai-latest -- -ra

py39-test-instrumentation-google-genai-oldest_ubuntu-latest:
name: instrumentation-google-genai-oldest 3.9 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -e py39-test-instrumentation-google-genai-oldest -- -ra

py39-test-instrumentation-google-genai-latest_ubuntu-latest:
name: instrumentation-google-genai-latest 3.9 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -e py39-test-instrumentation-google-genai-latest -- -ra

py310-test-instrumentation-google-genai-oldest_ubuntu-latest:
name: instrumentation-google-genai-oldest 3.10 Ubuntu
runs-on: ubuntu-latest
Expand Down Expand Up @@ -4781,3 +4743,41 @@ jobs:

- name: Run tests
run: tox -e py314-test-instrumentation-fastapi -- -ra

pypy3-test-instrumentation-fastapi_ubuntu-latest:
name: instrumentation-fastapi pypy-3.9 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python pypy-3.9
uses: actions/setup-python@v5
with:
python-version: "pypy-3.9"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -e pypy3-test-instrumentation-fastapi -- -ra

py39-test-instrumentation-flask-0_ubuntu-latest:
name: instrumentation-flask-0 3.9 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -e py39-test-instrumentation-flask-0 -- -ra
80 changes: 40 additions & 40 deletions .github/workflows/test_1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,51 +25,13 @@ env:
CORE_REPO_SHA: ${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}
'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4'
) || 'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4' }}
CONTRIB_REPO_SHA: main
PIP_EXISTS_ACTION: w

jobs:

pypy3-test-instrumentation-fastapi_ubuntu-latest:
name: instrumentation-fastapi pypy-3.9 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python pypy-3.9
uses: actions/setup-python@v5
with:
python-version: "pypy-3.9"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -e pypy3-test-instrumentation-fastapi -- -ra

py39-test-instrumentation-flask-0_ubuntu-latest:
name: instrumentation-flask-0 3.9 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.9
uses: actions/setup-python@v5
with:
python-version: "3.9"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -e py39-test-instrumentation-flask-0 -- -ra

py39-test-instrumentation-flask-1_ubuntu-latest:
name: instrumentation-flask-1 3.9 Ubuntu
runs-on: ubuntu-latest
Expand Down Expand Up @@ -4781,3 +4743,41 @@ jobs:

- name: Run tests
run: tox -e py311-test-instrumentation-redis -- -ra

py312-test-instrumentation-redis_ubuntu-latest:
name: instrumentation-redis 3.12 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -e py312-test-instrumentation-redis -- -ra

py313-test-instrumentation-redis_ubuntu-latest:
name: instrumentation-redis 3.13 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -e py313-test-instrumentation-redis -- -ra
42 changes: 2 additions & 40 deletions .github/workflows/test_2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,51 +25,13 @@ env:
CORE_REPO_SHA: ${{ github.event_name == 'pull_request' && (
contains(github.event.pull_request.labels.*.name, 'prepare-release') && github.event.pull_request.head.ref ||
contains(github.event.pull_request.labels.*.name, 'backport') && github.event.pull_request.base.ref ||
'main'
) || 'main' }}
'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4'
) || 'f32b684a1ccd6d5eb658ec0b45bf18928ea430e4' }}
CONTRIB_REPO_SHA: main
PIP_EXISTS_ACTION: w

jobs:

py312-test-instrumentation-redis_ubuntu-latest:
name: instrumentation-redis 3.12 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: "3.12"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -e py312-test-instrumentation-redis -- -ra

py313-test-instrumentation-redis_ubuntu-latest:
name: instrumentation-redis 3.13 Ubuntu
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- name: Checkout repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v4

- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: "3.13"

- name: Install tox
run: pip install tox-uv

- name: Run tests
run: tox -e py313-test-instrumentation-redis -- -ra

py314-test-instrumentation-redis_ubuntu-latest:
name: instrumentation-redis 3.14 Ubuntu
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ repos:
- id: rstcheck
additional_dependencies: ['rstcheck[sphinx]']
args: ["--report-level", "warning"]
exclude: ^_template/
2 changes: 1 addition & 1 deletion instrumentation-genai/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
| --------------- | ------------------ | --------------- | -------------- |
| [opentelemetry-instrumentation-anthropic](./opentelemetry-instrumentation-anthropic) | anthropic >= 0.16.0 | No | development
| [opentelemetry-instrumentation-claude-agent-sdk](./opentelemetry-instrumentation-claude-agent-sdk) | claude-agent-sdk >= 0.1.14 | No | development
| [opentelemetry-instrumentation-google-genai](./opentelemetry-instrumentation-google-genai) | google-genai >= 1.0.0 | No | development
| [opentelemetry-instrumentation-google-genai](./opentelemetry-instrumentation-google-genai) | google-genai >= 1.0.0, <3 | No | development
| [opentelemetry-instrumentation-langchain](./opentelemetry-instrumentation-langchain) | langchain >= 0.3.21 | No | development
| [opentelemetry-instrumentation-openai-agents-v2](./opentelemetry-instrumentation-openai-agents-v2) | openai-agents >= 0.3.3 | No | development
| [opentelemetry-instrumentation-openai-v2](./opentelemetry-instrumentation-openai-v2) | openai >= 1.26.0 | Yes | development
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- Relax version constraint of `google-genai` to allow v2 of that library to be used with the instrumentation library.

## Version 0.7b0 (2026-02-20)
- Fix bug in how tokens are counted when using the streaming `generateContent` method. ([#4152](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4152)).
- Add `gen_ai.tool.definitions` attribute to `gen_ai.client.inference.operation.details` log event ([#4142](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/4142)).
Expand Down
Loading
Loading