Commit Graph

15 Commits

Author SHA1 Message Date
Emídio Neto 7da7f554ea
HTTP semantic convention stability migration for httpx (#2631) 2024-07-03 12:43:47 -07:00
Emídio Neto 6be205e604
consistently use of suppress_instrumentation utils (#2590) 2024-06-14 09:53:28 -07:00
Rytis Bagdziunas dc711e870e
Ensure httpx non-client methods are instrumented (#2538)
* Ensure httpx non-client methods are instrumented

* Update changelog

* Added subTest to distinguish tests inside a loop

* Updated changelog

* Add a comment explaining private attribute usage

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-05-30 22:48:22 +00:00
samypr100 d06de3f9f1
regression-fix: retain httpx.URL type on request.url (#2359)
* fix: retain httpx.URL type on request.url

This fixes a regression caused in #2020 where request.url stopped being of `httpx.URL` type, causing issues with request/response hooks.

* Update CHANGELOG.md

* tests: adding assertions to verify request.url on hooks is a httpx.URL

* fixup: adjust check to consider httpx < 0.20.0

* fixup: keep code dry

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2024-03-22 17:15:51 -06:00
Denis Otkidach e5aa74ff7f
Remove URL credentials (httpx integration) (#2020)
* Remove URL credentials (httpx)

* Add CHANGELOG
2023-12-22 22:03:51 +00:00
samypr100 1b1c38d7cd
[opentelemetry-instrumentation-httpx] fix mixing of sync and non async hooks (#1920)
* fix: sync response hooks being used on httpx.AsyncClient

* docs: add changelog

* docs: improved docs a bit more

* docs: fix variable name

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-11-21 15:45:15 +02:00
Maciej Nachtygal 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
Phillip Verheyden a5ed4da478
Relax httpx version to allow >= 0.18.0 (#1748) 2023-06-13 13:07:28 +00:00
Diego Hurtado fc547877d3
Remove use of httpbin (#1854) 2023-06-13 10:30:52 +00:00
Ran Nozik 0b9e96dae0
Support newer httpx versions (#866) 2022-02-04 09:07:31 -08:00
Alex Boten d55d1dc0d6
[tests] use _NoOpTracer and _NoOpTracerProvider (#860)
* [tests] use _NoOpTracer and _NoOpTracerProvider

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

* Updated core SHA
2021-08-30 22:46:18 +02:00
Leighton Chen 9206e5dca8
Refactor httpx instrumentation (#577) 2021-07-14 10:19:38 -07:00
Joshua 9695bcfed3
Add support for HTTPX instrumentation (#461) 2021-06-08 08:28:03 -07:00