Tammy Baylis
1c820ea96e
SQLAlchemy instrumentor populates span after sqlcomment creation, not before ( #2937 )
2024-11-19 09:30:26 -08:00
Emídio Neto
1d6968b672
fix: teach instrument version constraint for sqlalchemy ( #2971 )
2024-11-07 15:39:16 -08:00
Tammy Baylis
1d8286c08a
Update tests to work with SQLAlchemy 2 ( #2976 )
2024-11-07 15:18:05 -08:00
OpenTelemetry Bot
226258e457
Update version to 1.29.0.dev/0.50b0.dev ( #2954 )
2024-11-05 14:22:03 -08:00
Emídio Neto
0adc58b4bf
Introducing ruff as linter and formatter (basic setup) ( #2921 )
2024-10-23 10:54:14 -07:00
Riccardo Magliocchetti
e4ece57a81
Remove pkg resources ( #2871 )
2024-10-19 06:49:08 -07:00
Anton Pirker
f8bb28928c
Update test requirements for work with Python 3.13 ( #2887 )
...
* Added deb to make cassandra tests work with python 3.13
* Bumped cffi to work with Python 3.13
* Fixed some test-requirements for Python 3.13
* Updated typing_extensions everywhere
---------
Co-authored-by: Emídio Neto <9735060+emdneto@users.noreply.github.com>
2024-09-26 08:52:02 +02:00
Emídio Neto
40c3363e9d
bump asgiref to 3.8.1 in test-requirements ( #2841 )
...
Co-authored-by: Riccardo Magliocchetti <riccardo.magliocchetti@gmail.com>
2024-09-03 13:28:53 -06:00
OpenTelemetry Bot
ee67ea8ba5
Update version to 1.28.0.dev/0.49b0.dev ( #2828 )
...
* Update version to 1.28.0.dev/0.49b0.dev
* Update core SHA
---------
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-08-28 15:20:37 -06:00
Emídio Neto
c45a6201e2
remove unecessary packages for sqlalchemy tests ( #2742 )
2024-07-26 09:51:12 -07:00
OpenTelemetry Bot
68b20f96c5
Update version to 1.27.0.dev/0.48b0.dev ( #2728 )
...
* Update version to 1.27.0.dev/0.48b0.dev
* Update SHA and fix test cases
* Update SHA
---------
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-07-24 21:18:49 -06:00
Riccardo Magliocchetti
15fd1de93f
Bump certifi and zipp ( #2689 )
...
* requirements: bump zipp to 3.19.2
To resolve a dependabot securiy report.
* requirements: bump certifi to 2024.7.4
To resolve a dependabot security report.
2024-07-10 09:24:05 -06:00
Diego Hurtado
75faaad986
Remove unnecessary dependencies ( #2663 )
...
* Remove unnecessary dependencies
Fixes #2661
* Separate runs
* Remove dev-requirements from test environment
* Try without negative if
* Remove positive if
* Remove if
* Separate benchmark-containing packages in another file
* Add missing test-requirements.txt file
2024-07-04 16:04:53 -06:00
Riccardo Magliocchetti
ab0ea0e0f9
Add support for python 3.12 ( #2572 )
2024-06-10 12:49:10 -07:00
Riccardo Magliocchetti
bc4b0493b9
requirements: bump pytest to 7.4.4 ( #2587 )
2024-06-07 08:53:22 -07:00
OpenTelemetry Bot
0db9dbe311
Update version to 1.26.0.dev/0.47b0.dev ( #2568 )
2024-05-30 18:48:51 -07:00
Riccardo Magliocchetti
a0c3211c4f
Bump black to 24.3.0 ( #2452 )
2024-04-23 08:45:48 -07:00
Nick Nicolini
5cb4dab364
Use sqlalchemy version in sqlalchemy commenter instead of opentelemetry library version ( #2404 )
...
* Use sqlalchemy version in sqlalchemy commenter instead of opentelemetry library version
The SqlAlchemy commenter is currently using the library version in the comment it emits, e.g.:
```
{
'db_driver': 'psycopg2',
'db_framework': 'sqlalchemy:0.45b0'
}
```
We should instead be using the sqlalchemy version here, as SqlCommenter did before
* Fix lint
* Fix lint
* Add CHANGELOG entry
---------
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-04-22 18:04:20 -05:00
Severin Neumann
7f4853ac79
fix: revert modifications to Apache license ( #2429 )
...
* fix: revert modifications to Apache license
See open-telemetry/community#2056 for background
* path all LICENSE files
Signed-off-by: svrnm <neumanns@cisco.com>
* Fix missing LICENSE files
---------
Signed-off-by: svrnm <neumanns@cisco.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2024-04-22 13:23:38 -05:00
OpenTelemetry Bot
24eadcf63d
Update version to 1.25.0.dev/0.46b0.dev ( #2376 )
2024-03-28 14:25:18 -07:00
Diego Hurtado
6c2e54da64
Remove [test] package from sqlalchemy instrumentation ( #2315 )
...
Fixes #2219
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2024-03-18 18:44:02 +00:00
OpenTelemetry Bot
d2d4561593
Update version to 1.24.0.dev/0.45b0.dev ( #2262 )
2024-02-23 10:13:21 -08:00
Diego Hurtado
6c13a5eddc
Drop support for 3.7 ( #2152 )
...
* Drop support for 3.7
Fixes #2151
* Remove 37
2024-02-03 11:57:08 -06:00
OpenTelemetry Bot
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
Srikanth Chekuri
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
OpenTelemetry Bot
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
Liudmila Molkova
4f6618324d
Set schema_url on all tracers and meters ( #1977 )
2023-11-06 11:39:51 -08:00
Diego Hurtado
eb6024ca31
Fix failing test cases ( #2033 )
2023-11-03 05:40:46 +00:00
OpenTelemetry Bot
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
João Thallis
fb9eb32fac
doc: fix `commenter_options` type ( #1926 )
...
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-09-03 11:23:21 +00:00
OpenTelemetry Bot
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
Tammy Baylis
79d62b3bcd
sqlalchemy wrap_create_engine now accepts sqlcommenter options ( #1873 )
...
* sqlalchemy wrap_create_engine accepts sqlcommenter options
* Changelog
* Lint
* Fix default val
* Add sqlalchemy tests
* Change a default in _instrument get
* Lint
* More lint
* Update default
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
* Update args doc
* lintttt
---------
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-06-27 13:43:35 +03:00
Rytis Bagdziunas
2e49ba1af8
Use a weak reference to sqlalchemy Engine to avoid memory leak ( #1771 )
...
* Use a weak reference to sqlalchemy Engine to avoid memory leak
Closes #1761
By using a weak reference to the `Engine` object, we can avoid the memory leak as disposed `Engines` get properly deallocated. Whenever `SQLAlchemy` is uninstrumented, we only trigger a removal for those event listeners which are listening for objects that haven't been garbage-collected yet.
* Made a mistake in resolving the weak reference
* Fixed formatting issues
* Updated changelog
* Added unit test to check that engine was garbage collected
* Do not save engine in EngineTracer to avoid memory leak
* Add an empty line to satisfy black formatter
* Fix isort complaints
* Fixed the issue when pool name is not set and =None
* Fix formatting issue
* Rebased after changes in a recent commit
* Updated PR number in changelog
---------
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-06-27 11:37:27 +03:00
OpenTelemetry Bot
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
Shalev Roda
1a1163e919
Expand sqlalchemy pool.name to follow the semantic conventions ( #1778 )
2023-05-06 23:09:52 +05:30
OpenTelemetry Bot
e4d8f10ecd
Update version to 1.18.0.dev/0.39b0.dev ( #1723 )
2023-03-22 22:01:45 +05:30
Shalev Roda
7ffbfc302e
Add metrics instrumentation sqlalchemy ( #1645 )
2023-02-26 20:21:42 +05:30
Bas Schoenmaeckers
3bcc043e9d
Add connection attributes to sqlalchemy connect span ( #1608 )
...
* Add connection attributes to sqlalchemy connect span
* Fix formatting
* Move changelog entry to unreleased section
---------
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Shalev Roda <65566801+shalevr@users.noreply.github.com>
2023-02-20 17:17:18 +00:00
OpenTelemetry Bot
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
Shalev Roda
bbe7578d17
Fix sqlalchemy uninstrument ( #1581 )
2023-01-29 09:43:06 +05:30
avzis
43d0c6cae3
fix the instantiation of NoOpTracerProvider ( #1577 )
2023-01-12 17:16:03 +00:00
avzis
346160467f
add a test using NoOpTracerProvider - sqlalchemy ( #1508 )
2023-01-01 18:33:34 +00:00
Srikanth Chekuri
0f2451be26
Update version to 1.16.0.dev/0.37b0.dev ( #1485 )
2022-12-10 04:03:22 +05:30
Srikanth Chekuri
71781d3964
updating changelogs and version to 1.15.0-0.36b0 ( #1482 )
2022-12-10 02:33:51 +05:30
avzis
cfd017e5ec
fix enable_commenter functionality ( #1440 )
2022-12-06 20:22:38 +05:30
Shalev Roda
99e0b42635
Add uninstrument test for sqlalchemy ( #1471 )
2022-12-05 22:28:10 +05:30
Dan Rogers
be4ceec08c
Strip leading comments from SQL queries when generating the span name. ( #1434 )
...
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>
2022-11-18 14:01:07 +01:00
Leighton Chen
af972a07a9
Create RELEASING.md, Update version to 1.15.0.dev/0.36b0.dev ( #1429 )
2022-11-03 13:26:58 -07:00
Leighton Chen
05e23cd280
[release/v1.14.x-0.35bx] Prepare release 1.14.0/0.35b0 ( #1428 )
2022-11-03 10:30:35 -07:00
Leighton Chen
5c67dee23d
Change to use local dev versions ( #1425 )
2022-11-02 10:19:40 -07:00