28 Commits

Author SHA1 Message Date
da78275a55 increase delta for fastapi flaky test (#2591) 2024-06-11 10:16:18 -07:00
5b841282ab Do not use asgi name and version for tracer/meter for instrumentations using Asgi Middleware (#2580) 2024-06-06 12:52:32 -07:00
ed51ebb312 feat(asgi,fastapi,starlette)!: provide both send and receive hooks with scope and message (#2546) 2024-06-03 10:18:47 -07:00
ac97b00457 Fix typos in test names (#2558) 2024-05-28 14:31:44 -07:00
256d8ce12d Add http.server.request.size for ASGI metric implementation (#1867)
* Update changelog file.

* Update changelog file.

* Add new request.size metric for ASGI middleware.

* Clean-up.

* Refactor try except section.

---------

Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-06-21 23:56:38 +03:00
60753e2a55 Add http.server.response.size metric to ASGI implementation. (#1789)
* Add http.server.response.size metric to ASGI implementation.
Add new unit tests.

* Update changelog.

* Fix linting by disabling too-many-nested-blocks

* Put new logic in a new method

* Refactor the placement of new logic.

* Fixed the unit tests in FastAPI and Starlette

* Update changelog.

* FIx lint errors.

* Refactor getting content-length header

* Refactor getting content-length header

---------

Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-06-19 23:00:59 +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
e5d9ac5755 fix fastapi instrumentation tests for version 0.91 (#1710) 2023-03-07 20:29:24 +05:30
bc57cc029d fix(asgi-instrumentation): extract target after running the framework (#1461) 2022-12-05 02:00:09 +00:00
496d6581cc Add support for regular expression matching and sanitizing of headers in FastAPI. (#1403) 2022-11-07 22:23:08 +05:30
0b69786c30 fix flaky test in fastapi (#1344) 2022-09-21 01:29:35 +05:30
2b7a0057da uninstruemnt existing instances before uninstrumenting fastapi class (#1258) 2022-09-19 07:25:07 +00:00
56530ebdfc Metric instrumentation fastapi (#1199) 2022-09-12 20:11:58 +00:00
4c2382338d fix check of is_otel_instrumented (#1313) 2022-09-09 10:58:31 -07:00
18e056b85a Codespell ci (#1237) 2022-08-29 15:08:25 +05:30
45448f8bb2 FastAPI: capture custom request response headers in span attributes (#1032) 2022-04-11 11:10:26 -07:00
4c813c47e4 ASGI: Conditionally create SERVER spans (#843) 2022-01-07 15:12:58 -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
56da6d74df Consistent way of not instrumenting multiple times (#549) 2021-07-09 09:55:44 -07:00
7cae4d3001 Enable passing explicit urls to exclude in instrumentation in FastAPI (#486) 2021-06-14 17:17:39 -07:00
3ec77360cb Update instrumentations to use tracer_provider for creating tracer if given, otherwise use global tracer provider (#402) 2021-04-28 08:36:37 -07:00
8d0c150b31 Sync with auto generated semantic convention constants (#428) 2021-04-19 23:37:10 -07:00
2fd68a2bf9 Remove Configuration from instrumentations (#285) 2021-02-04 08:02:37 -08:00
472f845381 Upgrade isort and enable black compat mode (#248) 2021-01-05 07:23:53 -08:00
76fda25b25 Add ability to exclude some routes in fastapi and starlette (#237) 2020-12-08 10:24:32 -08:00
c05e1798b7 Rename web framework packages from "ext" to "instrumentation" (#961) 2020-10-21 21:55:34 -07:00