128 Commits

Author SHA1 Message Date
4bb095e961 Remove [test] package from opentelemetry-instrumentation (#2327)
Fixes #2235
2024-03-21 19:31:51 -06:00
8daa8ad481 Add instrumentation for Psycopg 3.x (#2123)
* Add instrumentation for Psycopg 3.x

* Add federicobond to component_owners.yml
2024-02-24 19:35:25 +00:00
d2d4561593 Update version to 1.24.0.dev/0.45b0.dev (#2262) 2024-02-23 10:13:21 -08:00
565d2e33f4 Remove werkzeug from Flask instrumentation dependencies (#2257)
Fixes #2256
2024-02-22 17:34:53 -06:00
b6492a7999 Feature/asyncio instrumentation (#1943)
* add asyncio instrumentation

* add asyncio instrumentation

* modify test configure

* modify test configure

* modify tox generate result

* modify tox generate result

* add python version check

* modify test code

* add CHANGELOG.md

* add docs

* modify pyproject.toml

* modify pyproject.toml

* Add comments mentioned in an issue #1919

* Add comments mentioned in an issue #1919

* add asyncio component owner

* - Add instrumentation-asyncio metric.
- Configure coroutines/to_thread func to apply trace via environment variables.
- Apply trace to future using a boolean environment variable.

* modify docs

* modify docs

* modify docs

* modify docs

* modify docs

* modify test_code

* modify test_code

* modify test_code

* modify asyncio version

* modify asyncio version

* update dependency

* modified lint results

* modified lint results

* modified lint results

* modified lint results

* modified lint results

* modified lint results

* modified lint results

* include feedback

* include feedback

* include feedback

* modify docs test results

* Update instrumentation/opentelemetry-instrumentation-asyncio/README.rst

Co-authored-by: Aaron Abbott <aaronabbott@google.com>

* Update instrumentation/opentelemetry-instrumentation-asyncio/README.rst

Co-authored-by: Aaron Abbott <aaronabbott@google.com>

* Update instrumentation/opentelemetry-instrumentation-asyncio/README.rst

Co-authored-by: Aaron Abbott <aaronabbott@google.com>

* Update instrumentation/opentelemetry-instrumentation-asyncio/README.rst

Co-authored-by: Aaron Abbott <aaronabbott@google.com>

* Update instrumentation/opentelemetry-instrumentation-asyncio/src/opentelemetry/instrumentation/asyncio/utils.py

Co-authored-by: Aaron Abbott <aaronabbott@google.com>

* Update instrumentation/opentelemetry-instrumentation-asyncio/src/opentelemetry/instrumentation/asyncio/utils.py

Co-authored-by: Aaron Abbott <aaronabbott@google.com>

* include feedback

* include feedback

* drop python 3.7 support

* drop python 3.7 support

* Removed from default_instrumentations

* Recover

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Aaron Abbott <aaronabbott@google.com>
2024-02-14 15:44:17 -06:00
6c13a5eddc Drop support for 3.7 (#2152)
* Drop support for 3.7

Fixes #2151

* Remove 37
2024-02-03 11:57:08 -06:00
c68d0fd192 Add support for confluent_kafka until 2.3.0 version; (#2132)
* Updated version of supported confluent kafka to 2.3;

* Updated CHANGELOG.md;

---------
2024-01-30 22:48:45 -06:00
3400ecea5d Remove useless shebangs (#2135)
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.
2024-01-30 22:24:33 -06:00
e88bf5f27a Update opentelemetry-instrument README (#2108)
* Update opentelemetry-instrument README

- Clarify trace versus metric documentation
- Add console exporter documentation
- Add quotes to command to support zsh
- Fix grammatical errors

* fix typo

* fix typo

* Remove note on HTTP for trace only

---------
2024-01-31 04:01:46 +00:00
c9d709a5c4 Feature/support for flask 3.0.0 (#2013)
* 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>
2024-01-16 15:45:12 -06:00
9563ee73ac Clean up use of suppress_instrumentation in context and fix httpx bug (#2061)
* 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

---------
2023-12-22 22:43:12 +00:00
772063ca8a Update version to 1.23.0.dev/0.44b0.dev (#2091)
* Update version to 1.23.0.dev/0.44b0.dev

* Update core SHA

* Update generate

---------

Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-12-15 16:54:11 -06:00
b6c11054b9 Fix Falcon dependency (#2090)
Fixes #2089
2023-12-13 20:58:54 -06:00
4bf3577fb7 Requests instrumentation http semantic convention migration (#2002) 2023-11-29 14:22:16 -08:00
5888d4ef95 Enable lint on CI and update deps (#2067)
* 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>
2023-11-21 10:25:11 +02:00
b6d77f1146 Implement Otel semantic convention stability opt-in (#1987) 2023-11-10 09:48:32 -08:00
3b9d6264e2 Update version to 1.22.0.dev/0.43b0.dev (#2031)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-11-07 11:06:08 -06:00
1305436671 Aiohttp-server Instrumentation (#1800)
Co-authored-by: Kenny Trytek <kenny.trytek@workiva.com>
Co-authored-by: Daniel Manchon <dmanchon@gmail.com>
2023-10-30 15:10:16 -06:00
7ac674430d Fix version of Flask dependency werkzeug (#1980) 2023-10-04 20:20:39 +00:00
54be1603dc Update version to 1.21.0.dev/0.42b0.dev (#1930)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-09-04 17:56:57 +00:00
a02d98cb38 Add Cassandra instrumentation (#1902) 2023-08-30 15:40:14 +00:00
cfdd4ae77f Update version to 1.20.0.dev/0.41b0.dev (#1885)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-07-13 16:42:32 +02:00
09efe708c3 Instrument mysqlclient library (#1744)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2023-07-12 21:09:26 +02:00
db90ce38a2 Distro selection (#1823) 2023-07-11 20:26:14 +00:00
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
5ac58c2ffb Add support for confluent_kafka until 2.1.1 version (#1815)
* Add support for confulent_kafka until 2.1.1 version

* Include 2.1.1 version

* update CHANGELOG.md

* run: 'tox -e generate'

* resolve comments

* update top version to 2.2.0

---------

Co-authored-by: Ran Nozik <ran@gethelios.dev>
2023-06-18 13:20:21 +00: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
a5ed4da478 Relax httpx version to allow >= 0.18.0 (#1748) 2023-06-13 13:07:28 +00:00
afd8428997 Update version to 1.19.0.dev/0.40b0.dev (#1797)
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-05-17 10:47:58 -06:00
c8b06539c0 Add support for pymemcache version > 4.0.0 (#1764) 2023-04-28 21:10:10 +05:30
e4d8f10ecd Update version to 1.18.0.dev/0.39b0.dev (#1723) 2023-03-22 22:01:45 +05:30
e5d9ac5755 fix fastapi instrumentation tests for version 0.91 (#1710) 2023-03-07 20:29:24 +05:30
4a859e34d6 Remove custom arguments in object.__new__ of BaseInstrumentor (#1439)
* Add a test case to reproduce the issue

* Fix the class initialization when parameters are provided

* Update CHANGELOG.md

* Fix linting issues

* Additional test case which inits SystemMetricsInstrumentor twice

* Updated linting following update to black style

* Moved changelog entry to unreleased section

---------

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
Co-authored-by: Leighton Chen <lechen@microsoft.com>
2023-02-28 11:19:30 -06:00
482804451a Update version to 1.17.0.dev/0.38b0.dev (#1677)
* Update version to 1.17.0.dev/0.38b0.dev

* Update SHA

---------

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-02-17 11:42:54 -06:00
5e4766ed66 Support aio_pika 9 (#1670) 2023-02-15 17:11:07 +05:30
bb41b4600a Fix fastapi version (#1664) 2023-02-13 12:17:38 +05:30
66ceef5fe1 Support aio_pika 8.x (#1481)
* Support aio_pika 8

- Fix tests for new shape of the AbstractConnection class
- Run tests against aio_pika 7 and 8

* Update CHANGELOG.md

---------

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2023-02-05 11:54:21 +05:30
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
5af3519f36 fix aiopg version (#1473) 2022-12-20 20:00:11 +05:30
0f2451be26 Update version to 1.16.0.dev/0.37b0.dev (#1485) 2022-12-10 04:03:22 +05:30
71781d3964 updating changelogs and version to 1.15.0-0.36b0 (#1482) 2022-12-10 02:33:51 +05:30
25a6535f26 Instrument newer versions (#1468) 2022-12-06 15:58:03 +00:00
b6b269064c Tortoise ORM instrumentation (#685) 2022-11-22 02:33:59 +00:00
6347ce0899 Fix httpx version (#1460)
Fixes #1459
2022-11-21 19:58:35 +01:00
af972a07a9 Create RELEASING.md, Update version to 1.15.0.dev/0.36b0.dev (#1429) 2022-11-03 13:26:58 -07:00
05e23cd280 [release/v1.14.x-0.35bx] Prepare release 1.14.0/0.35b0 (#1428) 2022-11-03 10:30:35 -07:00
5c67dee23d Change to use local dev versions (#1425) 2022-11-02 10:19:40 -07:00
38d384a2ae Add support for py3.11 (#1415) 2022-10-31 21:19:50 +00:00
83f37eddf2 Deprecate otlp_proto_grpc and otlp_proto_http in auto-instrumentation (#1250) 2022-10-27 17:45:49 +05:30
b2923e02fa updating changelogs and version to 1.13.0-0.34b0 (#1352) 2022-09-27 03:12:18 +05:30