22 Commits

Author SHA1 Message Date
4e059b15d2 Add exclude_list for urllib/urllib3 instrumentations (#1733)
* urllib

* urllib3

* Update __init__.py

* readme

* lint
2023-03-30 19:10:23 -06:00
78874df5c2 Fix install of Python 3.10 on GitHub Actions (#1609)
* Fix install of Python 3.10 on GitHub Actions

In PR #1604 the Python version was upgraded to Python 3.10 to fix a
local issue on M1 MacBooks.

The GitHub Action workflows now exit with the following message for the
docker-tests, spellcheck and lint checks, skipping these checks.

```
lint create: /home/runner/work/opentelemetry-python-contrib/opentelemetry-python-contrib/.tox/lint
SKIPPED: InterpreterNotFound: python3.10
___________________________________ summary ____________________________________
SKIPPED:  lint: InterpreterNotFound: python3.10
  congratulations :)
```

Upgrade the Python version in the GitHub Actions workflow to fix this.

* Fix YAML interpretation of Python 3.10

* Upgrade Docker tests dependencies

Upgrade the asyncpg and psycopg2 packages, they don't work on Python
3.10.

This also fixes running these tests no M1 MacBooks.

* Fix linter issues merged into main

They went unnoticed while the CI didn't fail on the lint task not
working.

---------

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-02-03 08:37:24 +05:30
43d0c6cae3 fix the instantiation of NoOpTracerProvider (#1577) 2023-01-12 17:16:03 +00:00
d1dec9220b add a test for urllib using NoOpTracerProvider (#1560) 2023-01-10 16:23:48 +00:00
f994e14636 Fix Urllib instrumentation - Add status code to span if not None (#1430) 2022-11-05 19:59:47 +05:30
6503cdf2fe Fix HTTP instrumentation not being suppressed (#1116) 2022-06-20 13:16:51 -07:00
d55d1dc0d6 [tests] use _NoOpTracer and _NoOpTracerProvider (#860)
* [tests] use _NoOpTracer and _NoOpTracerProvider

* update
2022-01-27 15:04:23 -06:00
3137c1fa41 Upgrade black (#802) 2021-11-10 20:57:01 +00:00
ffc2a2ff4c More consistent assertion methods (#641)
* More consistent assertion methods

* Updated core SHA
2021-08-30 22:46:18 +02:00
c5c6977584 Add hooks for aiohttp, asgi, starlette, fastAPI, urllib, urllib3 (#576) 2021-07-26 14:34:50 -07:00
4be32b542b Add create context key to contrib (#502) 2021-06-11 09:50:06 -07:00
865837f757 Ensure clean http url (#538) 2021-06-11 09:01:52 -07:00
8d0c150b31 Sync with auto generated semantic convention constants (#428) 2021-04-19 23:37:10 -07:00
370952f684 Remove http.status_text from span attributes (#406) 2021-04-08 09:40:20 -07:00
ca8eac61c2 Account for ProxyTracerProvider (#399) 2021-04-07 08:27:18 -07:00
9315eb0fb2 use StatusCode from trace instead of trace.status (#366) 2021-03-09 14:33:13 -08:00
269e0f4de3 Add OpenTracing propagator (#302) 2021-02-16 15:42:13 -08:00
c265e2f035 Remove metrics from main branch (#312) 2021-02-05 16:41:03 -08:00
f0adb23143 Remove 'component' span attribute in instrumentations (#301) 2021-01-29 13:15:26 -08:00
472f845381 Upgrade isort and enable black compat mode (#248) 2021-01-05 07:23:53 -08:00
65801c31d8 Fix requests and urllib instrumentations span name callback parameters (#259) 2020-12-16 08:17:23 -08:00
187987d9cc Feature/urllib instrumentation (#222) 2020-12-15 10:11:33 -08:00