Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pull upstream changes #10

Merged
merged 201 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
890e5dd
Add otelTraceSampled to instrumetation-logging (#1773)
bitnahian May 3, 2023
1a1163e
Expand sqlalchemy pool.name to follow the semantic conventions (#1778)
shalevr May 6, 2023
db46e8e
Skip requests tests for pypy3 (#1806)
shalevr May 16, 2023
afd8428
Update version to 1.19.0.dev/0.40b0.dev (#1797)
opentelemetrybot May 17, 2023
530650d
Resource detector for container properties (#1584)
sanketmehta28 May 22, 2023
42e8f8f
botocore: always use x-ray for http header injection (#1741)
tsloughter May 22, 2023
cae6ce4
Refactor CODEOWNERS file (#1804)
ocelotl May 22, 2023
a679754
Update maintainers list (#1817)
ocelotl May 23, 2023
2edcc21
skip urllib3 test on pypy3 (#1826)
shalevr Jun 9, 2023
776f9d4
Fix celery docker tests (#1841)
shalevr Jun 13, 2023
26c673e
Use HTTP mock server for aiohttp tests (#1849)
ocelotl Jun 13, 2023
bcf770d
Use HTTP mock server for tornado tests (#1855)
ocelotl Jun 13, 2023
fc54787
Remove use of httpbin (#1854)
ocelotl Jun 13, 2023
4637912
Use `request_ctx` to determine whether or not `_teardown_request` sho…
matthewgrossman Jun 13, 2023
818ef43
remove srikanthccv from maintainers (#1792)
srikanthccv Jun 13, 2023
37d85f0
Sanitize redis db_statement by default (#1776)
nemoshlag Jun 13, 2023
a5ed4da
Relax httpx version to allow >= 0.18.0 (#1748)
phillipuniverse Jun 13, 2023
743ac64
Issue #1757 - Update HTTP server/client instrumentation span names (#…
macieyng Jun 15, 2023
f9f7b01
Fix falcon usage of Span Status (#1840)
FilipNikolovski Jun 16, 2023
7292bee
Request Flask attributes passed to Sampler (#1784)
tammy-baylis-swi Jun 16, 2023
a3a0b24
Fixed urllib3 instrumentation example in instrumentation documentatio…
yashaswi2000 Jun 16, 2023
7804083
Fix Invalid type NoneType for attribute X error | AWS-Lambda instrume…
imanshafiei540 Jun 16, 2023
1dd17ed
Add metrics instrumentation celery (#1679)
Akochavi Jun 18, 2023
5ac58c2
Add support for confluent_kafka until 2.1.1 version (#1815)
davidgonor1408 Jun 18, 2023
8cc10a0
fix redis doc (#1808)
pmcollins Jun 18, 2023
60753e2
Add http.server.response.size metric to ASGI implementation. (#1789)
imanshafiei540 Jun 19, 2023
fe94057
fix: Update falcon instrumentation to follow semantic conventions (#1…
Nek0trkstr Jun 20, 2023
ffc9334
Bump requests from 2.28.1 to 2.31.0 (#1818)
dependabot[bot] Jun 20, 2023
32ae65e
fix(grpc): Allow gRPC connections via Unix socket (#1833)
mattoberle Jun 21, 2023
256d8ce
Add http.server.request.size for ASGI metric implementation (#1867)
imanshafiei540 Jun 21, 2023
c9004bd
Fix elastic-search sanitization for bulk queries (#1870)
nemoshlag Jun 25, 2023
e70437a
Add conditional elastic_transport import (#1810)
tammy-baylis-swi Jun 25, 2023
cd6b024
Fix async redis clients tracing (#1830)
Vivanov98 Jun 25, 2023
a45c9c3
Update maintainers list (#1874)
shalevr Jun 26, 2023
2e49ba1
Use a weak reference to sqlalchemy Engine to avoid memory leak (#1771)
rbagd Jun 27, 2023
79d62b3
sqlalchemy wrap_create_engine now accepts sqlcommenter options (#1873)
tammy-baylis-swi Jun 27, 2023
a1f6044
Add statement of maintainership (#1859)
ocelotl Jun 28, 2023
dadcd01
urllib3: Add instrumentation support for version 2 (#1879)
mariojonke Jul 3, 2023
db90ce3
Distro selection (#1823)
jeremydvoss Jul 11, 2023
acfe932
fix(django): avoid empty span name on empty path (#1788)
muncus Jul 12, 2023
09efe70
Instrument mysqlclient library (#1744)
Fenkiou Jul 12, 2023
cfdd4ae
Update version to 1.20.0.dev/0.41b0.dev (#1885)
opentelemetrybot Jul 13, 2023
74fcbf4
Fix pyyaml version (#1892)
ocelotl Jul 18, 2023
7603a1f
update awslambda to use _X_AMZN_TRACE_ID as a Span Link (#1657)
tsloughter Jul 18, 2023
1beab82
Fix UnboundLocalError local variable 'start' referenced before assign…
thomasleveil Aug 7, 2023
6007e0c
Merge pull request from GHSA-5rv5-6h4r-h22v
programmer04 Aug 15, 2023
9cd9de7
Fix errors introduced in regression (#1913)
lzchen Aug 16, 2023
9627f74
Azure resource detectors (#1901)
jeremydvoss Aug 17, 2023
0871dd4
Revert "update awslambda to use _X_AMZN_TRACE_ID as a Span Link" (#1911)
rapphil Aug 21, 2023
d854c52
feat(confluent-kafka): Add instrumentation to consume method (#1786)
javferrod Aug 30, 2023
a02d98c
Add Cassandra instrumentation (#1902)
mattcontinisio Aug 30, 2023
6f3aead
Unwrap Celery's `ExceptionInfo` (#1863)
unflxw Sep 3, 2023
fb9eb32
doc: fix `commenter_options` type (#1926)
joaothallis Sep 3, 2023
54be160
Update version to 1.21.0.dev/0.42b0.dev (#1930)
opentelemetrybot Sep 4, 2023
4abb0e3
Modify eachdist and build script for container packages (#1949)
lzchen Sep 12, 2023
e318c94
Update pyproject.toml (#1950)
lzchen Sep 12, 2023
7ac6744
Fix version of Flask dependency werkzeug (#1980)
ocelotl Oct 4, 2023
bb42e04
Feature/add new process metrics (#1948)
bourbonkk Oct 9, 2023
3478831
Using new cloud resource id attribute (#1976)
jeremydvoss Oct 9, 2023
1305436
Aiohttp-server Instrumentation (#1800)
decko Oct 30, 2023
657d502
Specify the topic arn as the span attribute messaging.destination.nam…
yumarg Nov 1, 2023
98923dc
Add -ra option to pytest runs (#2035)
ocelotl Nov 3, 2023
eb6024c
Fix failing test cases (#2033)
ocelotl Nov 3, 2023
4f66183
Set schema_url on all tracers and meters (#1977)
lmolkova Nov 6, 2023
3b9d626
Update version to 1.22.0.dev/0.43b0.dev (#2031)
opentelemetrybot Nov 7, 2023
46fc3ce
Exclude background task execution from root server span in ASGI middl…
siminn-arnorgj Nov 8, 2023
c2f3894
Fix contrib build (#2054)
lzchen Nov 9, 2023
1e1162c
Fix error in build for README in Cassandra instrumentation (#2045)
lzchen Nov 9, 2023
7166de6
Copy change log updates from release/v1.21.x-0.42bx (#2049)
opentelemetrybot Nov 10, 2023
b6d77f1
Implement Otel semantic convention stability opt-in (#1987)
lzchen Nov 10, 2023
6f6c28d
Added support for pypy3 system metrics (#2062)
rahulhacker Nov 16, 2023
f347716
Don't collect system.network.connections due to limitation in psutil …
adriangb Nov 17, 2023
9afaf26
urllib/urllib3 - set metric descriptions per semantic conventions (#1…
puckpuck Nov 19, 2023
5888d4e
Enable lint on CI and update deps (#2067)
srikanthccv Nov 21, 2023
773e431
Add a note about system dependencies for instrumentation pkgs (#2068)
srikanthccv Nov 21, 2023
1b1c38d
[opentelemetry-instrumentation-httpx] fix mixing of sync and non asyn…
samypr100 Nov 21, 2023
b29682b
aio-pika instrumentation: Removed check for non-sampled span when inj…
nesb1 Nov 27, 2023
4336dc7
Fix arity of context.abort for AIO RPCs (#2066)
cookiefission Nov 28, 2023
4bf3577
Requests instrumentation http semantic convention migration (#2002)
lzchen Nov 29, 2023
b6c1105
Fix Falcon dependency (#2090)
ocelotl Dec 14, 2023
772063c
Update version to 1.23.0.dev/0.44b0.dev (#2091)
opentelemetrybot Dec 15, 2023
d7cc194
`FlaskInstrumentation` doesn't exist (#2070)
jean Dec 22, 2023
e5aa74f
Remove URL credentials (httpx integration) (#2020)
ods Dec 22, 2023
9563ee7
Clean up use of suppress_instrumentation in context and fix httpx bug…
adriangb Dec 22, 2023
7c12ad9
Fix dependency for azure resource detector (#2072)
jeremydvoss Dec 22, 2023
14d7779
Update README.rst (#2060)
kennykguo Jan 5, 2024
588d5d7
Add 10 second timeout to VM Resource Detector (#2119)
jeremydvoss Jan 9, 2024
c2691e0
Update version.py for release (#2120)
lzchen Jan 10, 2024
42faa1a
Separate jobs per instrumentation (#2121)
ocelotl Jan 11, 2024
c9d709a
Feature/support for flask 3.0.0 (#2013)
bourbonkk Jan 16, 2024
f2c536e
Fix tox factor matching (#2129)
ocelotl Jan 17, 2024
743c2fe
Update azure resource detector timeout to 4 seconds (#2136)
jeremydvoss Jan 24, 2024
a93bd74
Increment resource detector version (#2137)
jeremydvoss Jan 25, 2024
4b1a9c7
feat: configure header extraction for ASGI middleware via constructor…
adriangb Jan 31, 2024
e88bf5f
Update opentelemetry-instrument README (#2108)
flands Jan 31, 2024
3400ece
Remove useless shebangs (#2135)
musicinmybrain Jan 31, 2024
c68d0fd
Add support for confluent_kafka until 2.3.0 version; (#2132)
sofiia-tesliuk Jan 31, 2024
6c13a5e
Drop support for 3.7 (#2152)
ocelotl Feb 3, 2024
13ce910
Fix link to OpenTelemetry kafka-python Instrumentation (#2147)
brunobastosg Feb 4, 2024
47caeab
Stop multiple calls to AsyncPGInstrumentor.__init__ from clobbering i…
marcuslimdw Feb 5, 2024
8fd2105
Update core SHA (#2163)
ocelotl Feb 10, 2024
d167ef7
Fix celery and urllib tests (#2170)
ocelotl Feb 12, 2024
03fcc17
Remove references to 3.7 (#2172)
ocelotl Feb 13, 2024
1a984d3
Upgrade tox (#2118)
iurisilvio Feb 14, 2024
02e38ed
Fix azure vm resource detector tests/Suppress instrumentation for url…
lzchen Feb 14, 2024
b6492a7
Feature/asyncio instrumentation (#1943)
bourbonkk Feb 14, 2024
2518a4a
Drop obsolete parameterized test dependency (#2134)
musicinmybrain Feb 15, 2024
efb327d
AwsLambdaInstrumentor handles and re-raises handler function exceptio…
tammy-baylis-swi Feb 22, 2024
565d2e3
Remove werkzeug from Flask instrumentation dependencies (#2257)
ocelotl Feb 22, 2024
343d137
Skipping certain folders in release script (#2258)
lzchen Feb 23, 2024
d2d4561
Update version to 1.24.0.dev/0.45b0.dev (#2262)
opentelemetrybot Feb 23, 2024
adfb1c7
Copy change log updates from release/v1.23.x-0.44bx (#2265)
opentelemetrybot Feb 23, 2024
1c21715
Fix various release scripts aspects (#2267)
lzchen Feb 23, 2024
8daa8ad
Add instrumentation for Psycopg 3.x (#2123)
federicobond Feb 24, 2024
46a8c59
Refactor use of changedir in tox.ini (#2332)
ocelotl Mar 4, 2024
2e74619
Align gRPC server span status codes to OTEL specs (#2019)
FilipNikolovski Mar 7, 2024
565e78d
Fix OpenTelemetry Aio-pika instrumentation link (#2259)
emanuelef Mar 7, 2024
cb5a07c
Update README.rst (#2111)
awhlam Mar 13, 2024
1e0b11f
Fix docker test dependencies (#2345)
ocelotl Mar 13, 2024
aa8ae2e
Celery duplicated instrumentation (#2342)
reiktar Mar 14, 2024
af1528d
chore: fix md based on rules and fix bad links (#2240)
Rodrigo-Novas Mar 14, 2024
9b3d0b4
Use set -e to catch errors in all scripts (#2347)
johnbley Mar 14, 2024
3273d8c
Fix asyncio related warnings in tests (#2335)
xrmx Mar 14, 2024
717d107
feat: add importlib metadata default on flask module (#2302)
Rodrigo-Novas Mar 14, 2024
5b4e5d8
Remove [test] package from opentelemetry-contrib-instrumentations (#2…
ocelotl Mar 14, 2024
c54a9d1
Remove [test] package from aiopg instrumentation (#2243)
ocelotl Mar 14, 2024
2417c09
Remove [test] package from aio-pika instrumentation (#2244)
ocelotl Mar 15, 2024
1bf9f42
Remove [test] package from asgi instrumentation (#2247)
ocelotl Mar 15, 2024
5552db2
Remove [test] package from asyncio instrumentation (#2248)
ocelotl Mar 15, 2024
d948f21
Remove [test] package from flask instrumentation (#2127)
ocelotl Mar 15, 2024
5f68e97
Remove [test] package for django instrumentation (#2311)
ocelotl Mar 15, 2024
ce2de1f
Remove [test] package from falcon instrumentation (#2313)
ocelotl Mar 15, 2024
ba05c2c
Remove [test] package from wsgi instrumentation (#2283)
ocelotl Mar 15, 2024
e56cdc8
Remove [test] package from pyramid instrumentation (#2273)
ocelotl Mar 15, 2024
e923938
Remove [test] package from starlette instrumentation (#2278)
ocelotl Mar 15, 2024
fd6b8f1
Fix response hook (#2038)
ethervoid Mar 15, 2024
7404e69
Remove [test] package from fastapi instrumentation (#2289)
ocelotl Mar 15, 2024
8d43618
Remove [test] package from tornado instrumentation (#2280)
ocelotl Mar 15, 2024
17de1d5
Remove [test] package from aiohttp-client instrumentation (#2238)
ocelotl Mar 15, 2024
28f49a5
Remove [test] package from aiohttp-server instrumentation (#2242)
ocelotl Mar 15, 2024
d1c3cb3
Remove [test] package from httpx instrumentation (#2314)
ocelotl Mar 15, 2024
fbda226
Remove [test] package from requests instrumentation (#2276)
ocelotl Mar 15, 2024
7482025
Remove [test] package from urllib instrumentation (#2282)
ocelotl Mar 15, 2024
e30dd1a
Remove [test] package from urllib3 instrumentation (#2316)
ocelotl Mar 15, 2024
0b5e3b4
Remove [test] package from pymemcache instrumentation (#2310)
ocelotl Mar 15, 2024
8f02162
Remove [test] package from elasticsearch configuration (#2312)
ocelotl Mar 15, 2024
223c79c
Remove [test] package from mysqlclient instrumentation (#2295)
ocelotl Mar 16, 2024
617cae9
Feature/convention http server duration (#2326)
Rodrigo-Novas Mar 18, 2024
6c2e54d
Remove [test] package from sqlalchemy instrumentation (#2315)
ocelotl Mar 18, 2024
1782e96
Remove [test] package from dbapi instrumentation (#2288)
ocelotl Mar 18, 2024
9bb73fc
Remove [test] package from logging instrumentation (#2293)
ocelotl Mar 18, 2024
dcffb58
Remove [test] package from asyncpg instrumentation (#2249)
ocelotl Mar 18, 2024
c9832ba
instrumentation/django: fix test_trace_parent (#2338)
xrmx Mar 19, 2024
1b68fdc
Psycopg3 sync and async instrumentation (#2146)
reiktar Mar 19, 2024
78424fa
Skip celery test case if running in PyPy (#2349)
ocelotl Mar 19, 2024
11812b1
Remove [test] package from aws-lambda instrumentation (#2250)
ocelotl Mar 19, 2024
5e1e866
Remove [test] package from cassandra instrumentation (#2285)
ocelotl Mar 20, 2024
ef71250
Remove [test] package from botocore instrumentation (#2284)
ocelotl Mar 20, 2024
a8e57bf
Remove [test] package from celery instrumentation (#2286)
ocelotl Mar 20, 2024
51c78bf
Remove [test] package from grpc instrumentation (#2290)
ocelotl Mar 20, 2024
70d9b3d
Remove [test] package from jinja2 instrumentation (#2291)
ocelotl Mar 20, 2024
ab97e07
Remove [test] package from kafka-python instrumentation (#2292)
ocelotl Mar 20, 2024
801dced
Remove [test] package from boto instrumentation (#2251)
ocelotl Mar 20, 2024
fc864fe
Remove [test] package from mysql instrumentation (#2294)
ocelotl Mar 20, 2024
ca8daea
Remove [test] package from psycopg2 instrumentation (#2307)
ocelotl Mar 20, 2024
b84d779
Remove [test] package from pymongo instrumentation (#2269)
ocelotl Mar 21, 2024
5207a78
avoid losing repeated HTTP headers (#2266)
samuelcolvin Mar 21, 2024
74f5821
Remove [test] package from redis instrumentation (#2274)
ocelotl Mar 21, 2024
e7df01a
Remove [test] package from remoulade instrumentation (#2275)
ocelotl Mar 21, 2024
847e8fa
Remove [test] package from sklearn instrumentation (#2303)
ocelotl Mar 21, 2024
a892b0b
Remove [test] package from psycopg instrumentation (#2309)
ocelotl Mar 21, 2024
4107d39
Remove [test] package from resource-detector-container (#2319)
ocelotl Mar 21, 2024
bbcd5ee
Remove [test] package from opentelemetry-resource-detector-azure (#2317)
ocelotl Mar 21, 2024
1f3bcd6
Remove [test] package from propagator-aws-xray (#2320)
ocelotl Mar 21, 2024
dc62f8d
Remove [test] package from propagator-ot-trace (#2321)
ocelotl Mar 21, 2024
69fbfd6
Remove [test] package from exporter-richconsole (#2322)
ocelotl Mar 21, 2024
bc73428
Remove [test] package from exporter-prometheus-remote-write (#2323)
ocelotl Mar 22, 2024
24c1cca
Remove [test] package from sdk-extension-aws (#2324)
ocelotl Mar 22, 2024
4bb095e
Remove [test] package from opentelemetry-instrumentation (#2327)
ocelotl Mar 22, 2024
35cb8c5
Remove [test] package from distro (#2325)
ocelotl Mar 22, 2024
9cf995c
Remove [test] package from sqlite3 instrumentation (#2277)
ocelotl Mar 22, 2024
0e66ef6
Remove [test] package from system-metrics instrumentation (#2279)
ocelotl Mar 22, 2024
c8889d7
Remove [test] package from tortoiseorm instrumentation (#2281)
ocelotl Mar 22, 2024
4360b5f
Remove [test] package from confluent-kafka instrumentation (#2287)
ocelotl Mar 22, 2024
26479c8
Remove [test] package from pymysql instrumentation (#2272)
ocelotl Mar 22, 2024
86a552e
Remove [test] package from boto3sqs instrumentation (#2252)
ocelotl Mar 22, 2024
96655ce
Remove [test] package from _template (#2329)
ocelotl Mar 22, 2024
ada2784
Remove [test] package from pika instrumentation (#2306)
ocelotl Mar 22, 2024
ca082a7
elasticsearch: don't set body as db statement for bulk requests (#2355)
xrmx Mar 22, 2024
d06de3f
regression-fix: retain httpx.URL type on request.url (#2359)
samypr100 Mar 22, 2024
37aba92
Add cloud.account.id attribute by AwsLambdaInstrumentor (#2367)
tammy-baylis-swi Mar 22, 2024
24eadcf
Update version to 1.25.0.dev/0.46b0.dev (#2376)
opentelemetrybot Mar 28, 2024
955b483
Remove context manager check (#2391)
lzchen Apr 3, 2024
805c72c
rename `type` to `asgi.event.type` in ASGI instrumentation (#2300)
samuelcolvin Apr 4, 2024
85ca0a6
Change meta data service timeout to 200ms (#2387)
lzchen Apr 5, 2024
fdcbbdd
Azure resource detector 0.1.4 (#2394)
jeremydvoss Apr 5, 2024
fdb2e14
Update contrib repo approvers list (#2395)
lzchen Apr 9, 2024
804a909
Add AWS resource detector entry points (#2382)
abstractOwl Apr 10, 2024
a5c4887
feat: add opentelemetry-instrumentation-threading library (#2253)
changemyminds Apr 11, 2024
1f491a6
Merge branch 'main' of github.com:open-telemetry/opentelemetry-python…
povilasv Apr 15, 2024
cc65089
feat: update otel dependencies
povilasv Apr 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 123 additions & 0 deletions .github/workflows/instrumentations_0.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
name: Contrib Repo Tests

on:
push:
branches-ignore:
- 'release/*'
pull_request:
env:
CORE_REPO_SHA: 955c92e91b5cd4bcfb43c39efcef086b040471d2

jobs:
instrumentations-0:
env:
# We use these variables to convert between tox and GHA version literals
py38: 3.8
py39: 3.9
py310: "3.10"
py311: "3.11"
pypy3: pypy-3.8
RUN_MATRIX_COMBINATION: ${{ matrix.python-version }}-${{ matrix.package }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
matrix:
python-version: [py38, py39, py310, py311, pypy3]
package:
# Do not add more instrumentations here, add them in instrumentations_1.yml.
# The reason for this separation of instrumentations into more than one YAML file is
# the limit of jobs that can be run from a Github actions matrix:
# https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs
# "A matrix will generate a maximum of 256 jobs per workflow run. This limit applies
# to both GitHub-hosted and self-hosted runners."
- "aiohttp-client"
- "aiohttp-server"
- "aiopg"
- "aio-pika"
- "asgi"
- "asyncpg"
- "aws-lambda"
- "boto"
- "boto3sqs"
- "botocore"
- "cassandra"
- "celery"
- "confluent-kafka"
- "dbapi"
- "django"
- "elasticsearch"
- "falcon"
- "fastapi"
- "flask"
- "grpc"
- "httpx"
- "jinja2"
- "kafka-python"
- "logging"
- "mysql"
- "mysqlclient"
- "sio-pika"
- "psycopg2"
- "pymemcache"
- "pymongo"
- "pymysql"
- "pyramid"
- "redis"
- "remoulade"
- "requests"
- "sklearn"
- "sqlalchemy"
- "sqlite3"
- "starlette"
- "system-metrics"
- "tornado"
- "tortoiseorm"
os: [ubuntu-20.04]
exclude:
- python-version: py39
package: "sklearn"
- python-version: py310
package: "sklearn"
- python-version: py311
package: "sklearn"
- python-version: pypy3
package: "aiopg"
- python-version: pypy3
package: "asyncpg"
- python-version: pypy3
package: "boto"
- python-version: pypy3
package: "boto3sqs"
- python-version: pypy3
package: "botocore"
- python-version: pypy3
package: "psycopg2"
- python-version: pypy3
package: "remoulade"
- python-version: pypy3
package: "requests"
- python-version: pypy3
package: "sklearn"
- python-version: pypy3
package: "confluent-kafka"
- python-version: pypy3
package: "grpc"
steps:
- name: Checkout Contrib Repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v2
- name: Set up Python ${{ env[matrix.python-version] }}
uses: actions/setup-python@v4
with:
python-version: ${{ env[matrix.python-version] }}
- name: Install tox
run: pip install tox
- name: Cache tox environment
# Preserves .tox directory between runs for faster installs
uses: actions/cache@v1
with:
path: |
.tox
~/.cache/pip
key: v7-build-tox-cache-${{ env.RUN_MATRIX_COMBINATION }}-${{ hashFiles('tox.ini', 'gen-requirements.txt', 'dev-requirements.txt') }}
- name: run tox
run: tox -f ${{ matrix.python-version }}-${{ matrix.package }} -- -ra --benchmark-json=${{ env.RUN_MATRIX_COMBINATION }}-benchmark.json
62 changes: 62 additions & 0 deletions .github/workflows/instrumentations_1.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Contrib Repo Tests

on:
push:
branches-ignore:
- 'release/*'
pull_request:
env:
CORE_REPO_SHA: 955c92e91b5cd4bcfb43c39efcef086b040471d2

jobs:
instrumentations-1:
env:
# We use these variables to convert between tox and GHA version literals
py38: 3.8
py39: 3.9
py310: "3.10"
py311: "3.11"
pypy3: pypy-3.8
RUN_MATRIX_COMBINATION: ${{ matrix.python-version }}-${{ matrix.package }}-${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails
matrix:
python-version: [py38, py39, py310, py311, pypy3]
package:
- "urllib"
- "urllib3"
- "wsgi"
- "distro"
- "richconsole"
- "psycopg"
- "prometheus-remote-write"
- "sdk-extension-aws"
- "propagator-aws-xray"
- "propagator-ot-trace"
- "resource-detector-container"
os: [ubuntu-20.04]
exclude:
- python-version: py311
package: "prometheus-remote-write"
- python-version: pypy3
package: "prometheus-remote-write"
steps:
- name: Checkout Contrib Repo @ SHA - ${{ github.sha }}
uses: actions/checkout@v2
- name: Set up Python ${{ env[matrix.python-version] }}
uses: actions/setup-python@v4
with:
python-version: ${{ env[matrix.python-version] }}
- name: Install tox
run: pip install tox
- name: Cache tox environment
# Preserves .tox directory between runs for faster installs
uses: actions/cache@v1
with:
path: |
.tox
~/.cache/pip
key: v7-build-tox-cache-${{ env.RUN_MATRIX_COMBINATION }}-${{ hashFiles('tox.ini', 'gen-requirements.txt', 'dev-requirements.txt') }}
- name: run tox
run: tox -f ${{ matrix.python-version }}-${{ matrix.package }} -- -ra --benchmark-json=${{ env.RUN_MATRIX_COMBINATION }}-benchmark.json
2 changes: 1 addition & 1 deletion .github/workflows/prepare-patch-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
with:
python-version: 3.9
- name: Install tox
run: pip install tox==3.27.1
run: pip install tox
- name: run tox
run: tox -e generate

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/prepare-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
with:
python-version: 3.9
- name: Install tox
run: pip install tox==3.27.1
run: pip install tox
- name: run tox
run: tox -e generate

Expand Down Expand Up @@ -165,7 +165,7 @@ jobs:
with:
python-version: 3.9
- name: Install tox
run: pip install tox==3.27.1
run: pip install tox
- name: run tox
run: tox -e generate

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,6 @@ jobs:

echo "PRIOR_VERSION_WHEN_PATCH=$prior_version_when_patch" >> $GITHUB_ENV

# check out main branch to verify there won't be problems with merging the change log
# at the end of this workflow
- uses: actions/checkout@v3
with:
ref: main

- run: |
if [[ -z $PRIOR_VERSION_WHEN_PATCH ]]; then
# not making a patch release
Expand All @@ -60,13 +54,19 @@ jobs:
fi
fi

# check out main branch to verify there won't be problems with merging the change log
# at the end of this workflow
- uses: actions/checkout@v3
with:
ref: main

# back to the release branch
- uses: actions/checkout@v3

# next few steps publish to pypi
- uses: actions/setup-python@v1
with:
python-version: '3.7'
python-version: '3.8'

- name: Build wheels
run: ./scripts/build.sh
Expand Down Expand Up @@ -202,4 +202,4 @@ jobs:
gh pr create --title "$message" \
--body "$body" \
--head $branch \
--base main
--base main
14 changes: 4 additions & 10 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# A comma-separated list of package or module names from where C extensions may
# be loaded. Extensions are loading into the active Python interpreter and may
# run arbitrary code.
extension-pkg-whitelist=
extension-pkg-whitelist=cassandra

# Add list of files or directories to be excluded. They should be base names, not
# paths.
Expand All @@ -29,7 +29,7 @@ limit-inference-results=100

# List of plugins (as comma separated values of python modules names) to load,
# usually to register additional checkers.
load-plugins=
load-plugins=pylint.extensions.no_self_use

# Pickle collected data for later comparisons.
persistent=yes
Expand Down Expand Up @@ -69,7 +69,6 @@ disable=missing-docstring,
duplicate-code,
ungrouped-imports, # Leave this up to isort
wrong-import-order, # Leave this up to isort
bad-continuation, # Leave this up to black
line-too-long, # Leave this up to black
exec-used,
super-with-arguments, # temp-pylint-upgrade
Expand All @@ -81,6 +80,8 @@ disable=missing-docstring,
invalid-overridden-method, # temp-pylint-upgrade
missing-module-docstring, # temp-pylint-upgrade
import-error, # needed as a workaround as reported here: https://github.com/open-telemetry/opentelemetry-python-contrib/issues/290
cyclic-import,
not-context-manager

# Enable the message, report, category or checker with the given id(s). You can
# either give multiple identifier separated by comma (,) or put this option
Expand Down Expand Up @@ -268,13 +269,6 @@ max-line-length=79
# Maximum number of lines in a module.
max-module-lines=1000

# List of optional constructs for which whitespace checking is disabled. `dict-
# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}.
# `trailing-comma` allows a space between comma and closing bracket: (a, ).
# `empty-line` allows space-only lines.
no-space-check=trailing-comma,
dict-separator

# Allow the body of a class to be on the same line as the declaration if body
# contains single statement.
single-line-class-stmt=no
Expand Down
Loading
Loading