diff --git a/.changelog/5194.added b/.changelog/5194.added new file mode 100644 index 00000000000..1844e73578b --- /dev/null +++ b/.changelog/5194.added @@ -0,0 +1 @@ +`opentelemetry-exporter-http-transport`: add 'opentelemetry-exporter-http-transport' package for HTTP exporters diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f3fe9675be9..56841491bad 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -195,6 +195,44 @@ jobs: - name: Run tests run: tox -e lint-opentelemetry-opencensus-shim + lint-opentelemetry-exporter-http-transport: + name: opentelemetry-exporter-http-transport + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.14 + uses: actions/setup-python@v5 + with: + python-version: "3.14" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e lint-opentelemetry-exporter-http-transport + + lint-opentelemetry-exporter-otlp-http-common: + name: opentelemetry-exporter-otlp-http-common + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.14 + uses: actions/setup-python@v5 + with: + python-version: "3.14" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e lint-opentelemetry-exporter-otlp-http-common + lint-opentelemetry-exporter-opencensus: name: opentelemetry-exporter-opencensus runs-on: ubuntu-latest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b481fbfa706..2e3f4c7f097 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1414,8 +1414,8 @@ jobs: - name: Run tests run: tox -e py314-test-opentelemetry-opencensus-shim -- -ra - py310-test-opentelemetry-exporter-opencensus_ubuntu-latest: - name: opentelemetry-exporter-opencensus 3.10 Ubuntu + py310-test-opentelemetry-exporter-http-transport-oldest_ubuntu-latest: + name: opentelemetry-exporter-http-transport-oldest 3.10 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -1431,162 +1431,162 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-exporter-opencensus -- -ra + run: tox -e py310-test-opentelemetry-exporter-http-transport-oldest -- -ra - py311-test-opentelemetry-exporter-opencensus_ubuntu-latest: - name: opentelemetry-exporter-opencensus 3.11 Ubuntu + py310-test-opentelemetry-exporter-http-transport-latest_ubuntu-latest: + name: opentelemetry-exporter-http-transport-latest 3.10 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.11 + - name: Set up Python 3.10 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.10" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-exporter-opencensus -- -ra + run: tox -e py310-test-opentelemetry-exporter-http-transport-latest -- -ra - py312-test-opentelemetry-exporter-opencensus_ubuntu-latest: - name: opentelemetry-exporter-opencensus 3.12 Ubuntu + py311-test-opentelemetry-exporter-http-transport-oldest_ubuntu-latest: + name: opentelemetry-exporter-http-transport-oldest 3.11 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 + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.11" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-exporter-opencensus -- -ra + run: tox -e py311-test-opentelemetry-exporter-http-transport-oldest -- -ra - py313-test-opentelemetry-exporter-opencensus_ubuntu-latest: - name: opentelemetry-exporter-opencensus 3.13 Ubuntu + py311-test-opentelemetry-exporter-http-transport-latest_ubuntu-latest: + name: opentelemetry-exporter-http-transport-latest 3.11 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 + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: "3.11" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-exporter-opencensus -- -ra + run: tox -e py311-test-opentelemetry-exporter-http-transport-latest -- -ra - py314-test-opentelemetry-exporter-opencensus_ubuntu-latest: - name: opentelemetry-exporter-opencensus 3.14 Ubuntu + py312-test-opentelemetry-exporter-http-transport-oldest_ubuntu-latest: + name: opentelemetry-exporter-http-transport-oldest 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.14 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.14" + python-version: "3.12" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-exporter-opencensus -- -ra + run: tox -e py312-test-opentelemetry-exporter-http-transport-oldest -- -ra - py310-test-opentelemetry-exporter-otlp-proto-common_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-common 3.10 Ubuntu + py312-test-opentelemetry-exporter-http-transport-latest_ubuntu-latest: + name: opentelemetry-exporter-http-transport-latest 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.10 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-exporter-otlp-proto-common -- -ra + run: tox -e py312-test-opentelemetry-exporter-http-transport-latest -- -ra - py311-test-opentelemetry-exporter-otlp-proto-common_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-common 3.11 Ubuntu + py313-test-opentelemetry-exporter-http-transport-oldest_ubuntu-latest: + name: opentelemetry-exporter-http-transport-oldest 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.11 + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.13" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-exporter-otlp-proto-common -- -ra + run: tox -e py313-test-opentelemetry-exporter-http-transport-oldest -- -ra - py312-test-opentelemetry-exporter-otlp-proto-common_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-common 3.12 Ubuntu + py313-test-opentelemetry-exporter-http-transport-latest_ubuntu-latest: + name: opentelemetry-exporter-http-transport-latest 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.12 + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-exporter-otlp-proto-common -- -ra + run: tox -e py313-test-opentelemetry-exporter-http-transport-latest -- -ra - py313-test-opentelemetry-exporter-otlp-proto-common_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-common 3.13 Ubuntu + py314-test-opentelemetry-exporter-http-transport-oldest_ubuntu-latest: + name: opentelemetry-exporter-http-transport-oldest 3.14 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 + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: "3.14" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-exporter-otlp-proto-common -- -ra + run: tox -e py314-test-opentelemetry-exporter-http-transport-oldest -- -ra - py314-test-opentelemetry-exporter-otlp-proto-common_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-common 3.14 Ubuntu + py314-test-opentelemetry-exporter-http-transport-latest_ubuntu-latest: + name: opentelemetry-exporter-http-transport-latest 3.14 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -1602,10 +1602,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-exporter-otlp-proto-common -- -ra + run: tox -e py314-test-opentelemetry-exporter-http-transport-latest -- -ra - py314t-test-opentelemetry-exporter-otlp-proto-common_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-common 3.14t Ubuntu + py314t-test-opentelemetry-exporter-http-transport-oldest_ubuntu-latest: + name: opentelemetry-exporter-http-transport-oldest 3.14t Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -1621,29 +1621,29 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314t-test-opentelemetry-exporter-otlp-proto-common -- -ra + run: tox -e py314t-test-opentelemetry-exporter-http-transport-oldest -- -ra - pypy3-test-opentelemetry-exporter-otlp-proto-common_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-common pypy-3.10 Ubuntu + py314t-test-opentelemetry-exporter-http-transport-latest_ubuntu-latest: + name: opentelemetry-exporter-http-transport-latest 3.14t 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.10 + - name: Set up Python 3.14t uses: actions/setup-python@v5 with: - python-version: "pypy-3.10" + python-version: "3.14t" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-exporter-otlp-proto-common -- -ra + run: tox -e py314t-test-opentelemetry-exporter-http-transport-latest -- -ra - py310-test-opentelemetry-exporter-otlp-json-common_ubuntu-latest: - name: opentelemetry-exporter-otlp-json-common 3.10 Ubuntu + py310-test-opentelemetry-exporter-otlp-http-common-oldest_ubuntu-latest: + name: opentelemetry-exporter-otlp-http-common-oldest 3.10 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -1659,219 +1659,219 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-exporter-otlp-json-common -- -ra + run: tox -e py310-test-opentelemetry-exporter-otlp-http-common-oldest -- -ra - py311-test-opentelemetry-exporter-otlp-json-common_ubuntu-latest: - name: opentelemetry-exporter-otlp-json-common 3.11 Ubuntu + py310-test-opentelemetry-exporter-otlp-http-common-latest_ubuntu-latest: + name: opentelemetry-exporter-otlp-http-common-latest 3.10 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.11 + - name: Set up Python 3.10 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.10" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-exporter-otlp-json-common -- -ra + run: tox -e py310-test-opentelemetry-exporter-otlp-http-common-latest -- -ra - py312-test-opentelemetry-exporter-otlp-json-common_ubuntu-latest: - name: opentelemetry-exporter-otlp-json-common 3.12 Ubuntu + py311-test-opentelemetry-exporter-otlp-http-common-oldest_ubuntu-latest: + name: opentelemetry-exporter-otlp-http-common-oldest 3.11 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 + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.11" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-exporter-otlp-json-common -- -ra + run: tox -e py311-test-opentelemetry-exporter-otlp-http-common-oldest -- -ra - py313-test-opentelemetry-exporter-otlp-json-common_ubuntu-latest: - name: opentelemetry-exporter-otlp-json-common 3.13 Ubuntu + py311-test-opentelemetry-exporter-otlp-http-common-latest_ubuntu-latest: + name: opentelemetry-exporter-otlp-http-common-latest 3.11 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 + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: "3.11" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-exporter-otlp-json-common -- -ra + run: tox -e py311-test-opentelemetry-exporter-otlp-http-common-latest -- -ra - py314-test-opentelemetry-exporter-otlp-json-common_ubuntu-latest: - name: opentelemetry-exporter-otlp-json-common 3.14 Ubuntu + py312-test-opentelemetry-exporter-otlp-http-common-oldest_ubuntu-latest: + name: opentelemetry-exporter-otlp-http-common-oldest 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.14 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.14" + python-version: "3.12" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-exporter-otlp-json-common -- -ra + run: tox -e py312-test-opentelemetry-exporter-otlp-http-common-oldest -- -ra - py314t-test-opentelemetry-exporter-otlp-json-common_ubuntu-latest: - name: opentelemetry-exporter-otlp-json-common 3.14t Ubuntu + py312-test-opentelemetry-exporter-otlp-http-common-latest_ubuntu-latest: + name: opentelemetry-exporter-otlp-http-common-latest 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.14t + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.14t" + python-version: "3.12" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314t-test-opentelemetry-exporter-otlp-json-common -- -ra + run: tox -e py312-test-opentelemetry-exporter-otlp-http-common-latest -- -ra - pypy3-test-opentelemetry-exporter-otlp-json-common_ubuntu-latest: - name: opentelemetry-exporter-otlp-json-common pypy-3.10 Ubuntu + py313-test-opentelemetry-exporter-otlp-http-common-oldest_ubuntu-latest: + name: opentelemetry-exporter-otlp-http-common-oldest 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 pypy-3.10 + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: "pypy-3.10" + python-version: "3.13" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-exporter-otlp-json-common -- -ra + run: tox -e py313-test-opentelemetry-exporter-otlp-http-common-oldest -- -ra - py310-test-opentelemetry-exporter-otlp-combined_ubuntu-latest: - name: opentelemetry-exporter-otlp-combined 3.10 Ubuntu + py313-test-opentelemetry-exporter-otlp-http-common-latest_ubuntu-latest: + name: opentelemetry-exporter-otlp-http-common-latest 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.10 + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.13" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-exporter-otlp-combined -- -ra + run: tox -e py313-test-opentelemetry-exporter-otlp-http-common-latest -- -ra - py311-test-opentelemetry-exporter-otlp-combined_ubuntu-latest: - name: opentelemetry-exporter-otlp-combined 3.11 Ubuntu + py314-test-opentelemetry-exporter-otlp-http-common-oldest_ubuntu-latest: + name: opentelemetry-exporter-otlp-http-common-oldest 3.14 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.11 + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.14" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-exporter-otlp-combined -- -ra + run: tox -e py314-test-opentelemetry-exporter-otlp-http-common-oldest -- -ra - py312-test-opentelemetry-exporter-otlp-combined_ubuntu-latest: - name: opentelemetry-exporter-otlp-combined 3.12 Ubuntu + py314-test-opentelemetry-exporter-otlp-http-common-latest_ubuntu-latest: + name: opentelemetry-exporter-otlp-http-common-latest 3.14 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 + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.14" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-exporter-otlp-combined -- -ra + run: tox -e py314-test-opentelemetry-exporter-otlp-http-common-latest -- -ra - py313-test-opentelemetry-exporter-otlp-combined_ubuntu-latest: - name: opentelemetry-exporter-otlp-combined 3.13 Ubuntu + py314t-test-opentelemetry-exporter-otlp-http-common-oldest_ubuntu-latest: + name: opentelemetry-exporter-otlp-http-common-oldest 3.14t 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 + - name: Set up Python 3.14t uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: "3.14t" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-exporter-otlp-combined -- -ra + run: tox -e py314t-test-opentelemetry-exporter-otlp-http-common-oldest -- -ra - py314-test-opentelemetry-exporter-otlp-combined_ubuntu-latest: - name: opentelemetry-exporter-otlp-combined 3.14 Ubuntu + py314t-test-opentelemetry-exporter-otlp-http-common-latest_ubuntu-latest: + name: opentelemetry-exporter-otlp-http-common-latest 3.14t Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14 + - name: Set up Python 3.14t uses: actions/setup-python@v5 with: - python-version: "3.14" + python-version: "3.14t" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-exporter-otlp-combined -- -ra + run: tox -e py314t-test-opentelemetry-exporter-otlp-http-common-latest -- -ra - py310-test-opentelemetry-exporter-otlp-proto-grpc-oldest_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-grpc-oldest 3.10 Ubuntu + py310-test-opentelemetry-exporter-opencensus_ubuntu-latest: + name: opentelemetry-exporter-opencensus 3.10 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -1887,162 +1887,162 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-exporter-otlp-proto-grpc-oldest -- -ra + run: tox -e py310-test-opentelemetry-exporter-opencensus -- -ra - py310-test-opentelemetry-exporter-otlp-proto-grpc-latest_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-grpc-latest 3.10 Ubuntu + py311-test-opentelemetry-exporter-opencensus_ubuntu-latest: + name: opentelemetry-exporter-opencensus 3.11 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.10 + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.11" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-exporter-otlp-proto-grpc-latest -- -ra + run: tox -e py311-test-opentelemetry-exporter-opencensus -- -ra - py311-test-opentelemetry-exporter-otlp-proto-grpc-oldest_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-grpc-oldest 3.11 Ubuntu + py312-test-opentelemetry-exporter-opencensus_ubuntu-latest: + name: opentelemetry-exporter-opencensus 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.11 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-exporter-otlp-proto-grpc-oldest -- -ra + run: tox -e py312-test-opentelemetry-exporter-opencensus -- -ra - py311-test-opentelemetry-exporter-otlp-proto-grpc-latest_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-grpc-latest 3.11 Ubuntu + py313-test-opentelemetry-exporter-opencensus_ubuntu-latest: + name: opentelemetry-exporter-opencensus 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.11 + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.13" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-exporter-otlp-proto-grpc-latest -- -ra + run: tox -e py313-test-opentelemetry-exporter-opencensus -- -ra - py312-test-opentelemetry-exporter-otlp-proto-grpc-oldest_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-grpc-oldest 3.12 Ubuntu + py314-test-opentelemetry-exporter-opencensus_ubuntu-latest: + name: opentelemetry-exporter-opencensus 3.14 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 + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.14" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-exporter-otlp-proto-grpc-oldest -- -ra + run: tox -e py314-test-opentelemetry-exporter-opencensus -- -ra - py312-test-opentelemetry-exporter-otlp-proto-grpc-latest_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-grpc-latest 3.12 Ubuntu + py310-test-opentelemetry-exporter-otlp-proto-common_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-common 3.10 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 + - name: Set up Python 3.10 uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.10" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-exporter-otlp-proto-grpc-latest -- -ra + run: tox -e py310-test-opentelemetry-exporter-otlp-proto-common -- -ra - py313-test-opentelemetry-exporter-otlp-proto-grpc-oldest_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-grpc-oldest 3.13 Ubuntu + py311-test-opentelemetry-exporter-otlp-proto-common_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-common 3.11 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 + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: "3.11" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-exporter-otlp-proto-grpc-oldest -- -ra + run: tox -e py311-test-opentelemetry-exporter-otlp-proto-common -- -ra - py313-test-opentelemetry-exporter-otlp-proto-grpc-latest_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-grpc-latest 3.13 Ubuntu + py312-test-opentelemetry-exporter-otlp-proto-common_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-common 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.13 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: "3.12" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-exporter-otlp-proto-grpc-latest -- -ra + run: tox -e py312-test-opentelemetry-exporter-otlp-proto-common -- -ra - py314-test-opentelemetry-exporter-otlp-proto-grpc-oldest_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-grpc-oldest 3.14 Ubuntu + py313-test-opentelemetry-exporter-otlp-proto-common_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-common 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.14 + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: "3.14" + python-version: "3.13" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-exporter-otlp-proto-grpc-oldest -- -ra + run: tox -e py313-test-opentelemetry-exporter-otlp-proto-common -- -ra - py314-test-opentelemetry-exporter-otlp-proto-grpc-latest_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-grpc-latest 3.14 Ubuntu + py314-test-opentelemetry-exporter-otlp-proto-common_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-common 3.14 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2058,29 +2058,67 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-exporter-otlp-proto-grpc-latest -- -ra + run: tox -e py314-test-opentelemetry-exporter-otlp-proto-common -- -ra - py310-test-opentelemetry-exporter-otlp-proto-http_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-http 3.10 Ubuntu + py314t-test-opentelemetry-exporter-otlp-proto-common_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-common 3.14t Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.10 + - name: Set up Python 3.14t uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.14t" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-exporter-otlp-proto-http -- -ra + run: tox -e py314t-test-opentelemetry-exporter-otlp-proto-common -- -ra - py311-test-opentelemetry-exporter-otlp-proto-http_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-http 3.11 Ubuntu + pypy3-test-opentelemetry-exporter-otlp-proto-common_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-common pypy-3.10 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.10 + uses: actions/setup-python@v5 + with: + python-version: "pypy-3.10" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e pypy3-test-opentelemetry-exporter-otlp-proto-common -- -ra + + py310-test-opentelemetry-exporter-otlp-json-common_ubuntu-latest: + name: opentelemetry-exporter-otlp-json-common 3.10 Ubuntu + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py310-test-opentelemetry-exporter-otlp-json-common -- -ra + + py311-test-opentelemetry-exporter-otlp-json-common_ubuntu-latest: + name: opentelemetry-exporter-otlp-json-common 3.11 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2096,10 +2134,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-exporter-otlp-proto-http -- -ra + run: tox -e py311-test-opentelemetry-exporter-otlp-json-common -- -ra - py312-test-opentelemetry-exporter-otlp-proto-http_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-http 3.12 Ubuntu + py312-test-opentelemetry-exporter-otlp-json-common_ubuntu-latest: + name: opentelemetry-exporter-otlp-json-common 3.12 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2115,10 +2153,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-exporter-otlp-proto-http -- -ra + run: tox -e py312-test-opentelemetry-exporter-otlp-json-common -- -ra - py313-test-opentelemetry-exporter-otlp-proto-http_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-http 3.13 Ubuntu + py313-test-opentelemetry-exporter-otlp-json-common_ubuntu-latest: + name: opentelemetry-exporter-otlp-json-common 3.13 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2134,10 +2172,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-exporter-otlp-proto-http -- -ra + run: tox -e py313-test-opentelemetry-exporter-otlp-json-common -- -ra - py314-test-opentelemetry-exporter-otlp-proto-http_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-http 3.14 Ubuntu + py314-test-opentelemetry-exporter-otlp-json-common_ubuntu-latest: + name: opentelemetry-exporter-otlp-json-common 3.14 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2153,10 +2191,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-exporter-otlp-proto-http -- -ra + run: tox -e py314-test-opentelemetry-exporter-otlp-json-common -- -ra - py314t-test-opentelemetry-exporter-otlp-proto-http_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-http 3.14t Ubuntu + py314t-test-opentelemetry-exporter-otlp-json-common_ubuntu-latest: + name: opentelemetry-exporter-otlp-json-common 3.14t Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2172,10 +2210,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314t-test-opentelemetry-exporter-otlp-proto-http -- -ra + run: tox -e py314t-test-opentelemetry-exporter-otlp-json-common -- -ra - pypy3-test-opentelemetry-exporter-otlp-proto-http_ubuntu-latest: - name: opentelemetry-exporter-otlp-proto-http pypy-3.10 Ubuntu + pypy3-test-opentelemetry-exporter-otlp-json-common_ubuntu-latest: + name: opentelemetry-exporter-otlp-json-common pypy-3.10 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2191,10 +2229,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-exporter-otlp-proto-http -- -ra + run: tox -e pypy3-test-opentelemetry-exporter-otlp-json-common -- -ra - py310-test-opentelemetry-exporter-prometheus_ubuntu-latest: - name: opentelemetry-exporter-prometheus 3.10 Ubuntu + py310-test-opentelemetry-exporter-otlp-combined_ubuntu-latest: + name: opentelemetry-exporter-otlp-combined 3.10 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2210,10 +2248,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-exporter-prometheus -- -ra + run: tox -e py310-test-opentelemetry-exporter-otlp-combined -- -ra - py311-test-opentelemetry-exporter-prometheus_ubuntu-latest: - name: opentelemetry-exporter-prometheus 3.11 Ubuntu + py311-test-opentelemetry-exporter-otlp-combined_ubuntu-latest: + name: opentelemetry-exporter-otlp-combined 3.11 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2229,10 +2267,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-exporter-prometheus -- -ra + run: tox -e py311-test-opentelemetry-exporter-otlp-combined -- -ra - py312-test-opentelemetry-exporter-prometheus_ubuntu-latest: - name: opentelemetry-exporter-prometheus 3.12 Ubuntu + py312-test-opentelemetry-exporter-otlp-combined_ubuntu-latest: + name: opentelemetry-exporter-otlp-combined 3.12 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2248,10 +2286,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-exporter-prometheus -- -ra + run: tox -e py312-test-opentelemetry-exporter-otlp-combined -- -ra - py313-test-opentelemetry-exporter-prometheus_ubuntu-latest: - name: opentelemetry-exporter-prometheus 3.13 Ubuntu + py313-test-opentelemetry-exporter-otlp-combined_ubuntu-latest: + name: opentelemetry-exporter-otlp-combined 3.13 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2267,10 +2305,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-exporter-prometheus -- -ra + run: tox -e py313-test-opentelemetry-exporter-otlp-combined -- -ra - py314-test-opentelemetry-exporter-prometheus_ubuntu-latest: - name: opentelemetry-exporter-prometheus 3.14 Ubuntu + py314-test-opentelemetry-exporter-otlp-combined_ubuntu-latest: + name: opentelemetry-exporter-otlp-combined 3.14 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2286,67 +2324,67 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-exporter-prometheus -- -ra + run: tox -e py314-test-opentelemetry-exporter-otlp-combined -- -ra - py314t-test-opentelemetry-exporter-prometheus_ubuntu-latest: - name: opentelemetry-exporter-prometheus 3.14t Ubuntu + py310-test-opentelemetry-exporter-otlp-proto-grpc-oldest_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-grpc-oldest 3.10 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14t + - name: Set up Python 3.10 uses: actions/setup-python@v5 with: - python-version: "3.14t" + python-version: "3.10" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314t-test-opentelemetry-exporter-prometheus -- -ra + run: tox -e py310-test-opentelemetry-exporter-otlp-proto-grpc-oldest -- -ra - pypy3-test-opentelemetry-exporter-prometheus_ubuntu-latest: - name: opentelemetry-exporter-prometheus pypy-3.10 Ubuntu + py310-test-opentelemetry-exporter-otlp-proto-grpc-latest_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-grpc-latest 3.10 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.10 + - name: Set up Python 3.10 uses: actions/setup-python@v5 with: - python-version: "pypy-3.10" + python-version: "3.10" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-exporter-prometheus -- -ra + run: tox -e py310-test-opentelemetry-exporter-otlp-proto-grpc-latest -- -ra - py310-test-opentelemetry-exporter-zipkin-combined_ubuntu-latest: - name: opentelemetry-exporter-zipkin-combined 3.10 Ubuntu + py311-test-opentelemetry-exporter-otlp-proto-grpc-oldest_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-grpc-oldest 3.11 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.10 + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.11" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-exporter-zipkin-combined -- -ra + run: tox -e py311-test-opentelemetry-exporter-otlp-proto-grpc-oldest -- -ra - py311-test-opentelemetry-exporter-zipkin-combined_ubuntu-latest: - name: opentelemetry-exporter-zipkin-combined 3.11 Ubuntu + py311-test-opentelemetry-exporter-otlp-proto-grpc-latest_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-grpc-latest 3.11 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2362,10 +2400,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-exporter-zipkin-combined -- -ra + run: tox -e py311-test-opentelemetry-exporter-otlp-proto-grpc-latest -- -ra - py312-test-opentelemetry-exporter-zipkin-combined_ubuntu-latest: - name: opentelemetry-exporter-zipkin-combined 3.12 Ubuntu + py312-test-opentelemetry-exporter-otlp-proto-grpc-oldest_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-grpc-oldest 3.12 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2381,10 +2419,29 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-exporter-zipkin-combined -- -ra + run: tox -e py312-test-opentelemetry-exporter-otlp-proto-grpc-oldest -- -ra - py313-test-opentelemetry-exporter-zipkin-combined_ubuntu-latest: - name: opentelemetry-exporter-zipkin-combined 3.13 Ubuntu + py312-test-opentelemetry-exporter-otlp-proto-grpc-latest_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-grpc-latest 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-opentelemetry-exporter-otlp-proto-grpc-latest -- -ra + + py313-test-opentelemetry-exporter-otlp-proto-grpc-oldest_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-grpc-oldest 3.13 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2400,67 +2457,67 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-exporter-zipkin-combined -- -ra + run: tox -e py313-test-opentelemetry-exporter-otlp-proto-grpc-oldest -- -ra - py314-test-opentelemetry-exporter-zipkin-combined_ubuntu-latest: - name: opentelemetry-exporter-zipkin-combined 3.14 Ubuntu + py313-test-opentelemetry-exporter-otlp-proto-grpc-latest_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-grpc-latest 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.14 + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: "3.14" + python-version: "3.13" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-exporter-zipkin-combined -- -ra + run: tox -e py313-test-opentelemetry-exporter-otlp-proto-grpc-latest -- -ra - py314t-test-opentelemetry-exporter-zipkin-combined_ubuntu-latest: - name: opentelemetry-exporter-zipkin-combined 3.14t Ubuntu + py314-test-opentelemetry-exporter-otlp-proto-grpc-oldest_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-grpc-oldest 3.14 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14t + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: "3.14t" + python-version: "3.14" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314t-test-opentelemetry-exporter-zipkin-combined -- -ra + run: tox -e py314-test-opentelemetry-exporter-otlp-proto-grpc-oldest -- -ra - pypy3-test-opentelemetry-exporter-zipkin-combined_ubuntu-latest: - name: opentelemetry-exporter-zipkin-combined pypy-3.10 Ubuntu + py314-test-opentelemetry-exporter-otlp-proto-grpc-latest_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-grpc-latest 3.14 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.10 + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: "pypy-3.10" + python-version: "3.14" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-exporter-zipkin-combined -- -ra + run: tox -e py314-test-opentelemetry-exporter-otlp-proto-grpc-latest -- -ra - py310-test-opentelemetry-exporter-zipkin-proto-http_ubuntu-latest: - name: opentelemetry-exporter-zipkin-proto-http 3.10 Ubuntu + py310-test-opentelemetry-exporter-otlp-proto-http_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-http 3.10 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2476,10 +2533,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-exporter-zipkin-proto-http -- -ra + run: tox -e py310-test-opentelemetry-exporter-otlp-proto-http -- -ra - py311-test-opentelemetry-exporter-zipkin-proto-http_ubuntu-latest: - name: opentelemetry-exporter-zipkin-proto-http 3.11 Ubuntu + py311-test-opentelemetry-exporter-otlp-proto-http_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-http 3.11 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2495,10 +2552,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-exporter-zipkin-proto-http -- -ra + run: tox -e py311-test-opentelemetry-exporter-otlp-proto-http -- -ra - py312-test-opentelemetry-exporter-zipkin-proto-http_ubuntu-latest: - name: opentelemetry-exporter-zipkin-proto-http 3.12 Ubuntu + py312-test-opentelemetry-exporter-otlp-proto-http_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-http 3.12 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2514,10 +2571,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-exporter-zipkin-proto-http -- -ra + run: tox -e py312-test-opentelemetry-exporter-otlp-proto-http -- -ra - py313-test-opentelemetry-exporter-zipkin-proto-http_ubuntu-latest: - name: opentelemetry-exporter-zipkin-proto-http 3.13 Ubuntu + py313-test-opentelemetry-exporter-otlp-proto-http_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-http 3.13 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2533,10 +2590,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-exporter-zipkin-proto-http -- -ra + run: tox -e py313-test-opentelemetry-exporter-otlp-proto-http -- -ra - py314-test-opentelemetry-exporter-zipkin-proto-http_ubuntu-latest: - name: opentelemetry-exporter-zipkin-proto-http 3.14 Ubuntu + py314-test-opentelemetry-exporter-otlp-proto-http_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-http 3.14 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2552,10 +2609,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-exporter-zipkin-proto-http -- -ra + run: tox -e py314-test-opentelemetry-exporter-otlp-proto-http -- -ra - py314t-test-opentelemetry-exporter-zipkin-proto-http_ubuntu-latest: - name: opentelemetry-exporter-zipkin-proto-http 3.14t Ubuntu + py314t-test-opentelemetry-exporter-otlp-proto-http_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-http 3.14t Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2571,10 +2628,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314t-test-opentelemetry-exporter-zipkin-proto-http -- -ra + run: tox -e py314t-test-opentelemetry-exporter-otlp-proto-http -- -ra - pypy3-test-opentelemetry-exporter-zipkin-proto-http_ubuntu-latest: - name: opentelemetry-exporter-zipkin-proto-http pypy-3.10 Ubuntu + pypy3-test-opentelemetry-exporter-otlp-proto-http_ubuntu-latest: + name: opentelemetry-exporter-otlp-proto-http pypy-3.10 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2590,10 +2647,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-exporter-zipkin-proto-http -- -ra + run: tox -e pypy3-test-opentelemetry-exporter-otlp-proto-http -- -ra - py310-test-opentelemetry-exporter-zipkin-json_ubuntu-latest: - name: opentelemetry-exporter-zipkin-json 3.10 Ubuntu + py310-test-opentelemetry-exporter-prometheus_ubuntu-latest: + name: opentelemetry-exporter-prometheus 3.10 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2609,10 +2666,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-exporter-zipkin-json -- -ra + run: tox -e py310-test-opentelemetry-exporter-prometheus -- -ra - py311-test-opentelemetry-exporter-zipkin-json_ubuntu-latest: - name: opentelemetry-exporter-zipkin-json 3.11 Ubuntu + py311-test-opentelemetry-exporter-prometheus_ubuntu-latest: + name: opentelemetry-exporter-prometheus 3.11 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2628,11 +2685,11 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-exporter-zipkin-json -- -ra + run: tox -e py311-test-opentelemetry-exporter-prometheus -- -ra - py312-test-opentelemetry-exporter-zipkin-json_ubuntu-latest: - name: opentelemetry-exporter-zipkin-json 3.12 Ubuntu - runs-on: ubuntu-latest + py312-test-opentelemetry-exporter-prometheus_ubuntu-latest: + name: opentelemetry-exporter-prometheus 3.12 Ubuntu + runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout repo @ SHA - ${{ github.sha }} @@ -2647,10 +2704,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-exporter-zipkin-json -- -ra + run: tox -e py312-test-opentelemetry-exporter-prometheus -- -ra - py313-test-opentelemetry-exporter-zipkin-json_ubuntu-latest: - name: opentelemetry-exporter-zipkin-json 3.13 Ubuntu + py313-test-opentelemetry-exporter-prometheus_ubuntu-latest: + name: opentelemetry-exporter-prometheus 3.13 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2666,10 +2723,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-exporter-zipkin-json -- -ra + run: tox -e py313-test-opentelemetry-exporter-prometheus -- -ra - py314-test-opentelemetry-exporter-zipkin-json_ubuntu-latest: - name: opentelemetry-exporter-zipkin-json 3.14 Ubuntu + py314-test-opentelemetry-exporter-prometheus_ubuntu-latest: + name: opentelemetry-exporter-prometheus 3.14 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2685,10 +2742,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-exporter-zipkin-json -- -ra + run: tox -e py314-test-opentelemetry-exporter-prometheus -- -ra - py314t-test-opentelemetry-exporter-zipkin-json_ubuntu-latest: - name: opentelemetry-exporter-zipkin-json 3.14t Ubuntu + py314t-test-opentelemetry-exporter-prometheus_ubuntu-latest: + name: opentelemetry-exporter-prometheus 3.14t Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2704,10 +2761,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314t-test-opentelemetry-exporter-zipkin-json -- -ra + run: tox -e py314t-test-opentelemetry-exporter-prometheus -- -ra - pypy3-test-opentelemetry-exporter-zipkin-json_ubuntu-latest: - name: opentelemetry-exporter-zipkin-json pypy-3.10 Ubuntu + pypy3-test-opentelemetry-exporter-prometheus_ubuntu-latest: + name: opentelemetry-exporter-prometheus pypy-3.10 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2723,10 +2780,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-exporter-zipkin-json -- -ra + run: tox -e pypy3-test-opentelemetry-exporter-prometheus -- -ra - py310-test-opentelemetry-propagator-b3_ubuntu-latest: - name: opentelemetry-propagator-b3 3.10 Ubuntu + py310-test-opentelemetry-exporter-zipkin-combined_ubuntu-latest: + name: opentelemetry-exporter-zipkin-combined 3.10 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2742,10 +2799,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-propagator-b3 -- -ra + run: tox -e py310-test-opentelemetry-exporter-zipkin-combined -- -ra - py311-test-opentelemetry-propagator-b3_ubuntu-latest: - name: opentelemetry-propagator-b3 3.11 Ubuntu + py311-test-opentelemetry-exporter-zipkin-combined_ubuntu-latest: + name: opentelemetry-exporter-zipkin-combined 3.11 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2761,10 +2818,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-propagator-b3 -- -ra + run: tox -e py311-test-opentelemetry-exporter-zipkin-combined -- -ra - py312-test-opentelemetry-propagator-b3_ubuntu-latest: - name: opentelemetry-propagator-b3 3.12 Ubuntu + py312-test-opentelemetry-exporter-zipkin-combined_ubuntu-latest: + name: opentelemetry-exporter-zipkin-combined 3.12 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2780,10 +2837,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-propagator-b3 -- -ra + run: tox -e py312-test-opentelemetry-exporter-zipkin-combined -- -ra - py313-test-opentelemetry-propagator-b3_ubuntu-latest: - name: opentelemetry-propagator-b3 3.13 Ubuntu + py313-test-opentelemetry-exporter-zipkin-combined_ubuntu-latest: + name: opentelemetry-exporter-zipkin-combined 3.13 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2799,10 +2856,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-propagator-b3 -- -ra + run: tox -e py313-test-opentelemetry-exporter-zipkin-combined -- -ra - py314-test-opentelemetry-propagator-b3_ubuntu-latest: - name: opentelemetry-propagator-b3 3.14 Ubuntu + py314-test-opentelemetry-exporter-zipkin-combined_ubuntu-latest: + name: opentelemetry-exporter-zipkin-combined 3.14 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2818,10 +2875,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-propagator-b3 -- -ra + run: tox -e py314-test-opentelemetry-exporter-zipkin-combined -- -ra - py314t-test-opentelemetry-propagator-b3_ubuntu-latest: - name: opentelemetry-propagator-b3 3.14t Ubuntu + py314t-test-opentelemetry-exporter-zipkin-combined_ubuntu-latest: + name: opentelemetry-exporter-zipkin-combined 3.14t Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2837,10 +2894,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314t-test-opentelemetry-propagator-b3 -- -ra + run: tox -e py314t-test-opentelemetry-exporter-zipkin-combined -- -ra - pypy3-test-opentelemetry-propagator-b3_ubuntu-latest: - name: opentelemetry-propagator-b3 pypy-3.10 Ubuntu + pypy3-test-opentelemetry-exporter-zipkin-combined_ubuntu-latest: + name: opentelemetry-exporter-zipkin-combined pypy-3.10 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2856,10 +2913,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-propagator-b3 -- -ra + run: tox -e pypy3-test-opentelemetry-exporter-zipkin-combined -- -ra - py310-test-opentelemetry-propagator-jaeger_ubuntu-latest: - name: opentelemetry-propagator-jaeger 3.10 Ubuntu + py310-test-opentelemetry-exporter-zipkin-proto-http_ubuntu-latest: + name: opentelemetry-exporter-zipkin-proto-http 3.10 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2875,10 +2932,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-propagator-jaeger -- -ra + run: tox -e py310-test-opentelemetry-exporter-zipkin-proto-http -- -ra - py311-test-opentelemetry-propagator-jaeger_ubuntu-latest: - name: opentelemetry-propagator-jaeger 3.11 Ubuntu + py311-test-opentelemetry-exporter-zipkin-proto-http_ubuntu-latest: + name: opentelemetry-exporter-zipkin-proto-http 3.11 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2894,10 +2951,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-propagator-jaeger -- -ra + run: tox -e py311-test-opentelemetry-exporter-zipkin-proto-http -- -ra - py312-test-opentelemetry-propagator-jaeger_ubuntu-latest: - name: opentelemetry-propagator-jaeger 3.12 Ubuntu + py312-test-opentelemetry-exporter-zipkin-proto-http_ubuntu-latest: + name: opentelemetry-exporter-zipkin-proto-http 3.12 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2913,10 +2970,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-propagator-jaeger -- -ra + run: tox -e py312-test-opentelemetry-exporter-zipkin-proto-http -- -ra - py313-test-opentelemetry-propagator-jaeger_ubuntu-latest: - name: opentelemetry-propagator-jaeger 3.13 Ubuntu + py313-test-opentelemetry-exporter-zipkin-proto-http_ubuntu-latest: + name: opentelemetry-exporter-zipkin-proto-http 3.13 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2932,10 +2989,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-propagator-jaeger -- -ra + run: tox -e py313-test-opentelemetry-exporter-zipkin-proto-http -- -ra - py314-test-opentelemetry-propagator-jaeger_ubuntu-latest: - name: opentelemetry-propagator-jaeger 3.14 Ubuntu + py314-test-opentelemetry-exporter-zipkin-proto-http_ubuntu-latest: + name: opentelemetry-exporter-zipkin-proto-http 3.14 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2951,10 +3008,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-propagator-jaeger -- -ra + run: tox -e py314-test-opentelemetry-exporter-zipkin-proto-http -- -ra - py314t-test-opentelemetry-propagator-jaeger_ubuntu-latest: - name: opentelemetry-propagator-jaeger 3.14t Ubuntu + py314t-test-opentelemetry-exporter-zipkin-proto-http_ubuntu-latest: + name: opentelemetry-exporter-zipkin-proto-http 3.14t Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2970,10 +3027,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314t-test-opentelemetry-propagator-jaeger -- -ra + run: tox -e py314t-test-opentelemetry-exporter-zipkin-proto-http -- -ra - pypy3-test-opentelemetry-propagator-jaeger_ubuntu-latest: - name: opentelemetry-propagator-jaeger pypy-3.10 Ubuntu + pypy3-test-opentelemetry-exporter-zipkin-proto-http_ubuntu-latest: + name: opentelemetry-exporter-zipkin-proto-http pypy-3.10 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: @@ -2989,22 +3046,16 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-propagator-jaeger -- -ra + run: tox -e pypy3-test-opentelemetry-exporter-zipkin-proto-http -- -ra - py310-test-opentelemetry-test-utils_ubuntu-latest: - name: opentelemetry-test-utils 3.10 Ubuntu + py310-test-opentelemetry-exporter-zipkin-json_ubuntu-latest: + name: opentelemetry-exporter-zipkin-json 3.10 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Install weaver - run: | - WEAVER_URL="https://github.com/open-telemetry/weaver/releases/download/${{ env.WEAVER_VERSION }}/weaver-x86_64-unknown-linux-gnu.tar.xz" - curl -sSL "$WEAVER_URL" | tar -xJ -C /tmp weaver-x86_64-unknown-linux-gnu/weaver - sudo mv /tmp/weaver-x86_64-unknown-linux-gnu/weaver /usr/local/bin/weaver - - name: Set up Python 3.10 uses: actions/setup-python@v5 with: @@ -3014,22 +3065,16 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-test-utils -- -ra + run: tox -e py310-test-opentelemetry-exporter-zipkin-json -- -ra - py311-test-opentelemetry-test-utils_ubuntu-latest: - name: opentelemetry-test-utils 3.11 Ubuntu + py311-test-opentelemetry-exporter-zipkin-json_ubuntu-latest: + name: opentelemetry-exporter-zipkin-json 3.11 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Install weaver - run: | - WEAVER_URL="https://github.com/open-telemetry/weaver/releases/download/${{ env.WEAVER_VERSION }}/weaver-x86_64-unknown-linux-gnu.tar.xz" - curl -sSL "$WEAVER_URL" | tar -xJ -C /tmp weaver-x86_64-unknown-linux-gnu/weaver - sudo mv /tmp/weaver-x86_64-unknown-linux-gnu/weaver /usr/local/bin/weaver - - name: Set up Python 3.11 uses: actions/setup-python@v5 with: @@ -3039,22 +3084,16 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-test-utils -- -ra + run: tox -e py311-test-opentelemetry-exporter-zipkin-json -- -ra - py312-test-opentelemetry-test-utils_ubuntu-latest: - name: opentelemetry-test-utils 3.12 Ubuntu + py312-test-opentelemetry-exporter-zipkin-json_ubuntu-latest: + name: opentelemetry-exporter-zipkin-json 3.12 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Install weaver - run: | - WEAVER_URL="https://github.com/open-telemetry/weaver/releases/download/${{ env.WEAVER_VERSION }}/weaver-x86_64-unknown-linux-gnu.tar.xz" - curl -sSL "$WEAVER_URL" | tar -xJ -C /tmp weaver-x86_64-unknown-linux-gnu/weaver - sudo mv /tmp/weaver-x86_64-unknown-linux-gnu/weaver /usr/local/bin/weaver - - name: Set up Python 3.12 uses: actions/setup-python@v5 with: @@ -3064,22 +3103,16 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-test-utils -- -ra + run: tox -e py312-test-opentelemetry-exporter-zipkin-json -- -ra - py313-test-opentelemetry-test-utils_ubuntu-latest: - name: opentelemetry-test-utils 3.13 Ubuntu + py313-test-opentelemetry-exporter-zipkin-json_ubuntu-latest: + name: opentelemetry-exporter-zipkin-json 3.13 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Install weaver - run: | - WEAVER_URL="https://github.com/open-telemetry/weaver/releases/download/${{ env.WEAVER_VERSION }}/weaver-x86_64-unknown-linux-gnu.tar.xz" - curl -sSL "$WEAVER_URL" | tar -xJ -C /tmp weaver-x86_64-unknown-linux-gnu/weaver - sudo mv /tmp/weaver-x86_64-unknown-linux-gnu/weaver /usr/local/bin/weaver - - name: Set up Python 3.13 uses: actions/setup-python@v5 with: @@ -3089,22 +3122,16 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-test-utils -- -ra + run: tox -e py313-test-opentelemetry-exporter-zipkin-json -- -ra - py314-test-opentelemetry-test-utils_ubuntu-latest: - name: opentelemetry-test-utils 3.14 Ubuntu + py314-test-opentelemetry-exporter-zipkin-json_ubuntu-latest: + name: opentelemetry-exporter-zipkin-json 3.14 Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Install weaver - run: | - WEAVER_URL="https://github.com/open-telemetry/weaver/releases/download/${{ env.WEAVER_VERSION }}/weaver-x86_64-unknown-linux-gnu.tar.xz" - curl -sSL "$WEAVER_URL" | tar -xJ -C /tmp weaver-x86_64-unknown-linux-gnu/weaver - sudo mv /tmp/weaver-x86_64-unknown-linux-gnu/weaver /usr/local/bin/weaver - - name: Set up Python 3.14 uses: actions/setup-python@v5 with: @@ -3114,21 +3141,34 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-test-utils -- -ra + run: tox -e py314-test-opentelemetry-exporter-zipkin-json -- -ra - pypy3-test-opentelemetry-test-utils_ubuntu-latest: - name: opentelemetry-test-utils pypy-3.10 Ubuntu + py314t-test-opentelemetry-exporter-zipkin-json_ubuntu-latest: + name: opentelemetry-exporter-zipkin-json 3.14t Ubuntu runs-on: ubuntu-latest timeout-minutes: 30 steps: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Install weaver - run: | - WEAVER_URL="https://github.com/open-telemetry/weaver/releases/download/${{ env.WEAVER_VERSION }}/weaver-x86_64-unknown-linux-gnu.tar.xz" - curl -sSL "$WEAVER_URL" | tar -xJ -C /tmp weaver-x86_64-unknown-linux-gnu/weaver - sudo mv /tmp/weaver-x86_64-unknown-linux-gnu/weaver /usr/local/bin/weaver + - name: Set up Python 3.14t + uses: actions/setup-python@v5 + with: + python-version: "3.14t" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py314t-test-opentelemetry-exporter-zipkin-json -- -ra + + pypy3-test-opentelemetry-exporter-zipkin-json_ubuntu-latest: + name: opentelemetry-exporter-zipkin-json pypy-3.10 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.10 uses: actions/setup-python@v5 @@ -3139,15 +3179,13 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-test-utils -- -ra + run: tox -e pypy3-test-opentelemetry-exporter-zipkin-json -- -ra - py310-test-opentelemetry-api_windows-latest: - name: opentelemetry-api 3.10 Windows - runs-on: windows-latest + py310-test-opentelemetry-propagator-b3_ubuntu-latest: + name: opentelemetry-propagator-b3 3.10 Ubuntu + runs-on: ubuntu-latest timeout-minutes: 30 steps: - - name: Configure git to support long filenames - run: git config --system core.longpaths true - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 @@ -3160,15 +3198,13 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-api -- -ra + run: tox -e py310-test-opentelemetry-propagator-b3 -- -ra - py311-test-opentelemetry-api_windows-latest: - name: opentelemetry-api 3.11 Windows - runs-on: windows-latest + py311-test-opentelemetry-propagator-b3_ubuntu-latest: + name: opentelemetry-propagator-b3 3.11 Ubuntu + runs-on: ubuntu-latest timeout-minutes: 30 steps: - - name: Configure git to support long filenames - run: git config --system core.longpaths true - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 @@ -3181,15 +3217,13 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-api -- -ra + run: tox -e py311-test-opentelemetry-propagator-b3 -- -ra - py312-test-opentelemetry-api_windows-latest: - name: opentelemetry-api 3.12 Windows - runs-on: windows-latest + py312-test-opentelemetry-propagator-b3_ubuntu-latest: + name: opentelemetry-propagator-b3 3.12 Ubuntu + runs-on: ubuntu-latest timeout-minutes: 30 steps: - - name: Configure git to support long filenames - run: git config --system core.longpaths true - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 @@ -3202,15 +3236,13 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-api -- -ra + run: tox -e py312-test-opentelemetry-propagator-b3 -- -ra - py313-test-opentelemetry-api_windows-latest: - name: opentelemetry-api 3.13 Windows - runs-on: windows-latest + py313-test-opentelemetry-propagator-b3_ubuntu-latest: + name: opentelemetry-propagator-b3 3.13 Ubuntu + runs-on: ubuntu-latest timeout-minutes: 30 steps: - - name: Configure git to support long filenames - run: git config --system core.longpaths true - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 @@ -3223,15 +3255,13 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-api -- -ra + run: tox -e py313-test-opentelemetry-propagator-b3 -- -ra - py314-test-opentelemetry-api_windows-latest: - name: opentelemetry-api 3.14 Windows - runs-on: windows-latest + py314-test-opentelemetry-propagator-b3_ubuntu-latest: + name: opentelemetry-propagator-b3 3.14 Ubuntu + runs-on: ubuntu-latest timeout-minutes: 30 steps: - - name: Configure git to support long filenames - run: git config --system core.longpaths true - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 @@ -3244,31 +3274,814 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-api -- -ra + run: tox -e py314-test-opentelemetry-propagator-b3 -- -ra - py314t-test-opentelemetry-api_windows-latest: - name: opentelemetry-api 3.14t Windows - runs-on: windows-latest - timeout-minutes: 30 + py314t-test-opentelemetry-propagator-b3_ubuntu-latest: + name: opentelemetry-propagator-b3 3.14t Ubuntu + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.14t + uses: actions/setup-python@v5 + with: + python-version: "3.14t" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py314t-test-opentelemetry-propagator-b3 -- -ra + + pypy3-test-opentelemetry-propagator-b3_ubuntu-latest: + name: opentelemetry-propagator-b3 pypy-3.10 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.10 + uses: actions/setup-python@v5 + with: + python-version: "pypy-3.10" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e pypy3-test-opentelemetry-propagator-b3 -- -ra + + py310-test-opentelemetry-propagator-jaeger_ubuntu-latest: + name: opentelemetry-propagator-jaeger 3.10 Ubuntu + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py310-test-opentelemetry-propagator-jaeger -- -ra + + py311-test-opentelemetry-propagator-jaeger_ubuntu-latest: + name: opentelemetry-propagator-jaeger 3.11 Ubuntu + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py311-test-opentelemetry-propagator-jaeger -- -ra + + py312-test-opentelemetry-propagator-jaeger_ubuntu-latest: + name: opentelemetry-propagator-jaeger 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-opentelemetry-propagator-jaeger -- -ra + + py313-test-opentelemetry-propagator-jaeger_ubuntu-latest: + name: opentelemetry-propagator-jaeger 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-opentelemetry-propagator-jaeger -- -ra + + py314-test-opentelemetry-propagator-jaeger_ubuntu-latest: + name: opentelemetry-propagator-jaeger 3.14 Ubuntu + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.14 + uses: actions/setup-python@v5 + with: + python-version: "3.14" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py314-test-opentelemetry-propagator-jaeger -- -ra + + py314t-test-opentelemetry-propagator-jaeger_ubuntu-latest: + name: opentelemetry-propagator-jaeger 3.14t Ubuntu + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.14t + uses: actions/setup-python@v5 + with: + python-version: "3.14t" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py314t-test-opentelemetry-propagator-jaeger -- -ra + + pypy3-test-opentelemetry-propagator-jaeger_ubuntu-latest: + name: opentelemetry-propagator-jaeger pypy-3.10 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.10 + uses: actions/setup-python@v5 + with: + python-version: "pypy-3.10" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e pypy3-test-opentelemetry-propagator-jaeger -- -ra + + py310-test-opentelemetry-test-utils_ubuntu-latest: + name: opentelemetry-test-utils 3.10 Ubuntu + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Install weaver + run: | + WEAVER_URL="https://github.com/open-telemetry/weaver/releases/download/${{ env.WEAVER_VERSION }}/weaver-x86_64-unknown-linux-gnu.tar.xz" + curl -sSL "$WEAVER_URL" | tar -xJ -C /tmp weaver-x86_64-unknown-linux-gnu/weaver + sudo mv /tmp/weaver-x86_64-unknown-linux-gnu/weaver /usr/local/bin/weaver + + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py310-test-opentelemetry-test-utils -- -ra + + py311-test-opentelemetry-test-utils_ubuntu-latest: + name: opentelemetry-test-utils 3.11 Ubuntu + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Install weaver + run: | + WEAVER_URL="https://github.com/open-telemetry/weaver/releases/download/${{ env.WEAVER_VERSION }}/weaver-x86_64-unknown-linux-gnu.tar.xz" + curl -sSL "$WEAVER_URL" | tar -xJ -C /tmp weaver-x86_64-unknown-linux-gnu/weaver + sudo mv /tmp/weaver-x86_64-unknown-linux-gnu/weaver /usr/local/bin/weaver + + - name: Set up Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py311-test-opentelemetry-test-utils -- -ra + + py312-test-opentelemetry-test-utils_ubuntu-latest: + name: opentelemetry-test-utils 3.12 Ubuntu + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Install weaver + run: | + WEAVER_URL="https://github.com/open-telemetry/weaver/releases/download/${{ env.WEAVER_VERSION }}/weaver-x86_64-unknown-linux-gnu.tar.xz" + curl -sSL "$WEAVER_URL" | tar -xJ -C /tmp weaver-x86_64-unknown-linux-gnu/weaver + sudo mv /tmp/weaver-x86_64-unknown-linux-gnu/weaver /usr/local/bin/weaver + + - 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-opentelemetry-test-utils -- -ra + + py313-test-opentelemetry-test-utils_ubuntu-latest: + name: opentelemetry-test-utils 3.13 Ubuntu + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Install weaver + run: | + WEAVER_URL="https://github.com/open-telemetry/weaver/releases/download/${{ env.WEAVER_VERSION }}/weaver-x86_64-unknown-linux-gnu.tar.xz" + curl -sSL "$WEAVER_URL" | tar -xJ -C /tmp weaver-x86_64-unknown-linux-gnu/weaver + sudo mv /tmp/weaver-x86_64-unknown-linux-gnu/weaver /usr/local/bin/weaver + + - 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-opentelemetry-test-utils -- -ra + + py314-test-opentelemetry-test-utils_ubuntu-latest: + name: opentelemetry-test-utils 3.14 Ubuntu + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Install weaver + run: | + WEAVER_URL="https://github.com/open-telemetry/weaver/releases/download/${{ env.WEAVER_VERSION }}/weaver-x86_64-unknown-linux-gnu.tar.xz" + curl -sSL "$WEAVER_URL" | tar -xJ -C /tmp weaver-x86_64-unknown-linux-gnu/weaver + sudo mv /tmp/weaver-x86_64-unknown-linux-gnu/weaver /usr/local/bin/weaver + + - name: Set up Python 3.14 + uses: actions/setup-python@v5 + with: + python-version: "3.14" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py314-test-opentelemetry-test-utils -- -ra + + pypy3-test-opentelemetry-test-utils_ubuntu-latest: + name: opentelemetry-test-utils pypy-3.10 Ubuntu + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Install weaver + run: | + WEAVER_URL="https://github.com/open-telemetry/weaver/releases/download/${{ env.WEAVER_VERSION }}/weaver-x86_64-unknown-linux-gnu.tar.xz" + curl -sSL "$WEAVER_URL" | tar -xJ -C /tmp weaver-x86_64-unknown-linux-gnu/weaver + sudo mv /tmp/weaver-x86_64-unknown-linux-gnu/weaver /usr/local/bin/weaver + + - name: Set up Python pypy-3.10 + uses: actions/setup-python@v5 + with: + python-version: "pypy-3.10" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e pypy3-test-opentelemetry-test-utils -- -ra + + py310-test-opentelemetry-api_windows-latest: + name: opentelemetry-api 3.10 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py310-test-opentelemetry-api -- -ra + + py311-test-opentelemetry-api_windows-latest: + name: opentelemetry-api 3.11 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py311-test-opentelemetry-api -- -ra + + py312-test-opentelemetry-api_windows-latest: + name: opentelemetry-api 3.12 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - 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-opentelemetry-api -- -ra + + py313-test-opentelemetry-api_windows-latest: + name: opentelemetry-api 3.13 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - 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-opentelemetry-api -- -ra + + py314-test-opentelemetry-api_windows-latest: + name: opentelemetry-api 3.14 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.14 + uses: actions/setup-python@v5 + with: + python-version: "3.14" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py314-test-opentelemetry-api -- -ra + + py314t-test-opentelemetry-api_windows-latest: + name: opentelemetry-api 3.14t Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.14t + uses: actions/setup-python@v5 + with: + python-version: "3.14t" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py314t-test-opentelemetry-api -- -ra + + pypy3-test-opentelemetry-api_windows-latest: + name: opentelemetry-api pypy-3.10 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python pypy-3.10 + uses: actions/setup-python@v5 + with: + python-version: "pypy-3.10" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e pypy3-test-opentelemetry-api -- -ra + + py310-test-opentelemetry-proto-gen-oldest_windows-latest: + name: opentelemetry-proto-gen-oldest 3.10 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py310-test-opentelemetry-proto-gen-oldest -- -ra + + py310-test-opentelemetry-proto-gen-latest_windows-latest: + name: opentelemetry-proto-gen-latest 3.10 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py310-test-opentelemetry-proto-gen-latest -- -ra + + py311-test-opentelemetry-proto-gen-oldest_windows-latest: + name: opentelemetry-proto-gen-oldest 3.11 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py311-test-opentelemetry-proto-gen-oldest -- -ra + + py311-test-opentelemetry-proto-gen-latest_windows-latest: + name: opentelemetry-proto-gen-latest 3.11 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py311-test-opentelemetry-proto-gen-latest -- -ra + + py312-test-opentelemetry-proto-gen-oldest_windows-latest: + name: opentelemetry-proto-gen-oldest 3.12 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - 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-opentelemetry-proto-gen-oldest -- -ra + + py312-test-opentelemetry-proto-gen-latest_windows-latest: + name: opentelemetry-proto-gen-latest 3.12 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - 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-opentelemetry-proto-gen-latest -- -ra + + py313-test-opentelemetry-proto-gen-oldest_windows-latest: + name: opentelemetry-proto-gen-oldest 3.13 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - 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-opentelemetry-proto-gen-oldest -- -ra + + py313-test-opentelemetry-proto-gen-latest_windows-latest: + name: opentelemetry-proto-gen-latest 3.13 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - 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-opentelemetry-proto-gen-latest -- -ra + + py314-test-opentelemetry-proto-gen-oldest_windows-latest: + name: opentelemetry-proto-gen-oldest 3.14 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.14 + uses: actions/setup-python@v5 + with: + python-version: "3.14" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py314-test-opentelemetry-proto-gen-oldest -- -ra + + py314-test-opentelemetry-proto-gen-latest_windows-latest: + name: opentelemetry-proto-gen-latest 3.14 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.14 + uses: actions/setup-python@v5 + with: + python-version: "3.14" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py314-test-opentelemetry-proto-gen-latest -- -ra + + py314t-test-opentelemetry-proto-gen-oldest_windows-latest: + name: opentelemetry-proto-gen-oldest 3.14t Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.14t + uses: actions/setup-python@v5 + with: + python-version: "3.14t" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py314t-test-opentelemetry-proto-gen-oldest -- -ra + + py314t-test-opentelemetry-proto-gen-latest_windows-latest: + name: opentelemetry-proto-gen-latest 3.14t Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.14t + uses: actions/setup-python@v5 + with: + python-version: "3.14t" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py314t-test-opentelemetry-proto-gen-latest -- -ra + + pypy3-test-opentelemetry-proto-gen-oldest_windows-latest: + name: opentelemetry-proto-gen-oldest pypy-3.10 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python pypy-3.10 + uses: actions/setup-python@v5 + with: + python-version: "pypy-3.10" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e pypy3-test-opentelemetry-proto-gen-oldest -- -ra + + pypy3-test-opentelemetry-proto-gen-latest_windows-latest: + name: opentelemetry-proto-gen-latest pypy-3.10 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python pypy-3.10 + uses: actions/setup-python@v5 + with: + python-version: "pypy-3.10" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e pypy3-test-opentelemetry-proto-gen-latest -- -ra + + py310-test-opentelemetry-protojson-gen-oldest_windows-latest: + name: opentelemetry-protojson-gen-oldest 3.10 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py310-test-opentelemetry-protojson-gen-oldest -- -ra + + py310-test-opentelemetry-protojson-gen-latest_windows-latest: + name: opentelemetry-protojson-gen-latest 3.10 Windows + runs-on: windows-latest + timeout-minutes: 30 steps: - name: Configure git to support long filenames run: git config --system core.longpaths true - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14t + - name: Set up Python 3.10 uses: actions/setup-python@v5 with: - python-version: "3.14t" + python-version: "3.10" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314t-test-opentelemetry-api -- -ra + run: tox -e py310-test-opentelemetry-protojson-gen-latest -- -ra - pypy3-test-opentelemetry-api_windows-latest: - name: opentelemetry-api pypy-3.10 Windows + py311-test-opentelemetry-protojson-gen-oldest_windows-latest: + name: opentelemetry-protojson-gen-oldest 3.11 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3277,19 +4090,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python pypy-3.10 + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: "pypy-3.10" + python-version: "3.11" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-api -- -ra + run: tox -e py311-test-opentelemetry-protojson-gen-oldest -- -ra - py310-test-opentelemetry-proto-gen-oldest_windows-latest: - name: opentelemetry-proto-gen-oldest 3.10 Windows + py311-test-opentelemetry-protojson-gen-latest_windows-latest: + name: opentelemetry-protojson-gen-latest 3.11 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3298,19 +4111,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.10 + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.11" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-proto-gen-oldest -- -ra + run: tox -e py311-test-opentelemetry-protojson-gen-latest -- -ra - py310-test-opentelemetry-proto-gen-latest_windows-latest: - name: opentelemetry-proto-gen-latest 3.10 Windows + py312-test-opentelemetry-protojson-gen-oldest_windows-latest: + name: opentelemetry-protojson-gen-oldest 3.12 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3319,19 +4132,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.10 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.12" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-proto-gen-latest -- -ra + run: tox -e py312-test-opentelemetry-protojson-gen-oldest -- -ra - py311-test-opentelemetry-proto-gen-oldest_windows-latest: - name: opentelemetry-proto-gen-oldest 3.11 Windows + py312-test-opentelemetry-protojson-gen-latest_windows-latest: + name: opentelemetry-protojson-gen-latest 3.12 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3340,19 +4153,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.11 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.12" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-proto-gen-oldest -- -ra + run: tox -e py312-test-opentelemetry-protojson-gen-latest -- -ra - py311-test-opentelemetry-proto-gen-latest_windows-latest: - name: opentelemetry-proto-gen-latest 3.11 Windows + py313-test-opentelemetry-protojson-gen-oldest_windows-latest: + name: opentelemetry-protojson-gen-oldest 3.13 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3361,19 +4174,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.11 + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.13" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-proto-gen-latest -- -ra + run: tox -e py313-test-opentelemetry-protojson-gen-oldest -- -ra - py312-test-opentelemetry-proto-gen-oldest_windows-latest: - name: opentelemetry-proto-gen-oldest 3.12 Windows + py313-test-opentelemetry-protojson-gen-latest_windows-latest: + name: opentelemetry-protojson-gen-latest 3.13 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3382,19 +4195,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-proto-gen-oldest -- -ra + run: tox -e py313-test-opentelemetry-protojson-gen-latest -- -ra - py312-test-opentelemetry-proto-gen-latest_windows-latest: - name: opentelemetry-proto-gen-latest 3.12 Windows + py314-test-opentelemetry-protojson-gen-oldest_windows-latest: + name: opentelemetry-protojson-gen-oldest 3.14 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3403,19 +4216,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.14" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-proto-gen-latest -- -ra + run: tox -e py314-test-opentelemetry-protojson-gen-oldest -- -ra - py313-test-opentelemetry-proto-gen-oldest_windows-latest: - name: opentelemetry-proto-gen-oldest 3.13 Windows + py314-test-opentelemetry-protojson-gen-latest_windows-latest: + name: opentelemetry-protojson-gen-latest 3.14 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3424,19 +4237,166 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.13 + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: "3.14" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-proto-gen-oldest -- -ra + run: tox -e py314-test-opentelemetry-protojson-gen-latest -- -ra - py313-test-opentelemetry-proto-gen-latest_windows-latest: - name: opentelemetry-proto-gen-latest 3.13 Windows + py314t-test-opentelemetry-protojson-gen-oldest_windows-latest: + name: opentelemetry-protojson-gen-oldest 3.14t Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.14t + uses: actions/setup-python@v5 + with: + python-version: "3.14t" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py314t-test-opentelemetry-protojson-gen-oldest -- -ra + + py314t-test-opentelemetry-protojson-gen-latest_windows-latest: + name: opentelemetry-protojson-gen-latest 3.14t Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.14t + uses: actions/setup-python@v5 + with: + python-version: "3.14t" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py314t-test-opentelemetry-protojson-gen-latest -- -ra + + pypy3-test-opentelemetry-protojson-gen-oldest_windows-latest: + name: opentelemetry-protojson-gen-oldest pypy-3.10 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python pypy-3.10 + uses: actions/setup-python@v5 + with: + python-version: "pypy-3.10" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e pypy3-test-opentelemetry-protojson-gen-oldest -- -ra + + pypy3-test-opentelemetry-protojson-gen-latest_windows-latest: + name: opentelemetry-protojson-gen-latest pypy-3.10 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python pypy-3.10 + uses: actions/setup-python@v5 + with: + python-version: "pypy-3.10" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e pypy3-test-opentelemetry-protojson-gen-latest -- -ra + + py310-test-opentelemetry-codegen-json_windows-latest: + name: opentelemetry-codegen-json 3.10 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.10 + uses: actions/setup-python@v5 + with: + python-version: "3.10" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py310-test-opentelemetry-codegen-json -- -ra + + py311-test-opentelemetry-codegen-json_windows-latest: + name: opentelemetry-codegen-json 3.11 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - name: Checkout repo @ SHA - ${{ github.sha }} + uses: actions/checkout@v4 + + - name: Set up Python 3.11 + uses: actions/setup-python@v5 + with: + python-version: "3.11" + + - name: Install tox + run: pip install tox-uv + + - name: Run tests + run: tox -e py311-test-opentelemetry-codegen-json -- -ra + + py312-test-opentelemetry-codegen-json_windows-latest: + name: opentelemetry-codegen-json 3.12 Windows + runs-on: windows-latest + timeout-minutes: 30 + steps: + - name: Configure git to support long filenames + run: git config --system core.longpaths true + - 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-opentelemetry-codegen-json -- -ra + + py313-test-opentelemetry-codegen-json_windows-latest: + name: opentelemetry-codegen-json 3.13 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3454,10 +4414,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-proto-gen-latest -- -ra + run: tox -e py313-test-opentelemetry-codegen-json -- -ra - py314-test-opentelemetry-proto-gen-oldest_windows-latest: - name: opentelemetry-proto-gen-oldest 3.14 Windows + py314-test-opentelemetry-codegen-json_windows-latest: + name: opentelemetry-codegen-json 3.14 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3475,10 +4435,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-proto-gen-oldest -- -ra + run: tox -e py314-test-opentelemetry-codegen-json -- -ra - py314-test-opentelemetry-proto-gen-latest_windows-latest: - name: opentelemetry-proto-gen-latest 3.14 Windows + py310-test-opentelemetry-sdk_windows-latest: + name: opentelemetry-sdk 3.10 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3487,19 +4447,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14 + - name: Set up Python 3.10 uses: actions/setup-python@v5 with: - python-version: "3.14" + python-version: "3.10" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-proto-gen-latest -- -ra + run: tox -e py310-test-opentelemetry-sdk -- -ra - py314t-test-opentelemetry-proto-gen-oldest_windows-latest: - name: opentelemetry-proto-gen-oldest 3.14t Windows + py311-test-opentelemetry-sdk_windows-latest: + name: opentelemetry-sdk 3.11 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3508,19 +4468,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14t + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: "3.14t" + python-version: "3.11" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314t-test-opentelemetry-proto-gen-oldest -- -ra + run: tox -e py311-test-opentelemetry-sdk -- -ra - py314t-test-opentelemetry-proto-gen-latest_windows-latest: - name: opentelemetry-proto-gen-latest 3.14t Windows + py312-test-opentelemetry-sdk_windows-latest: + name: opentelemetry-sdk 3.12 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3529,19 +4489,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14t + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.14t" + python-version: "3.12" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314t-test-opentelemetry-proto-gen-latest -- -ra + run: tox -e py312-test-opentelemetry-sdk -- -ra - pypy3-test-opentelemetry-proto-gen-oldest_windows-latest: - name: opentelemetry-proto-gen-oldest pypy-3.10 Windows + py313-test-opentelemetry-sdk_windows-latest: + name: opentelemetry-sdk 3.13 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3550,19 +4510,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python pypy-3.10 + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: "pypy-3.10" + python-version: "3.13" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-proto-gen-oldest -- -ra + run: tox -e py313-test-opentelemetry-sdk -- -ra - pypy3-test-opentelemetry-proto-gen-latest_windows-latest: - name: opentelemetry-proto-gen-latest pypy-3.10 Windows + py314-test-opentelemetry-sdk_windows-latest: + name: opentelemetry-sdk 3.14 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3571,19 +4531,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python pypy-3.10 + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: "pypy-3.10" + python-version: "3.14" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-proto-gen-latest -- -ra + run: tox -e py314-test-opentelemetry-sdk -- -ra - py310-test-opentelemetry-protojson-gen-oldest_windows-latest: - name: opentelemetry-protojson-gen-oldest 3.10 Windows + py314t-test-opentelemetry-sdk_windows-latest: + name: opentelemetry-sdk 3.14t Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3592,19 +4552,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.10 + - name: Set up Python 3.14t uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.14t" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-protojson-gen-oldest -- -ra + run: tox -e py314t-test-opentelemetry-sdk -- -ra - py310-test-opentelemetry-protojson-gen-latest_windows-latest: - name: opentelemetry-protojson-gen-latest 3.10 Windows + pypy3-test-opentelemetry-sdk_windows-latest: + name: opentelemetry-sdk pypy-3.10 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3613,19 +4573,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.10 + - name: Set up Python pypy-3.10 uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "pypy-3.10" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-protojson-gen-latest -- -ra + run: tox -e pypy3-test-opentelemetry-sdk -- -ra - py311-test-opentelemetry-protojson-gen-oldest_windows-latest: - name: opentelemetry-protojson-gen-oldest 3.11 Windows + py310-test-opentelemetry-semantic-conventions_windows-latest: + name: opentelemetry-semantic-conventions 3.10 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3634,19 +4594,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.11 + - name: Set up Python 3.10 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.10" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-protojson-gen-oldest -- -ra + run: tox -e py310-test-opentelemetry-semantic-conventions -- -ra - py311-test-opentelemetry-protojson-gen-latest_windows-latest: - name: opentelemetry-protojson-gen-latest 3.11 Windows + py311-test-opentelemetry-semantic-conventions_windows-latest: + name: opentelemetry-semantic-conventions 3.11 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3664,10 +4624,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-protojson-gen-latest -- -ra + run: tox -e py311-test-opentelemetry-semantic-conventions -- -ra - py312-test-opentelemetry-protojson-gen-oldest_windows-latest: - name: opentelemetry-protojson-gen-oldest 3.12 Windows + py312-test-opentelemetry-semantic-conventions_windows-latest: + name: opentelemetry-semantic-conventions 3.12 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3685,10 +4645,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-protojson-gen-oldest -- -ra + run: tox -e py312-test-opentelemetry-semantic-conventions -- -ra - py312-test-opentelemetry-protojson-gen-latest_windows-latest: - name: opentelemetry-protojson-gen-latest 3.12 Windows + py313-test-opentelemetry-semantic-conventions_windows-latest: + name: opentelemetry-semantic-conventions 3.13 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3697,19 +4657,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.13" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-protojson-gen-latest -- -ra + run: tox -e py313-test-opentelemetry-semantic-conventions -- -ra - py313-test-opentelemetry-protojson-gen-oldest_windows-latest: - name: opentelemetry-protojson-gen-oldest 3.13 Windows + py314-test-opentelemetry-semantic-conventions_windows-latest: + name: opentelemetry-semantic-conventions 3.14 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3718,19 +4678,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.13 + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: "3.14" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-protojson-gen-oldest -- -ra + run: tox -e py314-test-opentelemetry-semantic-conventions -- -ra - py313-test-opentelemetry-protojson-gen-latest_windows-latest: - name: opentelemetry-protojson-gen-latest 3.13 Windows + py314t-test-opentelemetry-semantic-conventions_windows-latest: + name: opentelemetry-semantic-conventions 3.14t Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3739,19 +4699,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.13 + - name: Set up Python 3.14t uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: "3.14t" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-protojson-gen-latest -- -ra + run: tox -e py314t-test-opentelemetry-semantic-conventions -- -ra - py314-test-opentelemetry-protojson-gen-oldest_windows-latest: - name: opentelemetry-protojson-gen-oldest 3.14 Windows + pypy3-test-opentelemetry-semantic-conventions_windows-latest: + name: opentelemetry-semantic-conventions pypy-3.10 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3760,19 +4720,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14 + - name: Set up Python pypy-3.10 uses: actions/setup-python@v5 with: - python-version: "3.14" + python-version: "pypy-3.10" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-protojson-gen-oldest -- -ra + run: tox -e pypy3-test-opentelemetry-semantic-conventions -- -ra - py314-test-opentelemetry-protojson-gen-latest_windows-latest: - name: opentelemetry-protojson-gen-latest 3.14 Windows + py310-test-opentelemetry-getting-started_windows-latest: + name: opentelemetry-getting-started 3.10 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3781,19 +4741,26 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14 + - name: Checkout contrib repo @ ${{ env.CONTRIB_REPO_SHA }} + uses: actions/checkout@v4 + with: + repository: open-telemetry/opentelemetry-python-contrib + ref: ${{ env.CONTRIB_REPO_SHA }} + path: opentelemetry-python-contrib + + - name: Set up Python 3.10 uses: actions/setup-python@v5 with: - python-version: "3.14" + python-version: "3.10" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-protojson-gen-latest -- -ra + run: tox -e py310-test-opentelemetry-getting-started -- -ra - py314t-test-opentelemetry-protojson-gen-oldest_windows-latest: - name: opentelemetry-protojson-gen-oldest 3.14t Windows + py311-test-opentelemetry-getting-started_windows-latest: + name: opentelemetry-getting-started 3.11 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3802,19 +4769,26 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14t + - name: Checkout contrib repo @ ${{ env.CONTRIB_REPO_SHA }} + uses: actions/checkout@v4 + with: + repository: open-telemetry/opentelemetry-python-contrib + ref: ${{ env.CONTRIB_REPO_SHA }} + path: opentelemetry-python-contrib + + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: "3.14t" + python-version: "3.11" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314t-test-opentelemetry-protojson-gen-oldest -- -ra + run: tox -e py311-test-opentelemetry-getting-started -- -ra - py314t-test-opentelemetry-protojson-gen-latest_windows-latest: - name: opentelemetry-protojson-gen-latest 3.14t Windows + py312-test-opentelemetry-getting-started_windows-latest: + name: opentelemetry-getting-started 3.12 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3823,19 +4797,26 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14t + - name: Checkout contrib repo @ ${{ env.CONTRIB_REPO_SHA }} + uses: actions/checkout@v4 + with: + repository: open-telemetry/opentelemetry-python-contrib + ref: ${{ env.CONTRIB_REPO_SHA }} + path: opentelemetry-python-contrib + + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.14t" + python-version: "3.12" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314t-test-opentelemetry-protojson-gen-latest -- -ra + run: tox -e py312-test-opentelemetry-getting-started -- -ra - pypy3-test-opentelemetry-protojson-gen-oldest_windows-latest: - name: opentelemetry-protojson-gen-oldest pypy-3.10 Windows + py313-test-opentelemetry-getting-started_windows-latest: + name: opentelemetry-getting-started 3.13 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3844,19 +4825,26 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python pypy-3.10 + - name: Checkout contrib repo @ ${{ env.CONTRIB_REPO_SHA }} + uses: actions/checkout@v4 + with: + repository: open-telemetry/opentelemetry-python-contrib + ref: ${{ env.CONTRIB_REPO_SHA }} + path: opentelemetry-python-contrib + + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: "pypy-3.10" + python-version: "3.13" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-protojson-gen-oldest -- -ra + run: tox -e py313-test-opentelemetry-getting-started -- -ra - pypy3-test-opentelemetry-protojson-gen-latest_windows-latest: - name: opentelemetry-protojson-gen-latest pypy-3.10 Windows + py314-test-opentelemetry-getting-started_windows-latest: + name: opentelemetry-getting-started 3.14 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3865,19 +4853,26 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python pypy-3.10 + - name: Checkout contrib repo @ ${{ env.CONTRIB_REPO_SHA }} + uses: actions/checkout@v4 + with: + repository: open-telemetry/opentelemetry-python-contrib + ref: ${{ env.CONTRIB_REPO_SHA }} + path: opentelemetry-python-contrib + + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: "pypy-3.10" + python-version: "3.14" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-protojson-gen-latest -- -ra + run: tox -e py314-test-opentelemetry-getting-started -- -ra - py310-test-opentelemetry-codegen-json_windows-latest: - name: opentelemetry-codegen-json 3.10 Windows + py310-test-opentelemetry-opentracing-shim_windows-latest: + name: opentelemetry-opentracing-shim 3.10 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3895,10 +4890,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-codegen-json -- -ra + run: tox -e py310-test-opentelemetry-opentracing-shim -- -ra - py311-test-opentelemetry-codegen-json_windows-latest: - name: opentelemetry-codegen-json 3.11 Windows + py311-test-opentelemetry-opentracing-shim_windows-latest: + name: opentelemetry-opentracing-shim 3.11 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3916,10 +4911,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-codegen-json -- -ra + run: tox -e py311-test-opentelemetry-opentracing-shim -- -ra - py312-test-opentelemetry-codegen-json_windows-latest: - name: opentelemetry-codegen-json 3.12 Windows + py312-test-opentelemetry-opentracing-shim_windows-latest: + name: opentelemetry-opentracing-shim 3.12 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3937,10 +4932,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-codegen-json -- -ra + run: tox -e py312-test-opentelemetry-opentracing-shim -- -ra - py313-test-opentelemetry-codegen-json_windows-latest: - name: opentelemetry-codegen-json 3.13 Windows + py313-test-opentelemetry-opentracing-shim_windows-latest: + name: opentelemetry-opentracing-shim 3.13 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3958,10 +4953,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-codegen-json -- -ra + run: tox -e py313-test-opentelemetry-opentracing-shim -- -ra - py314-test-opentelemetry-codegen-json_windows-latest: - name: opentelemetry-codegen-json 3.14 Windows + py314-test-opentelemetry-opentracing-shim_windows-latest: + name: opentelemetry-opentracing-shim 3.14 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3979,10 +4974,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-codegen-json -- -ra + run: tox -e py314-test-opentelemetry-opentracing-shim -- -ra - py310-test-opentelemetry-sdk_windows-latest: - name: opentelemetry-sdk 3.10 Windows + py314t-test-opentelemetry-opentracing-shim_windows-latest: + name: opentelemetry-opentracing-shim 3.14t Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -3991,19 +4986,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.10 + - name: Set up Python 3.14t uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.14t" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-sdk -- -ra + run: tox -e py314t-test-opentelemetry-opentracing-shim -- -ra - py311-test-opentelemetry-sdk_windows-latest: - name: opentelemetry-sdk 3.11 Windows + pypy3-test-opentelemetry-opentracing-shim_windows-latest: + name: opentelemetry-opentracing-shim pypy-3.10 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4012,19 +5007,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.11 + - name: Set up Python pypy-3.10 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "pypy-3.10" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-sdk -- -ra + run: tox -e pypy3-test-opentelemetry-opentracing-shim -- -ra - py312-test-opentelemetry-sdk_windows-latest: - name: opentelemetry-sdk 3.12 Windows + py310-test-opentelemetry-opencensus-shim_windows-latest: + name: opentelemetry-opencensus-shim 3.10 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4033,19 +5028,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python 3.10 uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.10" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-sdk -- -ra + run: tox -e py310-test-opentelemetry-opencensus-shim -- -ra - py313-test-opentelemetry-sdk_windows-latest: - name: opentelemetry-sdk 3.13 Windows + py311-test-opentelemetry-opencensus-shim_windows-latest: + name: opentelemetry-opencensus-shim 3.11 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4054,19 +5049,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.13 + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: "3.11" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-sdk -- -ra + run: tox -e py311-test-opentelemetry-opencensus-shim -- -ra - py314-test-opentelemetry-sdk_windows-latest: - name: opentelemetry-sdk 3.14 Windows + py312-test-opentelemetry-opencensus-shim_windows-latest: + name: opentelemetry-opencensus-shim 3.12 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4075,19 +5070,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.14" + python-version: "3.12" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-sdk -- -ra + run: tox -e py312-test-opentelemetry-opencensus-shim -- -ra - py314t-test-opentelemetry-sdk_windows-latest: - name: opentelemetry-sdk 3.14t Windows + py313-test-opentelemetry-opencensus-shim_windows-latest: + name: opentelemetry-opencensus-shim 3.13 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4096,19 +5091,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14t + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: "3.14t" + python-version: "3.13" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314t-test-opentelemetry-sdk -- -ra + run: tox -e py313-test-opentelemetry-opencensus-shim -- -ra - pypy3-test-opentelemetry-sdk_windows-latest: - name: opentelemetry-sdk pypy-3.10 Windows + py314-test-opentelemetry-opencensus-shim_windows-latest: + name: opentelemetry-opencensus-shim 3.14 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4117,19 +5112,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python pypy-3.10 + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: "pypy-3.10" + python-version: "3.14" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-sdk -- -ra + run: tox -e py314-test-opentelemetry-opencensus-shim -- -ra - py310-test-opentelemetry-semantic-conventions_windows-latest: - name: opentelemetry-semantic-conventions 3.10 Windows + py310-test-opentelemetry-exporter-http-transport-oldest_windows-latest: + name: opentelemetry-exporter-http-transport-oldest 3.10 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4147,10 +5142,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-semantic-conventions -- -ra + run: tox -e py310-test-opentelemetry-exporter-http-transport-oldest -- -ra - py311-test-opentelemetry-semantic-conventions_windows-latest: - name: opentelemetry-semantic-conventions 3.11 Windows + py310-test-opentelemetry-exporter-http-transport-latest_windows-latest: + name: opentelemetry-exporter-http-transport-latest 3.10 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4159,19 +5154,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.11 + - name: Set up Python 3.10 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.10" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-semantic-conventions -- -ra + run: tox -e py310-test-opentelemetry-exporter-http-transport-latest -- -ra - py312-test-opentelemetry-semantic-conventions_windows-latest: - name: opentelemetry-semantic-conventions 3.12 Windows + py311-test-opentelemetry-exporter-http-transport-oldest_windows-latest: + name: opentelemetry-exporter-http-transport-oldest 3.11 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4180,19 +5175,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.11" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-semantic-conventions -- -ra + run: tox -e py311-test-opentelemetry-exporter-http-transport-oldest -- -ra - py313-test-opentelemetry-semantic-conventions_windows-latest: - name: opentelemetry-semantic-conventions 3.13 Windows + py311-test-opentelemetry-exporter-http-transport-latest_windows-latest: + name: opentelemetry-exporter-http-transport-latest 3.11 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4201,19 +5196,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.13 + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: "3.11" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-semantic-conventions -- -ra + run: tox -e py311-test-opentelemetry-exporter-http-transport-latest -- -ra - py314-test-opentelemetry-semantic-conventions_windows-latest: - name: opentelemetry-semantic-conventions 3.14 Windows + py312-test-opentelemetry-exporter-http-transport-oldest_windows-latest: + name: opentelemetry-exporter-http-transport-oldest 3.12 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4222,19 +5217,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.14" + python-version: "3.12" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-semantic-conventions -- -ra + run: tox -e py312-test-opentelemetry-exporter-http-transport-oldest -- -ra - py314t-test-opentelemetry-semantic-conventions_windows-latest: - name: opentelemetry-semantic-conventions 3.14t Windows + py312-test-opentelemetry-exporter-http-transport-latest_windows-latest: + name: opentelemetry-exporter-http-transport-latest 3.12 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4243,19 +5238,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14t + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.14t" + python-version: "3.12" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314t-test-opentelemetry-semantic-conventions -- -ra + run: tox -e py312-test-opentelemetry-exporter-http-transport-latest -- -ra - pypy3-test-opentelemetry-semantic-conventions_windows-latest: - name: opentelemetry-semantic-conventions pypy-3.10 Windows + py313-test-opentelemetry-exporter-http-transport-oldest_windows-latest: + name: opentelemetry-exporter-http-transport-oldest 3.13 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4264,19 +5259,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python pypy-3.10 + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: "pypy-3.10" + python-version: "3.13" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-semantic-conventions -- -ra + run: tox -e py313-test-opentelemetry-exporter-http-transport-oldest -- -ra - py310-test-opentelemetry-getting-started_windows-latest: - name: opentelemetry-getting-started 3.10 Windows + py313-test-opentelemetry-exporter-http-transport-latest_windows-latest: + name: opentelemetry-exporter-http-transport-latest 3.13 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4285,26 +5280,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Checkout contrib repo @ ${{ env.CONTRIB_REPO_SHA }} - uses: actions/checkout@v4 - with: - repository: open-telemetry/opentelemetry-python-contrib - ref: ${{ env.CONTRIB_REPO_SHA }} - path: opentelemetry-python-contrib - - - name: Set up Python 3.10 + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.13" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-getting-started -- -ra + run: tox -e py313-test-opentelemetry-exporter-http-transport-latest -- -ra - py311-test-opentelemetry-getting-started_windows-latest: - name: opentelemetry-getting-started 3.11 Windows + py314-test-opentelemetry-exporter-http-transport-oldest_windows-latest: + name: opentelemetry-exporter-http-transport-oldest 3.14 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4313,26 +5301,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Checkout contrib repo @ ${{ env.CONTRIB_REPO_SHA }} - uses: actions/checkout@v4 - with: - repository: open-telemetry/opentelemetry-python-contrib - ref: ${{ env.CONTRIB_REPO_SHA }} - path: opentelemetry-python-contrib - - - name: Set up Python 3.11 + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.14" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-getting-started -- -ra + run: tox -e py314-test-opentelemetry-exporter-http-transport-oldest -- -ra - py312-test-opentelemetry-getting-started_windows-latest: - name: opentelemetry-getting-started 3.12 Windows + py314-test-opentelemetry-exporter-http-transport-latest_windows-latest: + name: opentelemetry-exporter-http-transport-latest 3.14 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4341,26 +5322,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Checkout contrib repo @ ${{ env.CONTRIB_REPO_SHA }} - uses: actions/checkout@v4 - with: - repository: open-telemetry/opentelemetry-python-contrib - ref: ${{ env.CONTRIB_REPO_SHA }} - path: opentelemetry-python-contrib - - - name: Set up Python 3.12 + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.14" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-getting-started -- -ra + run: tox -e py314-test-opentelemetry-exporter-http-transport-latest -- -ra - py313-test-opentelemetry-getting-started_windows-latest: - name: opentelemetry-getting-started 3.13 Windows + py314t-test-opentelemetry-exporter-http-transport-oldest_windows-latest: + name: opentelemetry-exporter-http-transport-oldest 3.14t Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4369,26 +5343,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Checkout contrib repo @ ${{ env.CONTRIB_REPO_SHA }} - uses: actions/checkout@v4 - with: - repository: open-telemetry/opentelemetry-python-contrib - ref: ${{ env.CONTRIB_REPO_SHA }} - path: opentelemetry-python-contrib - - - name: Set up Python 3.13 + - name: Set up Python 3.14t uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: "3.14t" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-getting-started -- -ra + run: tox -e py314t-test-opentelemetry-exporter-http-transport-oldest -- -ra - py314-test-opentelemetry-getting-started_windows-latest: - name: opentelemetry-getting-started 3.14 Windows + py314t-test-opentelemetry-exporter-http-transport-latest_windows-latest: + name: opentelemetry-exporter-http-transport-latest 3.14t Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4397,26 +5364,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Checkout contrib repo @ ${{ env.CONTRIB_REPO_SHA }} - uses: actions/checkout@v4 - with: - repository: open-telemetry/opentelemetry-python-contrib - ref: ${{ env.CONTRIB_REPO_SHA }} - path: opentelemetry-python-contrib - - - name: Set up Python 3.14 + - name: Set up Python 3.14t uses: actions/setup-python@v5 with: - python-version: "3.14" + python-version: "3.14t" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-getting-started -- -ra + run: tox -e py314t-test-opentelemetry-exporter-http-transport-latest -- -ra - py310-test-opentelemetry-opentracing-shim_windows-latest: - name: opentelemetry-opentracing-shim 3.10 Windows + py310-test-opentelemetry-exporter-otlp-http-common-oldest_windows-latest: + name: opentelemetry-exporter-otlp-http-common-oldest 3.10 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4434,10 +5394,10 @@ jobs: run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-opentracing-shim -- -ra + run: tox -e py310-test-opentelemetry-exporter-otlp-http-common-oldest -- -ra - py311-test-opentelemetry-opentracing-shim_windows-latest: - name: opentelemetry-opentracing-shim 3.11 Windows + py310-test-opentelemetry-exporter-otlp-http-common-latest_windows-latest: + name: opentelemetry-exporter-otlp-http-common-latest 3.10 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4446,19 +5406,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.11 + - name: Set up Python 3.10 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.10" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-opentracing-shim -- -ra + run: tox -e py310-test-opentelemetry-exporter-otlp-http-common-latest -- -ra - py312-test-opentelemetry-opentracing-shim_windows-latest: - name: opentelemetry-opentracing-shim 3.12 Windows + py311-test-opentelemetry-exporter-otlp-http-common-oldest_windows-latest: + name: opentelemetry-exporter-otlp-http-common-oldest 3.11 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4467,19 +5427,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.11" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-opentracing-shim -- -ra + run: tox -e py311-test-opentelemetry-exporter-otlp-http-common-oldest -- -ra - py313-test-opentelemetry-opentracing-shim_windows-latest: - name: opentelemetry-opentracing-shim 3.13 Windows + py311-test-opentelemetry-exporter-otlp-http-common-latest_windows-latest: + name: opentelemetry-exporter-otlp-http-common-latest 3.11 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4488,19 +5448,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.13 + - name: Set up Python 3.11 uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: "3.11" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-opentracing-shim -- -ra + run: tox -e py311-test-opentelemetry-exporter-otlp-http-common-latest -- -ra - py314-test-opentelemetry-opentracing-shim_windows-latest: - name: opentelemetry-opentracing-shim 3.14 Windows + py312-test-opentelemetry-exporter-otlp-http-common-oldest_windows-latest: + name: opentelemetry-exporter-otlp-http-common-oldest 3.12 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4509,19 +5469,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14 + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.14" + python-version: "3.12" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-opentracing-shim -- -ra + run: tox -e py312-test-opentelemetry-exporter-otlp-http-common-oldest -- -ra - py314t-test-opentelemetry-opentracing-shim_windows-latest: - name: opentelemetry-opentracing-shim 3.14t Windows + py312-test-opentelemetry-exporter-otlp-http-common-latest_windows-latest: + name: opentelemetry-exporter-otlp-http-common-latest 3.12 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4530,19 +5490,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14t + - name: Set up Python 3.12 uses: actions/setup-python@v5 with: - python-version: "3.14t" + python-version: "3.12" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314t-test-opentelemetry-opentracing-shim -- -ra + run: tox -e py312-test-opentelemetry-exporter-otlp-http-common-latest -- -ra - pypy3-test-opentelemetry-opentracing-shim_windows-latest: - name: opentelemetry-opentracing-shim pypy-3.10 Windows + py313-test-opentelemetry-exporter-otlp-http-common-oldest_windows-latest: + name: opentelemetry-exporter-otlp-http-common-oldest 3.13 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4551,19 +5511,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python pypy-3.10 + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: "pypy-3.10" + python-version: "3.13" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e pypy3-test-opentelemetry-opentracing-shim -- -ra + run: tox -e py313-test-opentelemetry-exporter-otlp-http-common-oldest -- -ra - py310-test-opentelemetry-opencensus-shim_windows-latest: - name: opentelemetry-opencensus-shim 3.10 Windows + py313-test-opentelemetry-exporter-otlp-http-common-latest_windows-latest: + name: opentelemetry-exporter-otlp-http-common-latest 3.13 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4572,19 +5532,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.10 + - name: Set up Python 3.13 uses: actions/setup-python@v5 with: - python-version: "3.10" + python-version: "3.13" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py310-test-opentelemetry-opencensus-shim -- -ra + run: tox -e py313-test-opentelemetry-exporter-otlp-http-common-latest -- -ra - py311-test-opentelemetry-opencensus-shim_windows-latest: - name: opentelemetry-opencensus-shim 3.11 Windows + py314-test-opentelemetry-exporter-otlp-http-common-oldest_windows-latest: + name: opentelemetry-exporter-otlp-http-common-oldest 3.14 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4593,19 +5553,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.11 + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: "3.14" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py311-test-opentelemetry-opencensus-shim -- -ra + run: tox -e py314-test-opentelemetry-exporter-otlp-http-common-oldest -- -ra - py312-test-opentelemetry-opencensus-shim_windows-latest: - name: opentelemetry-opencensus-shim 3.12 Windows + py314-test-opentelemetry-exporter-otlp-http-common-latest_windows-latest: + name: opentelemetry-exporter-otlp-http-common-latest 3.14 Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4614,19 +5574,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.12 + - name: Set up Python 3.14 uses: actions/setup-python@v5 with: - python-version: "3.12" + python-version: "3.14" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py312-test-opentelemetry-opencensus-shim -- -ra + run: tox -e py314-test-opentelemetry-exporter-otlp-http-common-latest -- -ra - py313-test-opentelemetry-opencensus-shim_windows-latest: - name: opentelemetry-opencensus-shim 3.13 Windows + py314t-test-opentelemetry-exporter-otlp-http-common-oldest_windows-latest: + name: opentelemetry-exporter-otlp-http-common-oldest 3.14t Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4635,19 +5595,19 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.13 + - name: Set up Python 3.14t uses: actions/setup-python@v5 with: - python-version: "3.13" + python-version: "3.14t" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py313-test-opentelemetry-opencensus-shim -- -ra + run: tox -e py314t-test-opentelemetry-exporter-otlp-http-common-oldest -- -ra - py314-test-opentelemetry-opencensus-shim_windows-latest: - name: opentelemetry-opencensus-shim 3.14 Windows + py314t-test-opentelemetry-exporter-otlp-http-common-latest_windows-latest: + name: opentelemetry-exporter-otlp-http-common-latest 3.14t Windows runs-on: windows-latest timeout-minutes: 30 steps: @@ -4656,16 +5616,16 @@ jobs: - name: Checkout repo @ SHA - ${{ github.sha }} uses: actions/checkout@v4 - - name: Set up Python 3.14 + - name: Set up Python 3.14t uses: actions/setup-python@v5 with: - python-version: "3.14" + python-version: "3.14t" - name: Install tox run: pip install tox-uv - name: Run tests - run: tox -e py314-test-opentelemetry-opencensus-shim -- -ra + run: tox -e py314t-test-opentelemetry-exporter-otlp-http-common-latest -- -ra py310-test-opentelemetry-exporter-opencensus_windows-latest: name: opentelemetry-exporter-opencensus 3.10 Windows diff --git a/dev-requirements.txt b/dev-requirements.txt index 9b9727d3402..b472ce3588f 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,5 +1,6 @@ pylint==3.3.4 httpretty==1.1.4 +mocket==3.14.1 pyright==1.1.405 sphinx==7.1.2 sphinx-rtd-theme==2.0.0rc4 diff --git a/eachdist.ini b/eachdist.ini index 5925d7fda8e..1f9aab8ca5a 100644 --- a/eachdist.ini +++ b/eachdist.ini @@ -32,9 +32,11 @@ version=0.64b0.dev packages= opentelemetry-opentracing-shim opentelemetry-opencensus-shim + opentelemetry-exporter-http-transport opentelemetry-exporter-opencensus opentelemetry-exporter-prometheus opentelemetry-exporter-otlp-json-common + opentelemetry-exporter-otlp-http-common opentelemetry-distro opentelemetry-proto-json opentelemetry-semantic-conventions diff --git a/exporter/opentelemetry-exporter-http-transport/LICENSE b/exporter/opentelemetry-exporter-http-transport/LICENSE new file mode 100644 index 00000000000..261eeb9e9f8 --- /dev/null +++ b/exporter/opentelemetry-exporter-http-transport/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/exporter/opentelemetry-exporter-http-transport/README.rst b/exporter/opentelemetry-exporter-http-transport/README.rst new file mode 100644 index 00000000000..dfbb1f723b1 --- /dev/null +++ b/exporter/opentelemetry-exporter-http-transport/README.rst @@ -0,0 +1,36 @@ +OpenTelemetry Exporters HTTP Transport +====================================== + +|pypi| + +.. |pypi| image:: https://badge.fury.io/py/opentelemetry-exporter-http-transport.svg + :target: https://pypi.org/project/opentelemetry-exporter-http-transport/ + +This package provides shared HTTP transport abstractions used by OpenTelemetry exporters. + +The package has **no required dependencies**. The ``requests`` and ``urllib3`` +transports are available as optional extras. + +Installation +------------ + +Core package (no HTTP backend included):: + + pip install opentelemetry-exporter-http-transport + +With the ``requests`` backend:: + + pip install opentelemetry-exporter-http-transport[requests] + +With the ``urllib3`` backend:: + + pip install opentelemetry-exporter-http-transport[urllib3] + + +References +---------- + +* `OpenTelemetry `_ +* `OpenTelemetry Protocol Specification `_ +* `requests `_ +* `urllib3 `_ diff --git a/exporter/opentelemetry-exporter-http-transport/pyproject.toml b/exporter/opentelemetry-exporter-http-transport/pyproject.toml new file mode 100644 index 00000000000..e2ecb426cbb --- /dev/null +++ b/exporter/opentelemetry-exporter-http-transport/pyproject.toml @@ -0,0 +1,52 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "opentelemetry-exporter-http-transport" +dynamic = ["version"] +description = "OpenTelemetry Exporters HTTP transport" +readme = "README.rst" +license = "Apache-2.0" +requires-python = ">=3.10" +authors = [ + { name = "OpenTelemetry Authors", email = "cncf-opentelemetry-contributors@lists.cncf.io" }, +] +classifiers = [ + "Development Status :: 4 - Beta", + "Framework :: OpenTelemetry", + "Framework :: OpenTelemetry :: Exporters", + "Intended Audience :: Developers", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", +] +dependencies = [] + +[project.optional-dependencies] +urllib3 = [ + "urllib3 >= 1.26" +] +requests = [ + "requests ~= 2.25" +] + +[project.urls] +Homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-http-transport" +Repository = "https://github.com/open-telemetry/opentelemetry-python" + +[tool.hatch.version] +path = "src/opentelemetry/exporter/http/transport/version/__init__.py" + +[tool.hatch.build.targets.sdist] +include = [ + "/src", + "/tests", +] + +[tool.hatch.build.targets.wheel] +packages = ["src/opentelemetry"] diff --git a/exporter/opentelemetry-exporter-http-transport/src/opentelemetry/exporter/http/transport/__init__.py b/exporter/opentelemetry-exporter-http-transport/src/opentelemetry/exporter/http/transport/__init__.py new file mode 100644 index 00000000000..e57cf4aba95 --- /dev/null +++ b/exporter/opentelemetry-exporter-http-transport/src/opentelemetry/exporter/http/transport/__init__.py @@ -0,0 +1,2 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 diff --git a/exporter/opentelemetry-exporter-http-transport/src/opentelemetry/exporter/http/transport/_base.py b/exporter/opentelemetry-exporter-http-transport/src/opentelemetry/exporter/http/transport/_base.py new file mode 100644 index 00000000000..e59d3fff09f --- /dev/null +++ b/exporter/opentelemetry-exporter-http-transport/src/opentelemetry/exporter/http/transport/_base.py @@ -0,0 +1,87 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +import json +from abc import ABC, abstractmethod +from collections.abc import Mapping +from dataclasses import dataclass +from typing import Any + + +@dataclass(frozen=True, slots=True) +class BaseHTTPResult(ABC): + """Outcome of a single HTTP request made by a :class:`BaseHTTPTransport`. + + Either ``status_code`` and ``reason`` are populated (server responded), + or ``error`` is set (request failed before a response was received). + """ + + status_code: int | None = None + reason: str | None = None + error: Exception | None = None + + @abstractmethod + def content(self) -> bytes: + """Return the raw response body. + + Implementations may raise an exception if the returned content is malformed. + """ + + @abstractmethod + def headers(self) -> Mapping[str, str]: + """Return the response headers. + + The returned mapping MUST be case-insensitive with respect to header + keys. Headers with multiple values are represented as a single string + of comma separated values. + + Implementations may raise an exception if no response is available + or if the returned headers are malformed. + """ + + def text(self) -> str: + """Return the response body decoded as UTF-8. + + Implementations may raise an exception if the returned string is malformed. + """ + return self.content().decode("utf-8") + + def json(self) -> Any: + """Return the response body parsed as JSON. + + Implementations may raise an exception if no response is available + or if the returned JSON is malformed. + """ + return json.loads(self.text()) + + +class BaseHTTPTransport(ABC): + """Abstract HTTP transport interface used by HTTP exporters.""" + + @abstractmethod + def request( + self, + method: str, + url: str, + *, + headers: dict[str, str] | None = None, + timeout: float | None = None, + data: bytes | None = None, + ) -> BaseHTTPResult: + """Send an HTTP request and return the result. + + :param method: HTTP method (e.g. ``"POST"``). + :param url: Target URL. + :param headers: Optional HTTP headers to include in the request. + :param timeout: Optional request timeout in seconds. + :param data: Optional request body. + :returns: A :class:`BaseHTTPResult` describing the outcome. + """ + + @abstractmethod + def close(self) -> None: + """Release any resources held by the transport.""" + + @abstractmethod + def is_connection_error(self, exception: Exception | None) -> bool: + """Return ``True`` if the exception is a transport-level connection error.""" diff --git a/exporter/opentelemetry-exporter-http-transport/src/opentelemetry/exporter/http/transport/_requests.py b/exporter/opentelemetry-exporter-http-transport/src/opentelemetry/exporter/http/transport/_requests.py new file mode 100644 index 00000000000..fa725664d29 --- /dev/null +++ b/exporter/opentelemetry-exporter-http-transport/src/opentelemetry/exporter/http/transport/_requests.py @@ -0,0 +1,113 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +from __future__ import annotations + +import functools +from collections.abc import Mapping +from dataclasses import dataclass, field +from typing import TYPE_CHECKING, Any + +# pylint: disable-next=import-error +from opentelemetry.exporter.http.transport._base import ( + BaseHTTPResult, + BaseHTTPTransport, +) + +if TYPE_CHECKING: + import requests + from requests import Response + + +@functools.cache +def _get_connection_error_types() -> tuple[type[Exception], ...]: + # pylint: disable-next=import-outside-toplevel + import requests.exceptions # noqa: PLC0415 + + return ( + requests.exceptions.ConnectionError, + requests.exceptions.ConnectTimeout, + requests.exceptions.ReadTimeout, + requests.exceptions.Timeout, + requests.exceptions.SSLError, + requests.exceptions.ProxyError, + ) + + +@dataclass(frozen=True, slots=True) +class RequestsHTTPResult(BaseHTTPResult): + response: Response | None = field(default=None, hash=False, compare=False) + + def content(self) -> bytes: + if self.response is None: + return b"" + return self.response.content or b"" + + def text(self) -> str: + if self.response is None: + return "" + return self.response.text or "" + + def json(self) -> Any: + if self.response is None: + raise ValueError("No response available.") + return self.response.json() + + def headers(self) -> Mapping[str, str]: + if self.response is None: + raise ValueError("No response available.") + return self.response.headers + + +class RequestsHTTPTransport(BaseHTTPTransport): + def __init__( + self, + *, + verify: bool | str = True, + cert: str | tuple[str, str] | None = None, + session: requests.Session | None = None, + ) -> None: + # pylint: disable-next=import-outside-toplevel + import requests # noqa: PLC0415 + + self._session = session if session is not None else requests.Session() + self._session.verify = verify + if cert is not None: + self._session.cert = cert + + def request( + self, + method: str, + url: str, + *, + headers: dict[str, str] | None = None, + timeout: float | None = None, + data: bytes | None = None, + ) -> BaseHTTPResult: + try: + response = self._session.request( + method=method, + url=url, + headers=headers, + data=data, + timeout=timeout, + allow_redirects=False, + ) + # pylint: disable-next=broad-exception-caught + except Exception as error: + # pylint: disable-next=unexpected-keyword-arg + return RequestsHTTPResult(error=error) + + # pylint: disable-next=unexpected-keyword-arg + return RequestsHTTPResult( + status_code=response.status_code, + reason=response.reason, + response=response, + ) + + # pylint: disable-next=no-self-use + def is_connection_error(self, exception: Exception | None) -> bool: + return isinstance(exception, _get_connection_error_types()) + + def close(self) -> None: + self._session.close() diff --git a/exporter/opentelemetry-exporter-http-transport/src/opentelemetry/exporter/http/transport/_urllib3.py b/exporter/opentelemetry-exporter-http-transport/src/opentelemetry/exporter/http/transport/_urllib3.py new file mode 100644 index 00000000000..ce585a1f0e7 --- /dev/null +++ b/exporter/opentelemetry-exporter-http-transport/src/opentelemetry/exporter/http/transport/_urllib3.py @@ -0,0 +1,134 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +from __future__ import annotations + +import functools +import json +from collections.abc import Mapping +from dataclasses import dataclass, field +from typing import TYPE_CHECKING, Any + +# pylint: disable-next=import-error +from opentelemetry.exporter.http.transport._base import ( + BaseHTTPResult, + BaseHTTPTransport, +) + +if TYPE_CHECKING: + from urllib3 import BaseHTTPResponse + + +@functools.cache +def _get_connection_error_types() -> tuple[type[Exception], ...]: + # pylint: disable-next=import-outside-toplevel + import urllib3.exceptions # noqa: PLC0415 + + types: list[type[Exception]] = [ + urllib3.exceptions.ConnectionError, + urllib3.exceptions.NewConnectionError, + urllib3.exceptions.ConnectTimeoutError, + urllib3.exceptions.MaxRetryError, + urllib3.exceptions.ProtocolError, + ] + + # NameResolutionError was added in urllib3 2.0 + name_resolution_error = getattr( + urllib3.exceptions, "NameResolutionError", None + ) + if name_resolution_error is not None: + types.append(name_resolution_error) + + return tuple(types) + + +@dataclass(frozen=True, slots=True) +class Urllib3HTTPResult(BaseHTTPResult): + response: BaseHTTPResponse | None = field( + default=None, hash=False, compare=False + ) + + def content(self) -> bytes: + if self.response is None: + return b"" + return self.response.data or b"" + + def headers(self) -> Mapping[str, str]: + if self.response is None: + raise ValueError("No response available.") + return self.response.headers + + def json(self) -> Any: + if self.response is None: + raise ValueError("No response available.") + return json.loads(self.content()) + + +class Urllib3HTTPTransport(BaseHTTPTransport): + def __init__( + self, + *, + verify: bool | str = True, + cert: str | tuple[str, str] | None = None, + ) -> None: + # pylint: disable-next=import-outside-toplevel + import urllib3 # noqa: PLC0415 + + pool_kwargs: dict[str, object] = { + "retries": urllib3.Retry(0, redirect=False), + } + if verify is False: + pool_kwargs["cert_reqs"] = "CERT_NONE" + else: + pool_kwargs["cert_reqs"] = "CERT_REQUIRED" + if isinstance(verify, str): + pool_kwargs["ca_certs"] = verify + if isinstance(cert, tuple): + pool_kwargs["cert_file"] = cert[0] + pool_kwargs["key_file"] = cert[1] + elif isinstance(cert, str): + pool_kwargs["cert_file"] = cert + + self._pool = urllib3.PoolManager(**pool_kwargs) # type: ignore + + def request( + self, + method: str, + url: str, + *, + headers: dict[str, str] | None = None, + timeout: float | None = None, + data: bytes | None = None, + ) -> BaseHTTPResult: + # pylint: disable-next=import-outside-toplevel + import urllib3 # noqa: PLC0415 + + try: + response = self._pool.request( + method=method, + url=url, + headers=headers, + body=data, + timeout=urllib3.Timeout(total=timeout) + if timeout is not None + else None, + preload_content=True, + ) + # pylint: disable-next=broad-exception-caught + except Exception as error: + # pylint: disable-next=unexpected-keyword-arg + return Urllib3HTTPResult(error=error) + + # pylint: disable-next=unexpected-keyword-arg + return Urllib3HTTPResult( + status_code=response.status, + reason=response.reason, + response=response, + ) + + # pylint: disable-next=no-self-use + def is_connection_error(self, exception: Exception | None) -> bool: + return isinstance(exception, _get_connection_error_types()) + + def close(self) -> None: + self._pool.clear() diff --git a/exporter/opentelemetry-exporter-http-transport/src/opentelemetry/exporter/http/transport/py.typed b/exporter/opentelemetry-exporter-http-transport/src/opentelemetry/exporter/http/transport/py.typed new file mode 100644 index 00000000000..e69de29bb2d diff --git a/exporter/opentelemetry-exporter-http-transport/src/opentelemetry/exporter/http/transport/version/__init__.py b/exporter/opentelemetry-exporter-http-transport/src/opentelemetry/exporter/http/transport/version/__init__.py new file mode 100644 index 00000000000..13e069be44f --- /dev/null +++ b/exporter/opentelemetry-exporter-http-transport/src/opentelemetry/exporter/http/transport/version/__init__.py @@ -0,0 +1,4 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +__version__ = "0.64b0.dev" diff --git a/exporter/opentelemetry-exporter-http-transport/test-requirements.in b/exporter/opentelemetry-exporter-http-transport/test-requirements.in new file mode 100644 index 00000000000..e8b1ac224dd --- /dev/null +++ b/exporter/opentelemetry-exporter-http-transport/test-requirements.in @@ -0,0 +1,6 @@ +iniconfig==2.3.0 +mocket==3.14.1 +packaging==26.2 +pluggy==1.6.0 +pytest==7.4.4 +-e exporter/opentelemetry-exporter-http-transport[urllib3,requests] diff --git a/exporter/opentelemetry-exporter-http-transport/test-requirements.latest.txt b/exporter/opentelemetry-exporter-http-transport/test-requirements.latest.txt new file mode 100644 index 00000000000..b1ec00aea69 --- /dev/null +++ b/exporter/opentelemetry-exporter-http-transport/test-requirements.latest.txt @@ -0,0 +1,51 @@ +# This file was autogenerated by uv via the following command: +# uv pip compile --python 3.10 --universal --resolution highest exporter/opentelemetry-exporter-http-transport/test-requirements.in -o exporter/opentelemetry-exporter-http-transport/test-requirements.latest.txt +-e exporter/opentelemetry-exporter-http-transport + # via -r exporter/opentelemetry-exporter-http-transport/test-requirements.in +certifi==2026.4.22 + # via requests +charset-normalizer==3.4.7 + # via requests +colorama==0.4.6 ; sys_platform == 'win32' + # via pytest +decorator==5.2.1 + # via mocket +exceptiongroup==1.3.1 ; python_full_version < '3.11' + # via pytest +h11==0.16.0 + # via mocket +idna==3.14 + # via requests +iniconfig==2.3.0 + # via + # -r exporter/opentelemetry-exporter-http-transport/test-requirements.in + # pytest +mocket==3.14.1 + # via -r exporter/opentelemetry-exporter-http-transport/test-requirements.in +packaging==26.2 + # via + # -r exporter/opentelemetry-exporter-http-transport/test-requirements.in + # pytest +pluggy==1.6.0 + # via + # -r exporter/opentelemetry-exporter-http-transport/test-requirements.in + # pytest +puremagic==1.30 ; python_full_version < '3.12' + # via mocket +puremagic==2.2.0 ; python_full_version >= '3.12' + # via mocket +pytest==7.4.4 + # via -r exporter/opentelemetry-exporter-http-transport/test-requirements.in +requests==2.34.0 + # via opentelemetry-exporter-http-transport +tomli==2.4.1 ; python_full_version < '3.11' + # via pytest +typing-extensions==4.15.0 + # via + # exceptiongroup + # mocket +urllib3==2.7.0 + # via + # mocket + # opentelemetry-exporter-http-transport + # requests diff --git a/exporter/opentelemetry-exporter-http-transport/test-requirements.oldest.txt b/exporter/opentelemetry-exporter-http-transport/test-requirements.oldest.txt new file mode 100644 index 00000000000..c9b33dc117a --- /dev/null +++ b/exporter/opentelemetry-exporter-http-transport/test-requirements.oldest.txt @@ -0,0 +1,51 @@ +# This file was autogenerated by uv via the following command: +# uv pip compile --python 3.10 --universal --resolution lowest-direct exporter/opentelemetry-exporter-http-transport/test-requirements.in -o exporter/opentelemetry-exporter-http-transport/test-requirements.oldest.txt +-e exporter/opentelemetry-exporter-http-transport + # via -r exporter/opentelemetry-exporter-http-transport/test-requirements.in +certifi==2026.4.22 + # via requests +chardet==3.0.4 + # via requests +colorama==0.4.6 ; sys_platform == 'win32' + # via pytest +decorator==5.2.1 + # via mocket +exceptiongroup==1.3.1 ; python_full_version < '3.11' + # via pytest +h11==0.16.0 + # via mocket +idna==2.10 + # via requests +iniconfig==2.3.0 + # via + # -r exporter/opentelemetry-exporter-http-transport/test-requirements.in + # pytest +mocket==3.14.1 + # via -r exporter/opentelemetry-exporter-http-transport/test-requirements.in +packaging==26.2 + # via + # -r exporter/opentelemetry-exporter-http-transport/test-requirements.in + # pytest +pluggy==1.6.0 + # via + # -r exporter/opentelemetry-exporter-http-transport/test-requirements.in + # pytest +puremagic==1.30 ; python_full_version < '3.12' + # via mocket +puremagic==2.2.0 ; python_full_version >= '3.12' + # via mocket +pytest==7.4.4 + # via -r exporter/opentelemetry-exporter-http-transport/test-requirements.in +requests==2.25.0 + # via opentelemetry-exporter-http-transport +tomli==2.4.1 ; python_full_version < '3.11' + # via pytest +typing-extensions==4.15.0 + # via + # exceptiongroup + # mocket +urllib3==1.26.20 + # via + # mocket + # opentelemetry-exporter-http-transport + # requests diff --git a/exporter/opentelemetry-exporter-http-transport/tests/__init__.py b/exporter/opentelemetry-exporter-http-transport/tests/__init__.py new file mode 100644 index 00000000000..e57cf4aba95 --- /dev/null +++ b/exporter/opentelemetry-exporter-http-transport/tests/__init__.py @@ -0,0 +1,2 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 diff --git a/exporter/opentelemetry-exporter-http-transport/tests/test_requests_transport.py b/exporter/opentelemetry-exporter-http-transport/tests/test_requests_transport.py new file mode 100644 index 00000000000..00624857898 --- /dev/null +++ b/exporter/opentelemetry-exporter-http-transport/tests/test_requests_transport.py @@ -0,0 +1,263 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +import unittest +from json import JSONDecodeError +from unittest.mock import MagicMock, patch + +import requests +import requests.exceptions +import requests.structures +from mocket import Mocket, Mocketizer, mocketize +from mocket.mocks.mockhttp import Entry + +# pylint: disable-next=import-error +from opentelemetry.exporter.http.transport._requests import ( + RequestsHTTPResult, + RequestsHTTPTransport, +) + +_TEST_URL = "http://example.test/v1/traces" + + +class TestRequestsHTTPResult(unittest.TestCase): + @mocketize + def test_content_returns_body(self): + Entry.single_register(Entry.POST, _TEST_URL, status=200, body="hello") + result = RequestsHTTPTransport().request("POST", _TEST_URL) + self.assertEqual(result.content(), b"hello") + + def test_content_returns_empty_bytes_when_no_response(self): + result = RequestsHTTPResult(status_code=200, reason="OK") + self.assertEqual(result.content(), b"") + + @mocketize + def test_content_returns_empty_bytes_for_empty_body(self): + Entry.single_register(Entry.POST, _TEST_URL, status=204) + result = RequestsHTTPTransport().request("POST", _TEST_URL) + self.assertEqual(result.content(), b"") + + @mocketize + def test_text_uses_response_text(self): + Entry.single_register( + Entry.POST, + _TEST_URL, + status=200, + body="hello", + ) + result = RequestsHTTPTransport().request("POST", _TEST_URL) + self.assertEqual(result.text(), "hello") + + def test_text_returns_empty_string_when_no_response(self): + result = RequestsHTTPResult(status_code=200, reason="OK") + self.assertEqual(result.text(), "") + + @mocketize + def test_text_returns_empty_string_for_empty_body(self): + Entry.single_register(Entry.POST, _TEST_URL, status=204) + result = RequestsHTTPTransport().request("POST", _TEST_URL) + self.assertEqual(result.text(), "") + + @mocketize + def test_json_uses_response_json(self): + Entry.single_register( + Entry.POST, + _TEST_URL, + status=200, + body='{"key": "val"}', + headers={"Content-Type": "application/json"}, + ) + result = RequestsHTTPTransport().request("POST", _TEST_URL) + self.assertEqual(result.json(), {"key": "val"}) + + def test_json_raises_when_no_response(self): + result = RequestsHTTPResult(status_code=200, reason="OK") + self.assertRaises(ValueError, result.json) + + @mocketize + def test_json_raises_for_malformed_json(self): + Entry.single_register( + Entry.POST, + _TEST_URL, + status=200, + body="not json", + headers={"Content-Type": "application/json"}, + ) + result = RequestsHTTPTransport().request("POST", _TEST_URL) + self.assertRaises(JSONDecodeError, result.json) + + @mocketize + def test_headers_returns_response_headers(self): + Entry.single_register( + Entry.POST, + _TEST_URL, + status=200, + headers={"X-Custom": "value"}, + ) + result = RequestsHTTPTransport().request("POST", _TEST_URL) + self.assertEqual(result.headers()["X-Custom"], "value") + + def test_headers_raises_when_no_response(self): + result = RequestsHTTPResult(status_code=200, reason="OK") + self.assertRaises(ValueError, result.headers) + + @mocketize + def test_headers_are_case_insensitive(self): + Entry.single_register( + Entry.POST, + _TEST_URL, + status=200, + headers={"X-Custom": "value"}, + ) + result = RequestsHTTPTransport().request("POST", _TEST_URL) + headers = result.headers() + self.assertEqual(headers["x-custom"], "value") + self.assertEqual(headers["X-CUSTOM"], "value") + self.assertEqual(headers["X-Custom"], "value") + + +# pylint: disable=protected-access,no-self-use +class TestRequestsHTTPTransport(unittest.TestCase): + def test_request_returns_status_code_and_reason(self): + cases = [ + (200, "OK"), + (400, "Bad Request"), + (503, "Service Unavailable"), + ] + for status_code, reason in cases: + with self.subTest(status_code=status_code): + with Mocketizer(): + Entry.single_register( + Entry.POST, _TEST_URL, status=status_code + ) + transport = RequestsHTTPTransport() + result = transport.request("POST", _TEST_URL) + self.assertEqual(result.status_code, status_code) + self.assertEqual(result.reason, reason) + self.assertIsNone(result.error) + + @mocketize + def test_request_forwards_headers(self): + headers = { + "content-type": "application/x-protobuf", + "x-custom": "value", + } + Entry.single_register(Entry.POST, _TEST_URL, status=200) + transport = RequestsHTTPTransport() + result = transport.request("POST", _TEST_URL, headers=headers) + self.assertEqual(result.status_code, 200) + req = Mocket.last_request() + for key, value in headers.items(): + self.assertEqual(req.headers[key], value) + + @mocketize + def test_request_forwards_data(self): + Entry.single_register(Entry.POST, _TEST_URL, status=200) + transport = RequestsHTTPTransport() + result = transport.request("POST", _TEST_URL, data=b"payload") + self.assertEqual(result.status_code, 200) + self.assertEqual(Mocket.last_request().body, "payload") + + def test_request_passes_timeout(self): + cases = [ + 3.5, + None, + ] + for timeout in cases: + with self.subTest(timeout=timeout): + mock_session = MagicMock(spec=requests.Session) + mock_session.request.return_value = MagicMock( + status_code=200, reason="OK" + ) + transport = RequestsHTTPTransport(session=mock_session) + transport.request("POST", _TEST_URL, timeout=timeout) + timeout_kwarg = mock_session.request.call_args.kwargs[ + "timeout" + ] + self.assertEqual(timeout_kwarg, timeout) + + def test_request_catches_exception(self): + cases = [ + (RuntimeError("unexpected"), False), + (requests.exceptions.ConnectionError("failed"), True), + ] + for error, expected_is_connection_error in cases: + with self.subTest(error_type=type(error).__name__): + with patch("requests.Session.request", side_effect=error): + transport = RequestsHTTPTransport() + result = transport.request("POST", _TEST_URL) + self.assertIsNone(result.status_code) + self.assertIsNone(result.reason) + self.assertIs(result.error, error) + self.assertEqual( + transport.is_connection_error(result.error), + expected_is_connection_error, + ) + + def test_is_connection_error(self): + cases = [ + (requests.exceptions.ConnectionError("error"), True), + (requests.exceptions.ConnectTimeout("error"), True), + (requests.exceptions.ReadTimeout("error"), True), + (requests.exceptions.Timeout("error"), True), + (requests.exceptions.SSLError("error"), True), + (requests.exceptions.ProxyError("error"), True), + (requests.exceptions.HTTPError("error"), False), + (requests.exceptions.RequestException("error"), False), + (RuntimeError("error"), False), + (ValueError("error"), False), + (None, False), + ] + transport = RequestsHTTPTransport( + session=MagicMock(spec=requests.Session) + ) + for exception, expected in cases: + with self.subTest(error_type=type(exception).__name__): + self.assertEqual( + transport.is_connection_error(exception), expected + ) + + def test_verify_sets_session_verify(self): + cases = [ + (True, True), + (False, False), + ("/path/to/ca.pem", "/path/to/ca.pem"), + ] + for verify, expected in cases: + with self.subTest(verify=verify): + mock_session = MagicMock(spec=requests.Session) + RequestsHTTPTransport(verify=verify, session=mock_session) + self.assertEqual(mock_session.verify, expected) + + def test_cert_none_does_not_set_session_cert(self): + mock_session = MagicMock(spec=requests.Session) + RequestsHTTPTransport(cert=None, session=mock_session) + self.assertFalse(hasattr(mock_session, "cert")) + + def test_cert_sets_session_cert(self): + cases = [ + "/path/to/cert.pem", + ("/path/to/cert.pem", "/path/to/key.pem"), + ] + for cert in cases: + with self.subTest(cert=cert): + mock_session = MagicMock(spec=requests.Session) + RequestsHTTPTransport(cert=cert, session=mock_session) + self.assertEqual(mock_session.cert, cert) + + def test_custom_session_is_used(self): + mock_session = MagicMock(spec=requests.Session) + mock_session.request.return_value = MagicMock( + status_code=200, reason="OK" + ) + transport = RequestsHTTPTransport(session=mock_session) + result = transport.request("POST", _TEST_URL) + mock_session.request.assert_called_once() + self.assertEqual(result.status_code, 200) + self.assertEqual(result.reason, "OK") + + def test_close_closes_session(self): + mock_session = MagicMock(spec=requests.Session) + transport = RequestsHTTPTransport(session=mock_session) + transport.close() + mock_session.close.assert_called_once() diff --git a/exporter/opentelemetry-exporter-http-transport/tests/test_urllib3_transport.py b/exporter/opentelemetry-exporter-http-transport/tests/test_urllib3_transport.py new file mode 100644 index 00000000000..4c4d48f07c6 --- /dev/null +++ b/exporter/opentelemetry-exporter-http-transport/tests/test_urllib3_transport.py @@ -0,0 +1,305 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +import unittest +from json import JSONDecodeError +from unittest.mock import MagicMock, patch + +import urllib3 +import urllib3.exceptions +from mocket import Mocket, Mocketizer, mocketize +from mocket.mocks.mockhttp import Entry +from urllib3._collections import HTTPHeaderDict + +# pylint: disable-next=import-error +from opentelemetry.exporter.http.transport._urllib3 import ( + Urllib3HTTPResult, + Urllib3HTTPTransport, +) + +_TEST_URL = "http://example.test/v1/traces" + + +class TestUrllib3HTTPResult(unittest.TestCase): + @mocketize + def test_content_returns_body(self): + Entry.single_register(Entry.POST, _TEST_URL, status=200, body="hello") + result = Urllib3HTTPTransport().request("POST", _TEST_URL) + self.assertEqual(result.content(), b"hello") + + def test_content_returns_empty_bytes_when_no_response(self): + result = Urllib3HTTPResult(status_code=200, reason="OK") + self.assertEqual(result.content(), b"") + + @mocketize + def test_content_returns_empty_bytes_for_empty_body(self): + Entry.single_register(Entry.POST, _TEST_URL, status=204) + result = Urllib3HTTPTransport().request("POST", _TEST_URL) + self.assertEqual(result.content(), b"") + + @mocketize + def test_text_decodes_utf8(self): + Entry.single_register(Entry.POST, _TEST_URL, status=200, body="hello") + result = Urllib3HTTPTransport().request("POST", _TEST_URL) + self.assertEqual(result.text(), "hello") + + def test_text_returns_empty_string_when_no_response(self): + result = Urllib3HTTPResult(status_code=200, reason="OK") + self.assertEqual(result.text(), "") + + @mocketize + def test_text_returns_empty_string_for_empty_body(self): + Entry.single_register(Entry.POST, _TEST_URL, status=204) + result = Urllib3HTTPTransport().request("POST", _TEST_URL) + self.assertEqual(result.text(), "") + + def test_text_raises_for_non_utf8_content(self): + mock_response = MagicMock() + mock_response.data = b"\xff\xfe" + result = Urllib3HTTPResult( + status_code=200, reason="OK", response=mock_response + ) + self.assertRaises(UnicodeDecodeError, result.text) + + @mocketize + def test_json_parses_dict(self): + Entry.single_register( + Entry.POST, + _TEST_URL, + status=200, + body='{"key": "val"}', + headers={"Content-Type": "application/json"}, + ) + result = Urllib3HTTPTransport().request("POST", _TEST_URL) + self.assertEqual(result.json(), {"key": "val"}) + + def test_json_raises_when_no_response(self): + result = Urllib3HTTPResult(status_code=200, reason="OK") + self.assertRaises(ValueError, result.json) + + @mocketize + def test_json_raises_for_malformed_json(self): + Entry.single_register( + Entry.POST, + _TEST_URL, + status=200, + body="not json", + headers={"Content-Type": "application/json"}, + ) + result = Urllib3HTTPTransport().request("POST", _TEST_URL) + self.assertRaises(JSONDecodeError, result.json) + + @mocketize + def test_headers_returns_response_headers(self): + Entry.single_register( + Entry.POST, + _TEST_URL, + status=200, + headers={"X-Custom": "value"}, + ) + result = Urllib3HTTPTransport().request("POST", _TEST_URL) + self.assertEqual(result.headers()["X-Custom"], "value") + + def test_headers_raises_when_no_response(self): + result = Urllib3HTTPResult(status_code=200, reason="OK") + self.assertRaises(ValueError, result.headers) + + @mocketize + def test_headers_are_case_insensitive(self): + Entry.single_register( + Entry.POST, + _TEST_URL, + status=200, + headers={"X-Custom": "value"}, + ) + result = Urllib3HTTPTransport().request("POST", _TEST_URL) + headers = result.headers() + self.assertEqual(headers["x-custom"], "value") + self.assertEqual(headers["X-CUSTOM"], "value") + self.assertEqual(headers["X-Custom"], "value") + + def test_headers_returns_multiple_values_as_comma_separated(self): + mock_response = MagicMock() + headers = HTTPHeaderDict() + headers.add("X-Multi", "value1") + headers.add("X-Multi", "value2") + mock_response.headers = headers + result = Urllib3HTTPResult( + status_code=200, reason="OK", response=mock_response + ) + self.assertEqual(result.headers()["X-Multi"], "value1, value2") + + +# pylint: disable=protected-access,no-self-use +class TestUrllib3HTTPTransport(unittest.TestCase): + def test_request_returns_status_code_and_reason(self): + cases = [ + (200, "OK"), + (400, "Bad Request"), + (503, "Service Unavailable"), + ] + for status_code, reason in cases: + with self.subTest(status_code=status_code): + with Mocketizer(): + Entry.single_register( + Entry.POST, _TEST_URL, status=status_code + ) + transport = Urllib3HTTPTransport() + result = transport.request("POST", _TEST_URL) + self.assertEqual(result.status_code, status_code) + self.assertEqual(result.reason, reason) + self.assertIsNone(result.error) + + @mocketize + def test_request_returns_response_content(self): + Entry.single_register(Entry.POST, _TEST_URL, status=200) + transport = Urllib3HTTPTransport() + result = transport.request("POST", _TEST_URL) + self.assertIsInstance(result.content(), bytes) + + @mocketize + def test_request_forwards_headers(self): + headers = { + "content-type": "application/x-protobuf", + "x-custom": "value", + } + Entry.single_register(Entry.POST, _TEST_URL, status=200) + transport = Urllib3HTTPTransport() + result = transport.request("POST", _TEST_URL, headers=headers) + self.assertEqual(result.status_code, 200) + req = Mocket.last_request() + for key, value in headers.items(): + self.assertEqual(req.headers[key], value) + + @mocketize + def test_request_forwards_data(self): + Entry.single_register(Entry.POST, _TEST_URL, status=200) + transport = Urllib3HTTPTransport() + result = transport.request("POST", _TEST_URL, data=b"payload") + self.assertEqual(result.status_code, 200) + self.assertEqual(Mocket.last_request().body, "payload") + + def test_request_catches_exception(self): + cases = [ + (RuntimeError("unexpected"), False), + (urllib3.exceptions.ProtocolError("failed"), True), + ] + for error, expected_is_connection_error in cases: + with self.subTest(error_type=type(error).__name__): + transport = Urllib3HTTPTransport() + with patch.object( + transport._pool, "request", side_effect=error + ): + result = transport.request("POST", _TEST_URL) + self.assertIsNone(result.status_code) + self.assertIsNone(result.reason) + self.assertIs(result.error, error) + self.assertEqual( + transport.is_connection_error(result.error), + expected_is_connection_error, + ) + + def test_is_connection_error(self): + cases: list[tuple[Exception | None, bool]] = [ + (urllib3.exceptions.ProtocolError("error"), True), + (urllib3.exceptions.NewConnectionError(None, "error"), True), + (urllib3.exceptions.ConnectTimeoutError(None, "error"), True), + (urllib3.exceptions.MaxRetryError(None, "http://x"), True), + (urllib3.exceptions.HTTPError("error"), False), + ( + urllib3.exceptions.ReadTimeoutError( + None, "http://x", "timeout" + ), + False, + ), + (RuntimeError("error"), False), + (ValueError("error"), False), + (None, False), + ] + name_resolution_error = getattr( + urllib3.exceptions, "NameResolutionError", None + ) + if name_resolution_error is not None: + cases.append((name_resolution_error("host", None, "error"), True)) + transport = Urllib3HTTPTransport() + for exception, expected in cases: + with self.subTest(error_type=type(exception).__name__): + self.assertEqual( + transport.is_connection_error(exception), expected + ) + + def test_request_passes_timeout(self): + cases = [ + 3.5, + None, + ] + for timeout in cases: + with self.subTest(timeout=timeout): + transport = Urllib3HTTPTransport() + with patch.object(transport._pool, "request") as mock_request: + mock_request.return_value = MagicMock( + status=200, reason="OK" + ) + transport.request("POST", _TEST_URL, timeout=timeout) + timeout_kwarg = mock_request.call_args.kwargs["timeout"] + if timeout is not None: + self.assertIsInstance(timeout_kwarg, urllib3.Timeout) + self.assertEqual(timeout_kwarg.total, timeout) + else: + self.assertIsNone(timeout_kwarg) + + def test_verify_sets_pool_manager_kwargs(self): + cases = [ + (True, "CERT_REQUIRED", None), + (False, "CERT_NONE", None), + ("/path/to/ca.pem", "CERT_REQUIRED", "/path/to/ca.pem"), + ] + for verify, expected_cert_reqs, expected_ca_certs in cases: + with self.subTest(verify=verify): + with patch("urllib3.PoolManager") as mock_pm: + Urllib3HTTPTransport(verify=verify) + kwargs = mock_pm.call_args.kwargs + self.assertEqual(kwargs["cert_reqs"], expected_cert_reqs) + if expected_ca_certs is not None: + self.assertEqual(kwargs["ca_certs"], expected_ca_certs) + else: + self.assertNotIn("ca_certs", kwargs) + + def test_cert_none_does_not_set_cert_file(self): + with patch("urllib3.PoolManager") as mock_pm: + Urllib3HTTPTransport(cert=None) + self.assertNotIn("cert_file", mock_pm.call_args.kwargs) + + def test_cert_sets_pool_manager_kwargs(self): + cases = [ + ("/path/to/cert.pem", "/path/to/cert.pem", None), + ( + ("/path/to/cert.pem", "/path/to/key.pem"), + "/path/to/cert.pem", + "/path/to/key.pem", + ), + ] + for cert, expected_cert_file, expected_key_file in cases: + with self.subTest(cert=cert): + with patch("urllib3.PoolManager") as mock_pm: + Urllib3HTTPTransport(cert=cert) + kwargs = mock_pm.call_args.kwargs + self.assertEqual(kwargs["cert_file"], expected_cert_file) + if expected_key_file is not None: + self.assertEqual(kwargs["key_file"], expected_key_file) + else: + self.assertNotIn("key_file", kwargs) + + def test_retries_disabled(self): + with patch("urllib3.PoolManager") as mock_pm: + Urllib3HTTPTransport() + retries = mock_pm.call_args.kwargs["retries"] + self.assertIsInstance(retries, urllib3.Retry) + self.assertEqual(retries.total, 0) + self.assertFalse(retries.redirect) + + def test_close_clears_pool(self): + with patch("urllib3.PoolManager") as mock_pm: + transport = Urllib3HTTPTransport() + transport.close() + mock_pm.return_value.clear.assert_called_once() diff --git a/exporter/opentelemetry-exporter-otlp-http-common/LICENSE b/exporter/opentelemetry-exporter-otlp-http-common/LICENSE new file mode 100644 index 00000000000..261eeb9e9f8 --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-http-common/LICENSE @@ -0,0 +1,201 @@ + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/exporter/opentelemetry-exporter-otlp-http-common/README.rst b/exporter/opentelemetry-exporter-otlp-http-common/README.rst new file mode 100644 index 00000000000..79027555de9 --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-http-common/README.rst @@ -0,0 +1,53 @@ +OpenTelemetry OTLP HTTP Common +=============================== + +|pypi| + +.. |pypi| image:: https://badge.fury.io/py/opentelemetry-exporter-otlp-http-common.svg + :target: https://pypi.org/project/opentelemetry-exporter-otlp-http-common/ + +OpenTelemetry OTLP HTTP export utilities. + +This package is intended to be used by OpenTelemetry signal exporters (traces, metrics, +logs) that send telemetry over OTLP/HTTP. Currently, all functionality in this package +is marked as internal and is not intended for use directly by application developers. + +Installation +------------ + +:: + + pip install opentelemetry-exporter-otlp-http-common + +Usage +----- + +``OTLPHTTPClient`` wraps a transport and handles retry and compression. Pass it a +transport and an endpoint, then call ``export()`` with a serialized OTLP payload:: + + from opentelemetry.exporter.http.transport._requests import RequestsHTTPTransport + from opentelemetry.exporter.otlp.http.common._otlp_client import ( + Compression, + OTLPHTTPClient, + ) + + transport = RequestsHTTPTransport() + client = OTLPHTTPClient( + transport=transport, + endpoint="http://localhost:4318/v1/traces", + kind="spans", + compression=Compression.GZIP, + ) + + result = client.export(serialized_bytes) + if not result.success: + print(f"Export failed: {result.status_code} {result.reason}") + + client.close() + +References +---------- + +* `OpenTelemetry `_ +* `OTLP Specification `_ +* `opentelemetry-exporter-http-transport `_ diff --git a/exporter/opentelemetry-exporter-otlp-http-common/pyproject.toml b/exporter/opentelemetry-exporter-otlp-http-common/pyproject.toml new file mode 100644 index 00000000000..357a4210caa --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-http-common/pyproject.toml @@ -0,0 +1,46 @@ +[build-system] +requires = ["hatchling"] +build-backend = "hatchling.build" + +[project] +name = "opentelemetry-exporter-otlp-http-common" +dynamic = ["version"] +description = "OpenTelemetry OTLP HTTP export utilities" +readme = "README.rst" +license = "Apache-2.0" +requires-python = ">=3.10" +authors = [ + { name = "OpenTelemetry Authors", email = "cncf-opentelemetry-contributors@lists.cncf.io" }, +] +classifiers = [ + "Development Status :: 4 - Beta", + "Framework :: OpenTelemetry", + "Framework :: OpenTelemetry :: Exporters", + "Intended Audience :: Developers", + "Programming Language :: Python", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.10", + "Programming Language :: Python :: 3.11", + "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", + "Programming Language :: Python :: 3.14", +] +dependencies = [ + "opentelemetry-exporter-http-transport == 0.64b0.dev" +] + +[project.urls] +Homepage = "https://github.com/open-telemetry/opentelemetry-python/tree/main/exporter/opentelemetry-exporter-otlp-http-common" +Repository = "https://github.com/open-telemetry/opentelemetry-python" + +[tool.hatch.version] +path = "src/opentelemetry/exporter/otlp/http/common/version/__init__.py" + +[tool.hatch.build.targets.sdist] +include = [ + "/src", + "/tests", +] + +[tool.hatch.build.targets.wheel] +packages = ["src/opentelemetry"] diff --git a/exporter/opentelemetry-exporter-otlp-http-common/src/opentelemetry/exporter/otlp/http/common/__init__.py b/exporter/opentelemetry-exporter-otlp-http-common/src/opentelemetry/exporter/otlp/http/common/__init__.py new file mode 100644 index 00000000000..e57cf4aba95 --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-http-common/src/opentelemetry/exporter/otlp/http/common/__init__.py @@ -0,0 +1,2 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 diff --git a/exporter/opentelemetry-exporter-otlp-http-common/src/opentelemetry/exporter/otlp/http/common/_otlp_client.py b/exporter/opentelemetry-exporter-otlp-http-common/src/opentelemetry/exporter/otlp/http/common/_otlp_client.py new file mode 100644 index 00000000000..b46287aea47 --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-http-common/src/opentelemetry/exporter/otlp/http/common/_otlp_client.py @@ -0,0 +1,233 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +import enum +import gzip +import logging +import random +import threading +import time +import zlib +from collections.abc import Mapping +from dataclasses import dataclass +from http import HTTPStatus +from io import BytesIO +from typing import Final, Literal + +# pylint: disable-next=import-error +from opentelemetry.exporter.http.transport._base import ( + BaseHTTPResult, + BaseHTTPTransport, +) + +_logger = logging.getLogger(__name__) + +_MAX_RETRIES: Final[int] = 6 +_DEFAULT_TIMEOUT: Final[float] = 10.0 +_DEFAULT_JITTER: Final[float] = 0.2 + + +_RETRYABLE_STATUS_CODES: Final[frozenset[int]] = frozenset( + { + HTTPStatus.TOO_MANY_REQUESTS.value, + HTTPStatus.BAD_GATEWAY.value, + HTTPStatus.SERVICE_UNAVAILABLE.value, + HTTPStatus.GATEWAY_TIMEOUT.value, + } +) + + +def _is_retryable(status_code: int | None) -> bool: + return status_code in _RETRYABLE_STATUS_CODES + + +def _extract_retry_after(result: BaseHTTPResult) -> float | None: + try: + value = result.headers().get("retry-after") + if value is not None: + return float(value) + # pylint: disable-next=broad-exception-caught + except Exception: + pass + return None + + +class Compression(enum.Enum): + NONE = "none" + DEFLATE = "deflate" + GZIP = "gzip" + + @staticmethod + def from_str(value: str) -> "Compression": + match value.strip().lower(): + case "none": + return Compression.NONE + case "deflate": + return Compression.DEFLATE + case "gzip": + return Compression.GZIP + case _: + raise ValueError( + f"Invalid compression type: {value!r}. " + "Expected one of: 'none', 'deflate', 'gzip'." + ) + + +@dataclass(slots=True, frozen=True) +class ExportResult: + """Outcome of an OTLP export attempt, including retry exhaustion.""" + + success: bool + status_code: int | None + reason: str | None + error: Exception | None + + +class OTLPHTTPClient: + """Sends serialized OTLP payloads over HTTP with retry logic. + + Compression, backoff, and connection-error recovery are handled internally. + Callers interact through the :meth:`export` and :meth:`close` methods. + """ + + def __init__( + self, + transport: BaseHTTPTransport, + endpoint: str, + kind: Literal["spans", "logs", "metrics"], + timeout: float = _DEFAULT_TIMEOUT, + compression: Compression = Compression.NONE, + shutdown_event: threading.Event | None = None, + headers: Mapping[str, str] | None = None, + jitter: float = _DEFAULT_JITTER, + logger: logging.Logger | None = None, + ) -> None: + self._transport = transport + self._endpoint = endpoint + self._timeout = timeout + self._compression = compression + self._shutdown_event = ( + shutdown_event if shutdown_event is not None else threading.Event() + ) + self._headers = dict(headers) if headers is not None else {} + self._kind = kind + self._jitter = min(max(jitter, 0.0), 1.0) + self._logger = logger if logger is not None else _logger + + def _compute_backoff(self, retry: int) -> float: + return 2**retry * random.uniform(1 - self._jitter, 1 + self._jitter) + + def _compress(self, serialized_data: bytes) -> bytes: + if self._compression is Compression.GZIP: + buf = BytesIO() + with gzip.GzipFile(fileobj=buf, mode="w") as gz: + gz.write(serialized_data) + return buf.getvalue() + if self._compression is Compression.DEFLATE: + return zlib.compress(serialized_data) + return serialized_data + + def _submit(self, data: bytes, timeout: float) -> BaseHTTPResult: + deadline = time.time() + timeout + result = self._transport.request( + "POST", + self._endpoint, + headers=self._headers, + data=data, + timeout=timeout, + ) + if ( + result.error is not None + and self._transport.is_connection_error(result.error) + and (remaining := deadline - time.time()) > 0 + ): + # Immediately retry connection errors once without backoff. These + # usually indicate a stale pooled connection that the transport will + # reestablish on the next attempt. + result = self._transport.request( + "POST", + self._endpoint, + headers=self._headers, + data=data, + timeout=remaining, + ) + return result + + def export(self, data: bytes) -> ExportResult: + """Export a serialized payload, retrying on transient failures. + + :param data: Serialized bytes to send. + :returns: An :class:`ExportResult` indicating success or the reason for failure. + """ + data = self._compress(data) + deadline = time.time() + self._timeout + + for retry in range(_MAX_RETRIES): + backoff = self._compute_backoff(retry) + status_code: int | None = None + reason: str | None = None + export_error: Exception | None + retryable: bool + + try: + result = self._submit(data, max(deadline - time.time(), 0.0)) + # pylint: disable-next=broad-exception-caught + except Exception as error: + export_error = error + retryable = False + else: + status_code = result.status_code + reason = result.reason + if status_code is not None and 200 <= status_code < 400: + return ExportResult(True, status_code, reason, None) + export_error = result.error + retryable = ( + _is_retryable(status_code) + if status_code + else self._transport.is_connection_error(result.error) + ) + if ( + retryable + and status_code is not None + and (retry_after := _extract_retry_after(result)) + is not None + ): + backoff = retry_after + + if not retryable: + self._logger.error( + "Failed to export %s batch code: %s, reason: %s", + self._kind, + status_code, + reason or export_error or "unknown", + ) + return ExportResult(False, status_code, reason, export_error) + + if ( + retry + 1 == _MAX_RETRIES + or backoff > (deadline - time.time()) + or self._shutdown_event.is_set() + ): + self._logger.error( + "Failed to export %s batch due to timeout, " + "max retries or shutdown.", + self._kind, + ) + return ExportResult(False, status_code, reason, export_error) + + self._logger.warning( + "Transient error %s encountered while exporting %s batch, retrying in %.2fs.", + reason or export_error, + self._kind, + backoff, + ) + shutdown = self._shutdown_event.wait(backoff) + if shutdown: + self._logger.warning("Shutdown in progress, aborting retry.") + break + + return ExportResult(False, None, None, None) + + def close(self) -> None: + """Close the underlying transport and release its resources.""" + self._transport.close() diff --git a/exporter/opentelemetry-exporter-otlp-http-common/src/opentelemetry/exporter/otlp/http/common/version/__init__.py b/exporter/opentelemetry-exporter-otlp-http-common/src/opentelemetry/exporter/otlp/http/common/version/__init__.py new file mode 100644 index 00000000000..13e069be44f --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-http-common/src/opentelemetry/exporter/otlp/http/common/version/__init__.py @@ -0,0 +1,4 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +__version__ = "0.64b0.dev" diff --git a/exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in b/exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in new file mode 100644 index 00000000000..287086ab042 --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in @@ -0,0 +1,7 @@ +iniconfig==2.3.0 +mocket==3.14.1 +packaging==26.2 +pluggy==1.6.0 +pytest==7.4.4 +-e exporter/opentelemetry-exporter-http-transport[urllib3,requests] +-e exporter/opentelemetry-exporter-otlp-http-common diff --git a/exporter/opentelemetry-exporter-otlp-http-common/test-requirements.latest.txt b/exporter/opentelemetry-exporter-otlp-http-common/test-requirements.latest.txt new file mode 100644 index 00000000000..530e83d0ee1 --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-http-common/test-requirements.latest.txt @@ -0,0 +1,55 @@ +# This file was autogenerated by uv via the following command: +# uv pip compile --python 3.10 --universal --resolution highest exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in -o exporter/opentelemetry-exporter-otlp-http-common/test-requirements.latest.txt +-e exporter/opentelemetry-exporter-http-transport + # via + # -r exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in + # opentelemetry-exporter-otlp-http-common +-e exporter/opentelemetry-exporter-otlp-http-common + # via -r exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in +certifi==2026.5.20 + # via requests +charset-normalizer==3.4.7 + # via requests +colorama==0.4.6 ; sys_platform == 'win32' + # via pytest +decorator==5.3.1 + # via mocket +exceptiongroup==1.3.1 ; python_full_version < '3.11' + # via pytest +h11==0.16.0 + # via mocket +idna==3.16 + # via requests +iniconfig==2.3.0 + # via + # -r exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in + # pytest +mocket==3.14.1 + # via -r exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in +packaging==26.2 + # via + # -r exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in + # pytest +pluggy==1.6.0 + # via + # -r exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in + # pytest +puremagic==1.30 ; python_full_version < '3.12' + # via mocket +puremagic==2.2.0 ; python_full_version >= '3.12' + # via mocket +pytest==7.4.4 + # via -r exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in +requests==2.34.2 + # via opentelemetry-exporter-http-transport +tomli==2.4.1 ; python_full_version < '3.11' + # via pytest +typing-extensions==4.15.0 + # via + # exceptiongroup + # mocket +urllib3==2.7.0 + # via + # mocket + # opentelemetry-exporter-http-transport + # requests diff --git a/exporter/opentelemetry-exporter-otlp-http-common/test-requirements.oldest.txt b/exporter/opentelemetry-exporter-otlp-http-common/test-requirements.oldest.txt new file mode 100644 index 00000000000..3b3353d0176 --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-http-common/test-requirements.oldest.txt @@ -0,0 +1,55 @@ +# This file was autogenerated by uv via the following command: +# uv pip compile --python 3.10 --universal --resolution lowest-direct exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in -o exporter/opentelemetry-exporter-otlp-http-common/test-requirements.oldest.txt +-e exporter/opentelemetry-exporter-http-transport + # via + # -r exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in + # opentelemetry-exporter-otlp-http-common +-e exporter/opentelemetry-exporter-otlp-http-common + # via -r exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in +certifi==2026.5.20 + # via requests +chardet==3.0.4 + # via requests +colorama==0.4.6 ; sys_platform == 'win32' + # via pytest +decorator==5.3.1 + # via mocket +exceptiongroup==1.3.1 ; python_full_version < '3.11' + # via pytest +h11==0.16.0 + # via mocket +idna==2.10 + # via requests +iniconfig==2.3.0 + # via + # -r exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in + # pytest +mocket==3.14.1 + # via -r exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in +packaging==26.2 + # via + # -r exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in + # pytest +pluggy==1.6.0 + # via + # -r exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in + # pytest +puremagic==1.30 ; python_full_version < '3.12' + # via mocket +puremagic==2.2.0 ; python_full_version >= '3.12' + # via mocket +pytest==7.4.4 + # via -r exporter/opentelemetry-exporter-otlp-http-common/test-requirements.in +requests==2.25.0 + # via opentelemetry-exporter-http-transport +tomli==2.4.1 ; python_full_version < '3.11' + # via pytest +typing-extensions==4.15.0 + # via + # exceptiongroup + # mocket +urllib3==1.26.0 + # via + # mocket + # opentelemetry-exporter-http-transport + # requests diff --git a/exporter/opentelemetry-exporter-otlp-http-common/tests/__init__.py b/exporter/opentelemetry-exporter-otlp-http-common/tests/__init__.py new file mode 100644 index 00000000000..e57cf4aba95 --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-http-common/tests/__init__.py @@ -0,0 +1,2 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 diff --git a/exporter/opentelemetry-exporter-otlp-http-common/tests/test_otlp_client.py b/exporter/opentelemetry-exporter-otlp-http-common/tests/test_otlp_client.py new file mode 100644 index 00000000000..c3359bd26d4 --- /dev/null +++ b/exporter/opentelemetry-exporter-otlp-http-common/tests/test_otlp_client.py @@ -0,0 +1,462 @@ +# Copyright The OpenTelemetry Authors +# SPDX-License-Identifier: Apache-2.0 + +# pylint: disable=unexpected-keyword-arg + +import gzip +import threading +import unittest +import zlib +from collections.abc import Callable, Iterator +from contextlib import contextmanager +from dataclasses import dataclass, field +from unittest.mock import Mock, patch + +# pylint: disable-next=import-error +from opentelemetry.exporter.http.transport._base import ( + BaseHTTPResult, + BaseHTTPTransport, +) + +# pylint: disable-next=import-error +from opentelemetry.exporter.otlp.http.common._otlp_client import ( + Compression, + OTLPHTTPClient, +) + + +@contextmanager +def _mock_clock( + shutdown_event: Mock | None = None, +) -> Iterator[Callable[[float], None]]: + _now = [0.0] + + def advance(delta: float) -> None: + _now[0] += delta + + def get_time() -> float: + return _now[0] + + if shutdown_event is not None: + + def _wait(duration: float) -> bool: + advance(duration) + return False + + shutdown_event.wait.side_effect = _wait + + with patch( + "opentelemetry.exporter.otlp.http.common._otlp_client.time.time", + side_effect=get_time, + ): + yield advance + + +@dataclass(frozen=True, slots=True) +class _TestHTTPResult(BaseHTTPResult): + response_headers: dict = field(default_factory=dict) + + # pylint: disable-next=no-self-use + def content(self) -> bytes: + return b"" + + def headers(self): + return self.response_headers + + +class _TestHTTPTransport(BaseHTTPTransport): + def __init__(self, *results, connection_errors=()): + self.results = list(results) + self.requests = [] + self.closed = False + self._connection_errors = set(connection_errors) + + def request( + self, + method, + url, + *, + headers=None, + timeout=None, + data=None, + ): + self.requests.append( + { + "method": method, + "url": url, + "headers": headers, + "timeout": timeout, + "data": data, + } + ) + result = self.results.pop(0) + if callable(result): + result = result() + if isinstance(result, Exception): + raise result + return result + + def is_connection_error(self, exception): + return exception in self._connection_errors + + def close(self): + self.closed = True + + +class TestOTLPHTTPClient(unittest.TestCase): + @staticmethod + def _client( + transport, + *, + timeout=5.0, + compression=Compression.NONE, + shutdown_event=None, + jitter=0.0, + ): + return OTLPHTTPClient( + transport=transport, + endpoint="http://example.test/v1/traces", + timeout=timeout, + compression=compression, + shutdown_event=shutdown_event or threading.Event(), + headers={"content-type": "application/x-protobuf"}, + kind="spans", + jitter=jitter, + ) + + def test_export_success_status_codes(self): + cases = ( + (200, "OK"), + (204, "No Content"), + (302, "Found"), + ) + + for status_code, reason in cases: + with self.subTest(status_code=status_code): + transport = _TestHTTPTransport( + _TestHTTPResult(status_code=status_code, reason=reason) + ) + client = self._client(transport) + + result = client.export(b"payload") + + self.assertTrue(result.success) + self.assertEqual(result.status_code, status_code) + self.assertEqual(result.reason, reason) + self.assertIsNone(result.error) + + @patch( + "opentelemetry.exporter.otlp.http.common._otlp_client.time.time", + side_effect=(100.0, 100.0, 100.0), + ) + def test_export_request_arguments(self, mock_time): + transport = _TestHTTPTransport( + _TestHTTPResult(status_code=200, reason="OK") + ) + client = self._client(transport, timeout=3.0) + + client.export(b"payload") + + self.assertEqual(len(transport.requests), 1) + self.assertEqual( + transport.requests[0], + { + "method": "POST", + "url": "http://example.test/v1/traces", + "headers": {"content-type": "application/x-protobuf"}, + "timeout": 3.0, + "data": b"payload", + }, + ) + self.assertEqual(mock_time.call_count, 3) + + def test_export_compresses_payload(self): + cases = ( + ( + Compression.NONE, + lambda data: data, + ), + ( + Compression.GZIP, + gzip.decompress, + ), + ( + Compression.DEFLATE, + zlib.decompress, + ), + ) + + for compression, decompress in cases: + with self.subTest(compression=compression): + transport = _TestHTTPTransport( + _TestHTTPResult(status_code=200, reason="OK") + ) + client = self._client(transport, compression=compression) + + result = client.export(b"payload") + + self.assertTrue(result.success) + self.assertEqual( + decompress(transport.requests[0]["data"]), b"payload" + ) + + def test_export_retryable_status_codes(self): + cases = ( + (429, "Too Many Requests"), + (502, "Bad Gateway"), + (503, "Service Unavailable"), + (504, "Gateway Timeout"), + ) + + for status_code, reason in cases: + with self.subTest(status_code=status_code): + shutdown_event = Mock(spec=threading.Event) + shutdown_event.is_set.return_value = False + shutdown_event.wait.return_value = False + transport = _TestHTTPTransport( + _TestHTTPResult( + status_code=status_code, + reason=reason, + ), + _TestHTTPResult(status_code=200, reason="OK"), + ) + client = self._client( + transport, + shutdown_event=shutdown_event, + ) + + result = client.export(b"payload") + + self.assertTrue(result.success) + self.assertEqual(len(transport.requests), 2) + shutdown_event.wait.assert_called_once_with(1.0) + + def test_export_connection_errors(self): + error = RuntimeError("connection failed") + transport = _TestHTTPTransport( + _TestHTTPResult(error=error), + _TestHTTPResult(status_code=200, reason="OK"), + connection_errors={error}, + ) + client = self._client(transport) + + result = client.export(b"payload") + + self.assertTrue(result.success) + self.assertEqual(len(transport.requests), 2) + self.assertAlmostEqual(transport.requests[0]["timeout"], 5.0, 2) + self.assertLessEqual( + transport.requests[1]["timeout"], + transport.requests[0]["timeout"], + ) + self.assertGreater(transport.requests[1]["timeout"], 0.0) + + def test_export_non_retryable_errors(self): + exception = RuntimeError("request failed") + cases = ( + ( + _TestHTTPResult(status_code=400, reason="Bad Request"), + 400, + "Bad Request", + None, + ), + ( + _TestHTTPResult(status_code=408, reason="Request Timeout"), + 408, + "Request Timeout", + None, + ), + ( + _TestHTTPResult( + status_code=500, reason="Internal Server Error" + ), + 500, + "Internal Server Error", + None, + ), + ( + _TestHTTPResult(error=exception), + None, + None, + exception, + ), + ( + exception, + None, + None, + exception, + ), + ) + + for ( + response, + expected_status_code, + expected_reason, + expected_error, + ) in cases: + with self.subTest(response=type(response).__name__): + transport = _TestHTTPTransport(response) + client = self._client(transport) + + result = client.export(b"payload") + + self.assertFalse(result.success) + self.assertEqual(result.status_code, expected_status_code) + self.assertEqual(result.reason, expected_reason) + self.assertIs(result.error, expected_error) + + def test_export_with_shutdown(self): + shutdown_event = Mock(spec=threading.Event) + shutdown_event.is_set.return_value = True + transport = _TestHTTPTransport( + _TestHTTPResult(status_code=503, reason="Service Unavailable") + ) + client = self._client(transport, shutdown_event=shutdown_event) + + result = client.export(b"payload") + + self.assertFalse(result.success) + self.assertEqual(result.status_code, 503) + self.assertEqual(result.reason, "Service Unavailable") + shutdown_event.wait.assert_not_called() + + def test_close_closes_transport(self): + transport = _TestHTTPTransport() + client = self._client(transport) + + client.close() + + self.assertTrue(transport.closed) + + def test_export_timeout_decreases_per_retry(self): + shutdown_event = Mock(spec=threading.Event) + shutdown_event.is_set.return_value = False + transport = _TestHTTPTransport( + _TestHTTPResult(status_code=503, reason="Service Unavailable"), + _TestHTTPResult(status_code=503, reason="Service Unavailable"), + _TestHTTPResult(status_code=200, reason="OK"), + ) + client = self._client( + transport, timeout=10.0, jitter=0.0, shutdown_event=shutdown_event + ) + + with _mock_clock(shutdown_event): + result = client.export(b"payload") + + # retry=0: wait(1.0) -> time=1.0, retry=1: wait(2.0) -> time=3.0, success + self.assertTrue(result.success) + self.assertAlmostEqual(transport.requests[0]["timeout"], 10.0) + self.assertAlmostEqual(transport.requests[1]["timeout"], 9.0) + self.assertAlmostEqual(transport.requests[2]["timeout"], 7.0) + + def test_export_backoff_exhausts_remaining_timeout(self): + shutdown_event = Mock(spec=threading.Event) + shutdown_event.is_set.return_value = False + transport = _TestHTTPTransport( + _TestHTTPResult(status_code=503, reason="Service Unavailable"), + _TestHTTPResult(status_code=503, reason="Service Unavailable"), + ) + # timeout=1.5: retry=0 backoff=1.0 fits -> wait(1.0) -> time=1.0 + # retry=1 backoff=2.0 > 0.5 remaining -> give up + client = self._client( + transport, timeout=1.5, jitter=0.0, shutdown_event=shutdown_event + ) + + with _mock_clock(shutdown_event): + result = client.export(b"payload") + + self.assertFalse(result.success) + self.assertEqual(result.status_code, 503) + self.assertEqual(len(transport.requests), 2) + shutdown_event.wait.assert_called_once_with(1.0) + + def test_export_exhausts_max_retries(self): + shutdown_event = Mock(spec=threading.Event) + shutdown_event.is_set.return_value = False + transport = _TestHTTPTransport( + *[_TestHTTPResult(status_code=503, reason="Service Unavailable")] + * 6 + ) + client = self._client( + transport, + timeout=1000.0, + jitter=0.0, + shutdown_event=shutdown_event, + ) + + with _mock_clock(shutdown_event): + result = client.export(b"payload") + + self.assertFalse(result.success) + self.assertEqual(len(transport.requests), 6) + self.assertEqual(shutdown_event.wait.call_count, 5) + self.assertEqual( + [call.args[0] for call in shutdown_event.wait.call_args_list], + [1.0, 2.0, 4.0, 8.0, 16.0], + ) + + def test_export_connection_error_gets_reduced_timeout(self): + stale_error = RuntimeError("stale connection") + transport = _TestHTTPTransport( + _TestHTTPResult(status_code=200, reason="OK"), + connection_errors={stale_error}, + ) + + with _mock_clock() as advance: + + def _slow_connection_error() -> _TestHTTPResult: + advance(2.0) + return _TestHTTPResult(error=stale_error) + + transport.results.insert(0, _slow_connection_error) + client = self._client(transport, timeout=5.0) + result = client.export(b"payload") + + # _submit: deadline=0+5=5.0, after first request time=2.0, remaining=3.0 + self.assertTrue(result.success) + self.assertEqual(len(transport.requests), 2) + self.assertAlmostEqual(transport.requests[1]["timeout"], 3.0) + + def test_export_retry_after_header_used_as_backoff(self): + shutdown_event = Mock(spec=threading.Event) + shutdown_event.is_set.return_value = False + shutdown_event.wait.return_value = False + transport = _TestHTTPTransport( + _TestHTTPResult( + status_code=429, + reason="Too Many Requests", + response_headers={"retry-after": "5"}, + ), + _TestHTTPResult(status_code=200, reason="OK"), + ) + client = self._client( + transport, timeout=60.0, shutdown_event=shutdown_event + ) + + result = client.export(b"payload") + + self.assertTrue(result.success) + self.assertEqual(len(transport.requests), 2) + shutdown_event.wait.assert_called_once_with(5.0) + + def test_export_retry_after_header_exhausts_timeout(self): + shutdown_event = Mock(spec=threading.Event) + shutdown_event.is_set.return_value = False + transport = _TestHTTPTransport( + _TestHTTPResult( + status_code=503, + reason="Service Unavailable", + response_headers={"retry-after": "10"}, + ), + ) + client = self._client( + transport, timeout=3.0, jitter=0.0, shutdown_event=shutdown_event + ) + + with _mock_clock(shutdown_event): + result = client.export(b"payload") + + self.assertFalse(result.success) + self.assertEqual(result.status_code, 503) + self.assertEqual(len(transport.requests), 1) + shutdown_event.wait.assert_not_called() diff --git a/pyproject.toml b/pyproject.toml index 28295af8658..15fdaab26df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,6 +9,8 @@ dependencies = [ "opentelemetry-proto", "opentelemetry-proto-json", "opentelemetry-test-utils", + "opentelemetry-exporter-http-transport", + "opentelemetry-exporter-otlp-http-common", "opentelemetry-exporter-otlp-proto-grpc", "opentelemetry-exporter-otlp-proto-http", "opentelemetry-exporter-otlp-proto-common", @@ -32,6 +34,8 @@ opentelemetry-proto = { workspace = true } opentelemetry-proto-json = { workspace = true } opentelemetry-semantic-conventions = { workspace = true } opentelemetry-test-utils = { workspace = true } +opentelemetry-exporter-http-transport = { workspace = true } +opentelemetry-exporter-otlp-http-common = { workspace = true } opentelemetry-exporter-otlp-proto-grpc = { workspace = true } opentelemetry-exporter-otlp-proto-http = { workspace = true } opentelemetry-exporter-otlp-proto-common = { workspace = true } @@ -119,6 +123,8 @@ include = [ "opentelemetry-api", "opentelemetry-sdk", "opentelemetry-proto-json", + "exporter/opentelemetry-exporter-http-transport", + "exporter/opentelemetry-exporter-otlp-http-common", "exporter/opentelemetry-exporter-otlp-proto-grpc", "exporter/opentelemetry-exporter-otlp-proto-http", "exporter/opentelemetry-exporter-otlp-json-common", @@ -137,6 +143,8 @@ exclude = [ "opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/metric_reader_storage.py", "opentelemetry-sdk/src/opentelemetry/sdk/metrics/_internal/view.py", "opentelemetry-sdk/benchmarks", + "exporter/opentelemetry-exporter-http-transport/tests", + "exporter/opentelemetry-exporter-otlp-http-common/tests", "exporter/opentelemetry-exporter-otlp-proto-grpc/tests", "exporter/opentelemetry-exporter-otlp-proto-http/tests", "exporter/opentelemetry-exporter-otlp-json-common/tests", diff --git a/tox.ini b/tox.ini index 5ebf34c3f37..2f5133b864b 100644 --- a/tox.ini +++ b/tox.ini @@ -44,6 +44,14 @@ envlist = ; opencensus-shim intentionally excluded from pypy3 (grpcio install fails) lint-opentelemetry-opencensus-shim + py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-http-transport-{oldest,latest} + ; exporter-http-transport intentionally excluded from pypy3 + lint-opentelemetry-exporter-http-transport + + py3{10,11,12,13,14,14t}-test-opentelemetry-exporter-otlp-http-common-{oldest,latest} + ; exporter-otlp-http-common intentionally excluded from pypy3 + lint-opentelemetry-exporter-otlp-http-common + py3{10,11,12,13,14}-test-opentelemetry-exporter-opencensus ; exporter-opencensus intentionally excluded from pypy3 lint-opentelemetry-exporter-opencensus @@ -136,6 +144,12 @@ deps = opentelemetry-protojson-gen-oldest: -r {toxinidir}/opentelemetry-proto-json/test-requirements.oldest.txt opentelemetry-protojson-gen-latest: -r {toxinidir}/opentelemetry-proto-json/test-requirements.latest.txt + opentelemetry-exporter-http-transport-oldest: -r {toxinidir}/exporter/opentelemetry-exporter-http-transport/test-requirements.oldest.txt + opentelemetry-exporter-http-transport-latest: -r {toxinidir}/exporter/opentelemetry-exporter-http-transport/test-requirements.latest.txt + + opentelemetry-exporter-otlp-http-common-oldest: -r {toxinidir}/exporter/opentelemetry-exporter-otlp-http-common/test-requirements.oldest.txt + opentelemetry-exporter-otlp-http-common-latest: -r {toxinidir}/exporter/opentelemetry-exporter-otlp-http-common/test-requirements.latest.txt + exporter-opencensus: -r {toxinidir}/exporter/opentelemetry-exporter-opencensus/test-requirements.txt exporter-otlp-proto-common: -r {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-common/test-requirements.txt @@ -230,6 +244,12 @@ commands = test-opentelemetry-opencensus-shim: pytest {toxinidir}/shim/opentelemetry-opencensus-shim/tests {posargs} lint-opentelemetry-opencensus-shim: sh -c "cd shim && pylint --rcfile ../.pylintrc {toxinidir}/shim/opentelemetry-opencensus-shim" + test-opentelemetry-exporter-http-transport: pytest {toxinidir}/exporter/opentelemetry-exporter-http-transport/tests {posargs} + lint-opentelemetry-exporter-http-transport: sh -c "cd exporter && pylint --rcfile ../.pylintrc {toxinidir}/exporter/opentelemetry-exporter-http-transport" + + test-opentelemetry-exporter-otlp-http-common: pytest {toxinidir}/exporter/opentelemetry-exporter-otlp-http-common/tests {posargs} + lint-opentelemetry-exporter-otlp-http-common: sh -c "cd exporter && pylint --rcfile ../.pylintrc {toxinidir}/exporter/opentelemetry-exporter-otlp-http-common" + test-opentelemetry-exporter-opencensus: pytest {toxinidir}/exporter/opentelemetry-exporter-opencensus/tests {posargs} lint-opentelemetry-exporter-opencensus: sh -c "cd exporter && pylint --rcfile ../.pylintrc {toxinidir}/exporter/opentelemetry-exporter-opencensus" @@ -402,6 +422,7 @@ deps = -e {toxinidir}/opentelemetry-semantic-conventions -e {toxinidir}/opentelemetry-sdk[file-configuration] -e {toxinidir}/tests/opentelemetry-test-utils + -e {toxinidir}/exporter/opentelemetry-exporter-http-transport -e {toxinidir}/exporter/opentelemetry-exporter-otlp-proto-common -e {toxinidir}/exporter/opentelemetry-exporter-otlp-json-common -e {toxinidir}/exporter/opentelemetry-exporter-otlp diff --git a/uv.lock b/uv.lock index c7eb242e8dc..63727492a3c 100644 --- a/uv.lock +++ b/uv.lock @@ -11,7 +11,9 @@ resolution-markers = [ members = [ "opentelemetry-api", "opentelemetry-codegen-json", + "opentelemetry-exporter-http-transport", "opentelemetry-exporter-otlp", + "opentelemetry-exporter-otlp-http-common", "opentelemetry-exporter-otlp-json-common", "opentelemetry-exporter-otlp-proto-common", "opentelemetry-exporter-otlp-proto-grpc", @@ -31,7 +33,7 @@ members = [ [[package]] name = "annotated-types" version = "0.7.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/ee/67/531ea369ba64dcff5ec9c3402f9f51bf748cec26dde048a2f973a4eea7f5/annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89", size = 16081, upload-time = "2024-05-20T21:33:25.928Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/78/b6/6307fbef88d9b5ee7421e68d78a9f162e0da4900bc5f5793f6d3d0e34fb8/annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53", size = 13643, upload-time = "2024-05-20T21:33:24.1Z" }, @@ -40,7 +42,7 @@ wheels = [ [[package]] name = "anyio" version = "4.13.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "exceptiongroup", marker = "python_full_version < '3.11'" }, { name = "idna" }, @@ -54,7 +56,7 @@ wheels = [ [[package]] name = "argcomplete" version = "3.6.3" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/38/61/0b9ae6399dd4a58d8c1b1dc5a27d6f2808023d0b5dd3104bb99f45a33ff6/argcomplete-3.6.3.tar.gz", hash = "sha256:62e8ed4fd6a45864acc8235409461b72c9a28ee785a2011cc5eb78318786c89c", size = 73754, upload-time = "2025-10-20T03:33:34.741Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/74/f5/9373290775639cb67a2fce7f629a1c240dce9f12fe927bc32b2736e16dfc/argcomplete-3.6.3-py3-none-any.whl", hash = "sha256:f5007b3a600ccac5d25bbce33089211dfd49eab4a7718da3f10e3082525a92ce", size = 43846, upload-time = "2025-10-20T03:33:33.021Z" }, @@ -63,7 +65,7 @@ wheels = [ [[package]] name = "asgiref" version = "3.11.1" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "typing-extensions", marker = "python_full_version < '3.11'" }, ] @@ -75,7 +77,7 @@ wheels = [ [[package]] name = "attrs" version = "26.1.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/9a/8e/82a0fe20a541c03148528be8cac2408564a6c9a0cc7e9171802bc1d26985/attrs-26.1.0.tar.gz", hash = "sha256:d03ceb89cb322a8fd706d4fb91940737b6642aa36998fe130a9bc96c985eff32", size = 952055, upload-time = "2026-03-19T14:22:25.026Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/64/b4/17d4b0b2a2dc85a6df63d1157e028ed19f90d4cd97c36717afef2bc2f395/attrs-26.1.0-py3-none-any.whl", hash = "sha256:c647aa4a12dfbad9333ca4e71fe62ddc36f4e63b2d260a37a8b83d2f043ac309", size = 67548, upload-time = "2026-03-19T14:22:23.645Z" }, @@ -84,7 +86,7 @@ wheels = [ [[package]] name = "black" version = "26.3.1" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "click" }, { name = "mypy-extensions" }, @@ -128,7 +130,7 @@ wheels = [ [[package]] name = "cachetools" version = "7.0.5" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/af/dd/57fe3fdb6e65b25a5987fd2cdc7e22db0aef508b91634d2e57d22928d41b/cachetools-7.0.5.tar.gz", hash = "sha256:0cd042c24377200c1dcd225f8b7b12b0ca53cc2c961b43757e774ebe190fd990", size = 37367, upload-time = "2026-03-09T20:51:29.451Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/06/f3/39cf3367b8107baa44f861dc802cbf16263c945b62d8265d36034fc07bea/cachetools-7.0.5-py3-none-any.whl", hash = "sha256:46bc8ebefbe485407621d0a4264b23c080cedd913921bad7ac3ed2f26c183114", size = 13918, upload-time = "2026-03-09T20:51:27.33Z" }, @@ -137,7 +139,7 @@ wheels = [ [[package]] name = "certifi" version = "2026.2.25" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/af/2d/7bf41579a8986e348fa033a31cdd0e4121114f6bce2457e8876010b092dd/certifi-2026.2.25.tar.gz", hash = "sha256:e887ab5cee78ea814d3472169153c2d12cd43b14bd03329a39a9c6e2e80bfba7", size = 155029, upload-time = "2026-02-25T02:54:17.342Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/9a/3c/c17fb3ca2d9c3acff52e30b309f538586f9f5b9c9cf454f3845fc9af4881/certifi-2026.2.25-py3-none-any.whl", hash = "sha256:027692e4402ad994f1c42e52a4997a9763c646b73e4096e4d5d6db8af1d6f0fa", size = 153684, upload-time = "2026-02-25T02:54:15.766Z" }, @@ -146,7 +148,7 @@ wheels = [ [[package]] name = "cffi" version = "2.0.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "pycparser", marker = "implementation_name != 'PyPy'" }, ] @@ -228,7 +230,7 @@ wheels = [ [[package]] name = "cfgv" version = "3.5.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/4e/b5/721b8799b04bf9afe054a3899c6cf4e880fcf8563cc71c15610242490a0c/cfgv-3.5.0.tar.gz", hash = "sha256:d5b1034354820651caa73ede66a6294d6e95c1b00acc5e9b098e917404669132", size = 7334, upload-time = "2025-11-19T20:55:51.612Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/db/3c/33bac158f8ab7f89b2e59426d5fe2e4f63f7ed25df84c036890172b412b5/cfgv-3.5.0-py2.py3-none-any.whl", hash = "sha256:a8dc6b26ad22ff227d2634a65cb388215ce6cc96bbcc5cfde7641ae87e8dacc0", size = 7445, upload-time = "2025-11-19T20:55:50.744Z" }, @@ -237,7 +239,7 @@ wheels = [ [[package]] name = "charset-normalizer" version = "3.4.7" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/e7/a1/67fe25fac3c7642725500a3f6cfe5821ad557c3abb11c9d20d12c7008d3e/charset_normalizer-3.4.7.tar.gz", hash = "sha256:ae89db9e5f98a11a4bf50407d4363e7b09b31e55bc117b4f7d80aab97ba009e5", size = 144271, upload-time = "2026-04-02T09:28:39.342Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/26/08/0f303cb0b529e456bb116f2d50565a482694fbb94340bf56d44677e7ed03/charset_normalizer-3.4.7-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:cdd68a1fb318e290a2077696b7eb7a21a49163c455979c639bf5a5dcdc46617d", size = 315182, upload-time = "2026-04-02T09:25:40.673Z" }, @@ -342,7 +344,7 @@ wheels = [ [[package]] name = "click" version = "8.3.2" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "colorama", marker = "sys_platform == 'win32'" }, ] @@ -354,7 +356,7 @@ wheels = [ [[package]] name = "colorama" version = "0.4.6" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/d8/53/6f443c9a4a8358a93a6792e2acffb9d9d5cb0a5cfd8802644b7b1c9a02e4/colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44", size = 27697, upload-time = "2022-10-25T02:36:22.414Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/d1/d6/3965ed04c63042e047cb6a3e6ed1a63a35087b6a609aa3a15ed8ac56c221/colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6", size = 25335, upload-time = "2022-10-25T02:36:20.889Z" }, @@ -363,7 +365,7 @@ wheels = [ [[package]] name = "cryptography" version = "46.0.7" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "cffi", marker = "platform_python_implementation != 'PyPy'" }, { name = "typing-extensions", marker = "python_full_version < '3.11'" }, @@ -423,7 +425,7 @@ wheels = [ [[package]] name = "datamodel-code-generator" version = "0.56.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "argcomplete" }, { name = "black" }, @@ -451,7 +453,7 @@ ruff = [ [[package]] name = "distlib" version = "0.4.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/96/8e/709914eb2b5749865801041647dc7f4e6d00b549cfe88b65ca192995f07c/distlib-0.4.0.tar.gz", hash = "sha256:feec40075be03a04501a973d81f633735b4b69f98b05450592310c0f401a4e0d", size = 614605, upload-time = "2025-07-17T16:52:00.465Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/33/6b/e0547afaf41bf2c42e52430072fa5658766e3d65bd4b03a563d1b6336f57/distlib-0.4.0-py2.py3-none-any.whl", hash = "sha256:9659f7d87e46584a30b5780e43ac7a2143098441670ff0a49d5f9034c54a6c16", size = 469047, upload-time = "2025-07-17T16:51:58.613Z" }, @@ -460,7 +462,7 @@ wheels = [ [[package]] name = "exceptiongroup" version = "1.3.1" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "typing-extensions", marker = "python_full_version < '3.13'" }, ] @@ -472,7 +474,7 @@ wheels = [ [[package]] name = "filelock" version = "3.25.2" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/94/b8/00651a0f559862f3bb7d6f7477b192afe3f583cc5e26403b44e59a55ab34/filelock-3.25.2.tar.gz", hash = "sha256:b64ece2b38f4ca29dd3e810287aa8c48182bbecd1ae6e9ae126c9b35f1382694", size = 40480, upload-time = "2026-03-11T20:45:38.487Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/a4/a5/842ae8f0c08b61d6484b52f99a03510a3a72d23141942d216ebe81fefbce/filelock-3.25.2-py3-none-any.whl", hash = "sha256:ca8afb0da15f229774c9ad1b455ed96e85a81373065fb10446672f64444ddf70", size = 26759, upload-time = "2026-03-11T20:45:37.437Z" }, @@ -481,7 +483,7 @@ wheels = [ [[package]] name = "genson" version = "1.3.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/c5/cf/2303c8ad276dcf5ee2ad6cf69c4338fd86ef0f471a5207b069adf7a393cf/genson-1.3.0.tar.gz", hash = "sha256:e02db9ac2e3fd29e65b5286f7135762e2cd8a986537c075b06fc5f1517308e37", size = 34919, upload-time = "2024-05-15T22:08:49.123Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/f8/5c/e226de133afd8bb267ec27eead9ae3d784b95b39a287ed404caab39a5f50/genson-1.3.0-py3-none-any.whl", hash = "sha256:468feccd00274cc7e4c09e84b08704270ba8d95232aa280f65b986139cec67f7", size = 21470, upload-time = "2024-05-15T22:08:47.056Z" }, @@ -490,7 +492,7 @@ wheels = [ [[package]] name = "google-auth" version = "2.49.1" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "cryptography" }, { name = "pyasn1-modules" }, @@ -503,7 +505,7 @@ wheels = [ [[package]] name = "googleapis-common-protos" version = "1.74.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "protobuf" }, ] @@ -515,7 +517,7 @@ wheels = [ [[package]] name = "grpcio" version = "1.80.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "typing-extensions" }, ] @@ -576,7 +578,7 @@ wheels = [ [[package]] name = "h11" version = "0.16.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/01/ee/02a2c011bdab74c6fb3c75474d40b3052059d95df7e73351460c8588d963/h11-0.16.0.tar.gz", hash = "sha256:4e35b956cf45792e4caa5885e69fba00bdbc6ffafbfa020300e549b208ee5ff1", size = 101250, upload-time = "2025-04-24T03:35:25.427Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/04/4b/29cac41a4d98d144bf5f6d33995617b185d14b22401f75ca86f384e87ff1/h11-0.16.0-py3-none-any.whl", hash = "sha256:63cf8bbe7522de3bf65932fda1d9c2772064ffb3dae62d55932da54b31cb6c86", size = 37515, upload-time = "2025-04-24T03:35:24.344Z" }, @@ -585,7 +587,7 @@ wheels = [ [[package]] name = "httpcore" version = "1.0.9" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "certifi" }, { name = "h11" }, @@ -598,7 +600,7 @@ wheels = [ [[package]] name = "httpx" version = "0.28.1" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "anyio" }, { name = "certifi" }, @@ -613,7 +615,7 @@ wheels = [ [[package]] name = "identify" version = "2.6.18" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/46/c4/7fb4db12296cdb11893d61c92048fe617ee853f8523b9b296ac03b43757e/identify-2.6.18.tar.gz", hash = "sha256:873ac56a5e3fd63e7438a7ecbc4d91aca692eb3fefa4534db2b7913f3fc352fd", size = 99580, upload-time = "2026-03-15T18:39:50.319Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/46/33/92ef41c6fad0233e41d3d84ba8e8ad18d1780f1e5d99b3c683e6d7f98b63/identify-2.6.18-py2.py3-none-any.whl", hash = "sha256:8db9d3c8ea9079db92cafb0ebf97abdc09d52e97f4dcf773a2e694048b7cd737", size = 99394, upload-time = "2026-03-15T18:39:48.915Z" }, @@ -622,7 +624,7 @@ wheels = [ [[package]] name = "idna" version = "3.11" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/6f/6d/0703ccc57f3a7233505399edb88de3cbd678da106337b9fcde432b65ed60/idna-3.11.tar.gz", hash = "sha256:795dafcc9c04ed0c1fb032c2aa73654d8e8c5023a7df64a53f39190ada629902", size = 194582, upload-time = "2025-10-12T14:55:20.501Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/0e/61/66938bbb5fc52dbdf84594873d5b51fb1f7c7794e9c0f5bd885f30bc507b/idna-3.11-py3-none-any.whl", hash = "sha256:771a87f49d9defaf64091e6e6fe9c18d4833f140bd19464795bc32d966ca37ea", size = 71008, upload-time = "2025-10-12T14:55:18.883Z" }, @@ -631,7 +633,7 @@ wheels = [ [[package]] name = "inflect" version = "7.5.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "more-itertools" }, { name = "typeguard" }, @@ -644,7 +646,7 @@ wheels = [ [[package]] name = "isort" version = "8.0.1" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/ef/7c/ec4ab396d31b3b395e2e999c8f46dec78c5e29209fac49d1f4dace04041d/isort-8.0.1.tar.gz", hash = "sha256:171ac4ff559cdc060bcfff550bc8404a486fee0caab245679c2abe7cb253c78d", size = 769592, upload-time = "2026-02-28T10:08:20.685Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/3e/95/c7c34aa53c16353c56d0b802fba48d5f5caa2cdee7958acbcb795c830416/isort-8.0.1-py3-none-any.whl", hash = "sha256:28b89bc70f751b559aeca209e6120393d43fbe2490de0559662be7a9787e3d75", size = 89733, upload-time = "2026-02-28T10:08:19.466Z" }, @@ -653,7 +655,7 @@ wheels = [ [[package]] name = "jinja2" version = "3.1.6" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "markupsafe" }, ] @@ -665,7 +667,7 @@ wheels = [ [[package]] name = "jsonschema" version = "4.26.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "attrs" }, { name = "jsonschema-specifications" }, @@ -680,7 +682,7 @@ wheels = [ [[package]] name = "jsonschema-specifications" version = "2025.9.1" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "referencing" }, ] @@ -692,7 +694,7 @@ wheels = [ [[package]] name = "markupsafe" version = "3.0.3" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/7e/99/7690b6d4034fffd95959cbe0c02de8deb3098cc577c67bb6a24fe5d7caa7/markupsafe-3.0.3.tar.gz", hash = "sha256:722695808f4b6457b320fdc131280796bdceb04ab50fe1795cd540799ebe1698", size = 80313, upload-time = "2025-09-27T18:37:40.426Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/e8/4b/3541d44f3937ba468b75da9eebcae497dcf67adb65caa16760b0a6807ebb/markupsafe-3.0.3-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2f981d352f04553a7171b8e44369f2af4055f888dfb147d55e42d29e29e74559", size = 11631, upload-time = "2025-09-27T18:36:05.558Z" }, @@ -777,7 +779,7 @@ wheels = [ [[package]] name = "more-itertools" version = "11.0.2" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/a2/f7/139d22fef48ac78127d18e01d80cf1be40236ae489769d17f35c3d425293/more_itertools-11.0.2.tar.gz", hash = "sha256:392a9e1e362cbc106a2457d37cabf9b36e5e12efd4ebff1654630e76597df804", size = 144659, upload-time = "2026-04-09T15:01:33.297Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/cb/98/6af411189d9413534c3eb691182bff1f5c6d44ed2f93f2edfe52a1bbceb8/more_itertools-11.0.2-py3-none-any.whl", hash = "sha256:6e35b35f818b01f691643c6c611bc0902f2e92b46c18fffa77ae1e7c46e912e4", size = 71939, upload-time = "2026-04-09T15:01:32.21Z" }, @@ -786,7 +788,7 @@ wheels = [ [[package]] name = "mypy-extensions" version = "1.1.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/a2/6e/371856a3fb9d31ca8dac321cda606860fa4548858c0cc45d9d1d4ca2628b/mypy_extensions-1.1.0.tar.gz", hash = "sha256:52e68efc3284861e772bbcd66823fde5ae21fd2fdb51c62a211403730b916558", size = 6343, upload-time = "2025-04-22T14:54:24.164Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/79/7b/2c79738432f5c924bef5071f933bcc9efd0473bac3b4aa584a6f7c1c8df8/mypy_extensions-1.1.0-py3-none-any.whl", hash = "sha256:1be4cccdb0f2482337c4743e60421de3a356cd97508abadd57d47403e94f5505", size = 4963, upload-time = "2025-04-22T14:54:22.983Z" }, @@ -795,7 +797,7 @@ wheels = [ [[package]] name = "nodeenv" version = "1.10.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/24/bf/d1bda4f6168e0b2e9e5958945e01910052158313224ada5ce1fb2e1113b8/nodeenv-1.10.0.tar.gz", hash = "sha256:996c191ad80897d076bdfba80a41994c2b47c68e224c542b48feba42ba00f8bb", size = 55611, upload-time = "2025-12-20T14:08:54.006Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/88/b2/d0896bdcdc8d28a7fc5717c305f1a861c26e18c05047949fb371034d98bd/nodeenv-1.10.0-py2.py3-none-any.whl", hash = "sha256:5bb13e3eed2923615535339b3c620e76779af4cb4c6a90deccc9e36b274d3827", size = 23438, upload-time = "2025-12-20T14:08:52.782Z" }, @@ -829,7 +831,7 @@ requires-dist = [ [[package]] name = "opentelemetry-exporter-credential-provider-gcp" version = "0.62b0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "google-auth" }, { name = "grpcio" }, @@ -840,6 +842,25 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/45/a4/d59629684cef86a9da39241edd25dc2dff849d08def6200d50c951e1dd2a/opentelemetry_exporter_credential_provider_gcp-0.62b0-py3-none-any.whl", hash = "sha256:56d15d6486c40d9f958f34b1e9b4b6c9122789f5d136fc1381948b7b4b3af3ca", size = 8343, upload-time = "2026-04-09T14:39:18.399Z" }, ] +[[package]] +name = "opentelemetry-exporter-http-transport" +source = { editable = "exporter/opentelemetry-exporter-http-transport" } + +[package.optional-dependencies] +requests = [ + { name = "requests" }, +] +urllib3 = [ + { name = "urllib3" }, +] + +[package.metadata] +requires-dist = [ + { name = "requests", marker = "extra == 'requests'", specifier = "~=2.25" }, + { name = "urllib3", marker = "extra == 'urllib3'", specifier = ">=1.26" }, +] +provides-extras = ["requests", "urllib3"] + [[package]] name = "opentelemetry-exporter-otlp" source = { editable = "exporter/opentelemetry-exporter-otlp" } @@ -854,6 +875,16 @@ requires-dist = [ { name = "opentelemetry-exporter-otlp-proto-http", editable = "exporter/opentelemetry-exporter-otlp-proto-http" }, ] +[[package]] +name = "opentelemetry-exporter-otlp-http-common" +source = { editable = "exporter/opentelemetry-exporter-otlp-http-common" } +dependencies = [ + { name = "opentelemetry-exporter-http-transport" }, +] + +[package.metadata] +requires-dist = [{ name = "opentelemetry-exporter-http-transport", editable = "exporter/opentelemetry-exporter-http-transport" }] + [[package]] name = "opentelemetry-exporter-otlp-json-common" source = { editable = "exporter/opentelemetry-exporter-otlp-json-common" } @@ -1019,6 +1050,8 @@ source = { virtual = "." } dependencies = [ { name = "opentelemetry-api" }, { name = "opentelemetry-codegen-json" }, + { name = "opentelemetry-exporter-http-transport" }, + { name = "opentelemetry-exporter-otlp-http-common" }, { name = "opentelemetry-exporter-otlp-json-common" }, { name = "opentelemetry-exporter-otlp-proto-common" }, { name = "opentelemetry-exporter-otlp-proto-grpc" }, @@ -1047,6 +1080,8 @@ dev = [ requires-dist = [ { name = "opentelemetry-api", editable = "opentelemetry-api" }, { name = "opentelemetry-codegen-json", editable = "codegen/opentelemetry-codegen-json" }, + { name = "opentelemetry-exporter-http-transport", editable = "exporter/opentelemetry-exporter-http-transport" }, + { name = "opentelemetry-exporter-otlp-http-common", editable = "exporter/opentelemetry-exporter-otlp-http-common" }, { name = "opentelemetry-exporter-otlp-json-common", editable = "exporter/opentelemetry-exporter-otlp-json-common" }, { name = "opentelemetry-exporter-otlp-proto-common", editable = "exporter/opentelemetry-exporter-otlp-proto-common" }, { name = "opentelemetry-exporter-otlp-proto-grpc", editable = "exporter/opentelemetry-exporter-otlp-proto-grpc" }, @@ -1132,7 +1167,7 @@ requires-dist = [ [[package]] name = "packaging" version = "26.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/65/ee/299d360cdc32edc7d2cf530f3accf79c4fca01e96ffc950d8a52213bd8e4/packaging-26.0.tar.gz", hash = "sha256:00243ae351a257117b6a241061796684b084ed1c516a08c48a3f7e147a9d80b4", size = 143416, upload-time = "2026-01-21T20:50:39.064Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/b7/b9/c538f279a4e237a006a2c98387d081e9eb060d203d8ed34467cc0f0b9b53/packaging-26.0-py3-none-any.whl", hash = "sha256:b36f1fef9334a5588b4166f8bcd26a14e521f2b55e6b9de3aaa80d3ff7a37529", size = 74366, upload-time = "2026-01-21T20:50:37.788Z" }, @@ -1141,7 +1176,7 @@ wheels = [ [[package]] name = "pathspec" version = "1.0.4" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/fa/36/e27608899f9b8d4dff0617b2d9ab17ca5608956ca44461ac14ac48b44015/pathspec-1.0.4.tar.gz", hash = "sha256:0210e2ae8a21a9137c0d470578cb0e595af87edaa6ebf12ff176f14a02e0e645", size = 131200, upload-time = "2026-01-27T03:59:46.938Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/ef/3c/2c197d226f9ea224a9ab8d197933f9da0ae0aac5b6e0f884e2b8d9c8e9f7/pathspec-1.0.4-py3-none-any.whl", hash = "sha256:fb6ae2fd4e7c921a165808a552060e722767cfa526f99ca5156ed2ce45a5c723", size = 55206, upload-time = "2026-01-27T03:59:45.137Z" }, @@ -1150,7 +1185,7 @@ wheels = [ [[package]] name = "platformdirs" version = "4.9.6" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/9f/4a/0883b8e3802965322523f0b200ecf33d31f10991d0401162f4b23c698b42/platformdirs-4.9.6.tar.gz", hash = "sha256:3bfa75b0ad0db84096ae777218481852c0ebc6c727b3168c1b9e0118e458cf0a", size = 29400, upload-time = "2026-04-09T00:04:10.812Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/75/a6/a0a304dc33b49145b21f4808d763822111e67d1c3a32b524a1baf947b6e1/platformdirs-4.9.6-py3-none-any.whl", hash = "sha256:e61adb1d5e5cb3441b4b7710bea7e4c12250ca49439228cc1021c00dcfac0917", size = 21348, upload-time = "2026-04-09T00:04:09.463Z" }, @@ -1159,7 +1194,7 @@ wheels = [ [[package]] name = "pluggy" version = "1.6.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/f9/e2/3e91f31a7d2b083fe6ef3fa267035b518369d9511ffab804f839851d2779/pluggy-1.6.0.tar.gz", hash = "sha256:7dcc130b76258d33b90f61b658791dede3486c3e6bfb003ee5c9bfb396dd22f3", size = 69412, upload-time = "2025-05-15T12:30:07.975Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/54/20/4d324d65cc6d9205fabedc306948156824eb9f0ee1633355a8f7ec5c66bf/pluggy-1.6.0-py3-none-any.whl", hash = "sha256:e920276dd6813095e9377c0bc5566d94c932c33b27a3e3945d8389c374dd4746", size = 20538, upload-time = "2025-05-15T12:30:06.134Z" }, @@ -1168,7 +1203,7 @@ wheels = [ [[package]] name = "pre-commit" version = "4.5.1" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "cfgv" }, { name = "identify" }, @@ -1184,7 +1219,7 @@ wheels = [ [[package]] name = "prometheus-client" version = "0.25.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/1b/fb/d9aa83ffe43ce1f19e557c0971d04b90561b0cfd50762aafb01968285553/prometheus_client-0.25.0.tar.gz", hash = "sha256:5e373b75c31afb3c86f1a52fa1ad470c9aace18082d39ec0d2f918d11cc9ba28", size = 86035, upload-time = "2026-04-09T19:53:42.359Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/8d/9b/d4b1e644385499c8346fa9b622a3f030dce14cd6ef8a1871c221a17a67e7/prometheus_client-0.25.0-py3-none-any.whl", hash = "sha256:d5aec89e349a6ec230805d0df882f3807f74fd6c1a2fa86864e3c2279059fed1", size = 64154, upload-time = "2026-04-09T19:53:41.324Z" }, @@ -1193,7 +1228,7 @@ wheels = [ [[package]] name = "protobuf" version = "6.33.6" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/66/70/e908e9c5e52ef7c3a6c7902c9dfbb34c7e29c25d2f81ade3856445fd5c94/protobuf-6.33.6.tar.gz", hash = "sha256:a6768d25248312c297558af96a9f9c929e8c4cee0659cb07e780731095f38135", size = 444531, upload-time = "2026-03-18T19:05:00.988Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/fc/9f/2f509339e89cfa6f6a4c4ff50438db9ca488dec341f7e454adad60150b00/protobuf-6.33.6-cp310-abi3-win32.whl", hash = "sha256:7d29d9b65f8afef196f8334e80d6bc1d5d4adedb449971fefd3723824e6e77d3", size = 425739, upload-time = "2026-03-18T19:04:48.373Z" }, @@ -1208,7 +1243,7 @@ wheels = [ [[package]] name = "pyasn1" version = "0.6.3" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/5c/5f/6583902b6f79b399c9c40674ac384fd9cd77805f9e6205075f828ef11fb2/pyasn1-0.6.3.tar.gz", hash = "sha256:697a8ecd6d98891189184ca1fa05d1bb00e2f84b5977c481452050549c8a72cf", size = 148685, upload-time = "2026-03-17T01:06:53.382Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/5d/a0/7d793dce3fa811fe047d6ae2431c672364b462850c6235ae306c0efd025f/pyasn1-0.6.3-py3-none-any.whl", hash = "sha256:a80184d120f0864a52a073acc6fc642847d0be408e7c7252f31390c0f4eadcde", size = 83997, upload-time = "2026-03-17T01:06:52.036Z" }, @@ -1217,7 +1252,7 @@ wheels = [ [[package]] name = "pyasn1-modules" version = "0.4.2" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "pyasn1" }, ] @@ -1229,7 +1264,7 @@ wheels = [ [[package]] name = "pycparser" version = "3.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/1b/7d/92392ff7815c21062bea51aa7b87d45576f649f16458d78b7cf94b9ab2e6/pycparser-3.0.tar.gz", hash = "sha256:600f49d217304a5902ac3c37e1281c9fe94e4d0489de643a9504c5cdfdfc6b29", size = 103492, upload-time = "2026-01-21T14:26:51.89Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/0c/c3/44f3fbbfa403ea2a7c779186dc20772604442dde72947e7d01069cbe98e3/pycparser-3.0-py3-none-any.whl", hash = "sha256:b727414169a36b7d524c1c3e31839a521725078d7b2ff038656844266160a992", size = 48172, upload-time = "2026-01-21T14:26:50.693Z" }, @@ -1238,7 +1273,7 @@ wheels = [ [[package]] name = "pydantic" version = "2.12.5" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "annotated-types" }, { name = "pydantic-core" }, @@ -1253,7 +1288,7 @@ wheels = [ [[package]] name = "pydantic-core" version = "2.41.5" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "typing-extensions" }, ] @@ -1371,7 +1406,7 @@ wheels = [ [[package]] name = "pyproject-api" version = "1.10.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "packaging" }, { name = "tomli", marker = "python_full_version < '3.11'" }, @@ -1384,7 +1419,7 @@ wheels = [ [[package]] name = "python-discovery" version = "1.2.2" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "filelock" }, { name = "platformdirs" }, @@ -1397,7 +1432,7 @@ wheels = [ [[package]] name = "pytokens" version = "0.4.1" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/b6/34/b4e015b99031667a7b960f888889c5bd34ef585c85e1cb56a594b92836ac/pytokens-0.4.1.tar.gz", hash = "sha256:292052fe80923aae2260c073f822ceba21f3872ced9a68bb7953b348e561179a", size = 23015, upload-time = "2026-01-30T01:03:45.924Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/42/24/f206113e05cb8ef51b3850e7ef88f20da6f4bf932190ceb48bd3da103e10/pytokens-0.4.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2a44ed93ea23415c54f3face3b65ef2b844d96aeb3455b8a69b3df6beab6acc5", size = 161522, upload-time = "2026-01-30T01:02:50.393Z" }, @@ -1436,7 +1471,7 @@ wheels = [ [[package]] name = "pyyaml" version = "6.0.3" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/05/8e/961c0007c59b8dd7729d542c61a4d537767a59645b82a0b521206e1e25c2/pyyaml-6.0.3.tar.gz", hash = "sha256:d76623373421df22fb4cf8817020cbb7ef15c725b9d5e45f17e189bfc384190f", size = 130960, upload-time = "2025-09-25T21:33:16.546Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/f4/a0/39350dd17dd6d6c6507025c0e53aef67a9293a6d37d3511f23ea510d5800/pyyaml-6.0.3-cp310-cp310-macosx_10_13_x86_64.whl", hash = "sha256:214ed4befebe12df36bcc8bc2b64b396ca31be9304b8f59e25c11cf94a4c033b", size = 184227, upload-time = "2025-09-25T21:31:46.04Z" }, @@ -1500,7 +1535,7 @@ wheels = [ [[package]] name = "referencing" version = "0.37.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "attrs" }, { name = "rpds-py" }, @@ -1514,7 +1549,7 @@ wheels = [ [[package]] name = "requests" version = "2.33.1" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "certifi" }, { name = "charset-normalizer" }, @@ -1529,7 +1564,7 @@ wheels = [ [[package]] name = "rpds-py" version = "0.30.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/20/af/3f2f423103f1113b36230496629986e0ef7e199d2aa8392452b484b38ced/rpds_py-0.30.0.tar.gz", hash = "sha256:dd8ff7cf90014af0c0f787eea34794ebf6415242ee1d6fa91eaba725cc441e84", size = 69469, upload-time = "2025-11-30T20:24:38.837Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/06/0c/0c411a0ec64ccb6d104dcabe0e713e05e153a9a2c3c2bd2b32ce412166fe/rpds_py-0.30.0-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:679ae98e00c0e8d68a7fda324e16b90fd5260945b45d3b824c892cec9eea3288", size = 370490, upload-time = "2025-11-30T20:21:33.256Z" }, @@ -1651,7 +1686,7 @@ wheels = [ [[package]] name = "ruff" version = "0.15.10" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/e7/d9/aa3f7d59a10ef6b14fe3431706f854dbf03c5976be614a9796d36326810c/ruff-0.15.10.tar.gz", hash = "sha256:d1f86e67ebfdef88e00faefa1552b5e510e1d35f3be7d423dc7e84e63788c94e", size = 4631728, upload-time = "2026-04-09T14:06:09.884Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/eb/00/a1c2fdc9939b2c03691edbda290afcd297f1f389196172826b03d6b6a595/ruff-0.15.10-py3-none-linux_armv6l.whl", hash = "sha256:0744e31482f8f7d0d10a11fcbf897af272fefdfcb10f5af907b18c2813ff4d5f", size = 10563362, upload-time = "2026-04-09T14:06:21.189Z" }, @@ -1676,7 +1711,7 @@ wheels = [ [[package]] name = "tomli" version = "2.4.1" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/22/de/48c59722572767841493b26183a0d1cc411d54fd759c5607c4590b6563a6/tomli-2.4.1.tar.gz", hash = "sha256:7c7e1a961a0b2f2472c1ac5b69affa0ae1132c39adcb67aba98568702b9cc23f", size = 17543, upload-time = "2026-03-25T20:22:03.828Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/f4/11/db3d5885d8528263d8adc260bb2d28ebf1270b96e98f0e0268d32b8d9900/tomli-2.4.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f8f0fc26ec2cc2b965b7a3b87cd19c5c6b8c5e5f436b984e85f486d652285c30", size = 154704, upload-time = "2026-03-25T20:21:10.473Z" }, @@ -1730,7 +1765,7 @@ wheels = [ [[package]] name = "tomli-w" version = "1.2.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/19/75/241269d1da26b624c0d5e110e8149093c759b7a286138f4efd61a60e75fe/tomli_w-1.2.0.tar.gz", hash = "sha256:2dd14fac5a47c27be9cd4c976af5a12d87fb1f0b4512f81d69cce3b35ae25021", size = 7184, upload-time = "2025-01-15T12:07:24.262Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/c7/18/c86eb8e0202e32dd3df50d43d7ff9854f8e0603945ff398974c1d91ac1ef/tomli_w-1.2.0-py3-none-any.whl", hash = "sha256:188306098d013b691fcadc011abd66727d3c414c571bb01b1a174ba8c983cf90", size = 6675, upload-time = "2025-01-15T12:07:22.074Z" }, @@ -1739,7 +1774,7 @@ wheels = [ [[package]] name = "towncrier" version = "25.8.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "click" }, { name = "jinja2" }, @@ -1753,7 +1788,7 @@ wheels = [ [[package]] name = "tox" version = "4.52.1" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "cachetools" }, { name = "colorama" }, @@ -1776,7 +1811,7 @@ wheels = [ [[package]] name = "tox-uv" version = "1.35.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "tox-uv-bare" }, { name = "uv" }, @@ -1788,7 +1823,7 @@ wheels = [ [[package]] name = "tox-uv-bare" version = "1.35.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "packaging" }, { name = "tomli", marker = "python_full_version < '3.11'" }, @@ -1802,7 +1837,7 @@ wheels = [ [[package]] name = "typeguard" version = "4.5.1" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "typing-extensions" }, ] @@ -1814,7 +1849,7 @@ wheels = [ [[package]] name = "types-protobuf" version = "7.34.1.20260408" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/5b/b1/4521e68c2cc17703d80eb42796751345376dd4c706f84007ef5e7c707774/types_protobuf-7.34.1.20260408.tar.gz", hash = "sha256:e2c0a0430e08c75b52671a6f0035abfdcc791aad12af16274282de1b721758ab", size = 68835, upload-time = "2026-04-08T04:26:43.613Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/ef/b5/0bc9874d89c58fb0ce851e150055ce732d254dbb10b06becbc7635d0d635/types_protobuf-7.34.1.20260408-py3-none-any.whl", hash = "sha256:ebbcd4e27b145aef6a59bc0cb6c013b3528151c1ba5e7f7337aeee355d276a5e", size = 86012, upload-time = "2026-04-08T04:26:42.566Z" }, @@ -1823,7 +1858,7 @@ wheels = [ [[package]] name = "typing-extensions" version = "4.15.0" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/72/94/1a15dd82efb362ac84269196e94cf00f187f7ed21c242792a923cdb1c61f/typing_extensions-4.15.0.tar.gz", hash = "sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466", size = 109391, upload-time = "2025-08-25T13:49:26.313Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/18/67/36e9267722cc04a6b9f15c7f3441c2363321a3ea07da7ae0c0707beb2a9c/typing_extensions-4.15.0-py3-none-any.whl", hash = "sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548", size = 44614, upload-time = "2025-08-25T13:49:24.86Z" }, @@ -1832,7 +1867,7 @@ wheels = [ [[package]] name = "typing-inspection" version = "0.4.2" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "typing-extensions" }, ] @@ -1844,7 +1879,7 @@ wheels = [ [[package]] name = "urllib3" version = "2.6.3" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/c7/24/5f1b3bdffd70275f6661c76461e25f024d5a38a46f04aaca912426a2b1d3/urllib3-2.6.3.tar.gz", hash = "sha256:1b62b6884944a57dbe321509ab94fd4d3b307075e0c2eae991ac71ee15ad38ed", size = 435556, upload-time = "2026-01-07T16:24:43.925Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/39/08/aaaad47bc4e9dc8c725e68f9d04865dbcb2052843ff09c97b08904852d84/urllib3-2.6.3-py3-none-any.whl", hash = "sha256:bf272323e553dfb2e87d9bfd225ca7b0f467b919d7bbd355436d3fd37cb0acd4", size = 131584, upload-time = "2026-01-07T16:24:42.685Z" }, @@ -1853,7 +1888,7 @@ wheels = [ [[package]] name = "uv" version = "0.11.6" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } sdist = { url = "https://files.pythonhosted.org/packages/dd/f3/8aceeab67ea69805293ab290e7ca8cc1b61a064d28b8a35c76d8eba063dd/uv-0.11.6.tar.gz", hash = "sha256:e3b21b7e80024c95ff339fcd147ac6fc3dd98d3613c9d45d3a1f4fd1057f127b", size = 4073298, upload-time = "2026-04-09T12:09:01.738Z" } wheels = [ { url = "https://files.pythonhosted.org/packages/1f/fe/4b61a3d5ad9d02e8a4405026ccd43593d7044598e0fa47d892d4dafe44c9/uv-0.11.6-py3-none-linux_armv6l.whl", hash = "sha256:ada04dcf89ddea5b69d27ac9cdc5ef575a82f90a209a1392e930de504b2321d6", size = 23780079, upload-time = "2026-04-09T12:08:56.609Z" }, @@ -1879,7 +1914,7 @@ wheels = [ [[package]] name = "virtualenv" version = "21.2.1" -source = { registry = "https://pypi.org/simple/" } +source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "distlib" }, { name = "filelock" },