17 Commits

Author SHA1 Message Date
dadcd01524 urllib3: Add instrumentation support for version 2 (#1879)
* urllib3: Add instrumentation support for version 2

* changelog
2023-07-04 00:49:20 +03:00
743ac64661 Issue #1757 - Update HTTP server/client instrumentation span names (#1759)
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-06-16 00:21:05 +02:00
fc547877d3 Remove use of httpbin (#1854) 2023-06-13 10:30:52 +00:00
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
e23dd5c25a add a test for urllib3 using NoOpTracerProvider (#1574) 2023-01-18 15:41:46 +05:30
725944d368 Urllib3 instrumentation can now retrieve urlopen body parameter when used as positional (#1398) 2022-11-16 01:30:22 +00:00
6503cdf2fe Fix HTTP instrumentation not being suppressed (#1116) 2022-06-20 13:16:51 -07:00
8727bc3374 Correct minor typos in the codebase (#1019)
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2022-03-22 23:20:48 -06:00
3137c1fa41 Upgrade black (#802) 2021-11-10 20:57:01 +00:00
b47328e134 Urllib3 request hook (#660)
* Urllib3: extend request hook with request body and headers

* Change GET to POST in test_extended_request_hook

* added changelog entry

* update ExtendedReqeustHookT

* adding up to date generated code

* replace _RequestHookT with _ExtendedRequestHookT

* updated Changelog

Co-authored-by: Ran Nozik <ran@heliosphere.io>
2021-09-13 22:58:59 +05:30
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
1c5f0b5465 Add urllib3 instrumentation (#299) 2021-03-31 08:08:53 -07:00