Response hook receives a third parameter, Response, and that should be reflected in the _ResponseHook type
Co-authored-by: Leighton Chen <lechen@microsoft.com>
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
* aiopg: fix runtime warnings when running tests
Fixes:
RuntimeWarning: coroutine 'MockCursor.execute' was never awaited
cursor.execute(query)
* aio-pika: no need to return an awaitable in mocked method
No need to return an awaitable since the mocked method awaits
itself.
Fixes:
RuntimeWarning: coroutine 'sleep' was never awaited
---------
Co-authored-by: Leighton Chen <lechen@microsoft.com>
* * Adding (failing) testcase to cover Issue #2029
* * move Instance variables to class variables. Since the object in question will be a singelton. This will resolve#2029 where multiple calls to the instrumentation will assign Null values.
* * black formatting
* * Changelog stub entry, PR # to follow
* * updating the pullrequest number
* * remove superfluous constructor
* * moving Change log to unreleased section
---------
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
In the test dependencies for `opentelemetry-instrumentation-falcon`,
don’t depend on `parametrized` because `pytest.mark.parametrize` is now
included in `pytest`.
These files do not have the executable bit set in their filesystem
permissions (so the shebang line, `#!`, is useless), and they are not
script-like (do not have `if __name__ == "__main__"` or interesting
side-effects), so making them executable would not make sense.
* support flask 3.0.0
* support flask 3.0.0
* support flask 3.0.0
* modify tox.ini
* modify Werkzeug version
* modify Werkzeug version
* modify flask test version
* modify flask version
* modify flask version
* modify CHANGELOG.md
* include feedback
* include feedback
* Fix lint and generate
---------
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
* Clean up use of suppress_instrumentation in context and fix httpx bug
* Clean up use of suppress_instrumentation in context and fix httpx bug
* changelog
* fix tests
* fix import
* fmt
* update dep
* lint
* remove unused imports
* apply lint
* Fix version for pika
* Fix lint
---------
* aio-pika instrumentation: Removed check for non-sampled span when inject message headers. Reason to change is that sampled flag can be propagate https://www.w3.org/TR/trace-context/#sampled-flag and be useful when trace is not sampled.
* black formting
---------
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
* 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>
* Fix black an isort
* change bootstrap_gen to use a list instead of dict
* Bunch of updates
* Fix build
* fix lint
* Fix docs
* Fix lint
* More fixes
* Fix lint
* fix stupid mistake
---------
Co-authored-by: Christian Hartung <christian.hartung@olist.com>
* Set metric descriptions per semantic conventions
* Set metric descriptions per semantic conventions
* fix spelling
---------
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
* Added support for pypy3 system metrics
Co-authored-by: Suryanarayana Peri <suryanarayana.peri@fmr.com>
Signed-off-by: Rahul Kumar <Rahul.Kumar@fmr.com>
* Change in if condition to log warn message for pypy
Co-authored-by: Suryanarayana Peri <suryanarayana.peri@fmr.com>
Signed-off-by: Rahul Kumar <Rahul.Kumar@fmr.com>
* Added logger to else block if pypy
Co-authored-by: Suryanarayana Peri <suryanarayana.peri@fmr.com>
Signed-off-by: Rahul Kumar <Rahul.Kumar@fmr.com>
* Reverting the changes
Co-authored-by: Suryanarayana Peri <suryanarayana.peri@fmr.com>
Signed-off-by: Rahul Kumar <Rahul.Kumar@fmr.com>
* Changes requested by external reviewer
Co-authored-by: Suryanarayana Peri <suryanarayana.peri@fmr.com>
Signed-off-by: Rahul Kumar <Rahul.Kumar@fmr.com>
---------
Signed-off-by: Rahul Kumar <Rahul.Kumar@fmr.com>
Co-authored-by: Suryanarayana Peri <suryanarayana.peri@fmr.com>