Commit Graph

70 Commits

Author SHA1 Message Date
Diego Hurtado 7a0caed36f
updating changelogs and version to 1.10.0-0.29b0 (#995) (#996) 2022-03-10 17:49:49 -06:00
Thiyagu55 dbb35a2946
Sqlcommenter integration into SQLAlchemy (#924)
* Integrating sqlcommenter into psycopg2

* Integrating sqlcommenter into psycopg2 - Converted public local variable into private

* Added test cases for sqlcommenter & PR Changes

* Code refactoring for generate sqlcommenter

* Added testcase for sqlcommenter integration into sqlalchemy

* updated change log

* updated to accept latest logs

* Updated lint changes

* Fixed errors due to linting

* Fixed linting errors

* Fixed linting errors

* Fixed linting errors

* Update CHANGELOG.md

* Update CHANGELOG.md

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>

Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2022-03-08 23:57:00 -06:00
Remi Rampin 7bb29bd9ab
Fix typos (#929) 2022-03-02 14:03:34 -08:00
Owais Lone c8020cbea5
updating changelogs and version to 1.9.1-0.28b1 (#887)
* updating changelogs and version to 1.9.1-0.28b1

* Update CHANGELOG.md

Co-authored-by: Nathaniel Ruiz Nowell <enruizno@uwaterloo.ca>

* Update CHANGELOG.md

Co-authored-by: Nathaniel Ruiz Nowell <enruizno@uwaterloo.ca>

Co-authored-by: Nathaniel Ruiz Nowell <enruizno@uwaterloo.ca>
2022-01-31 09:40:29 +00:00
Owais Lone f9b4d2b864
updating changelogs and version to 1.9.0-0.28b0 (#875) 2022-01-26 12:00:44 -06:00
Owais Lone 0786aa49ad
updating changelogs and version to 1.8.0-0.27b0 (#835) 2021-12-17 22:34:57 +05:30
Owais Lone a9507b3d1d
updating changelogs and version to 1.7.1-0.26b1 (#809) 2021-11-12 01:30:47 +05:30
Owais Lone e621d637e9
updating changelogs and version to 1.7.0-0.26b0 (#805) 2021-11-11 18:55:06 +00:00
Matt Oberle 10d8e26a78
Fix sqlalchemy for postgres Unix sockets (#761)
* Fix sqlalchemy for postgres unix sockets

The following bit of replaced code contained a type inconsistency:

```py
attrs[SpanAttributes.NET_PEER_PORT] = int(data.get("port"))
```

`data.get` returns `Optional[str]` but `int(None)` throws a `TypeError`.

When using postgresql via unix socket `dsn` looks something like this:

```py
'user=postgres host=/tmp/socket dbname=postgres'
```

The `parse_dsn` function returns this:

```py
{'user': 'postgres', 'dbname': 'postgres', 'host': '/tmp/socket'}
```

* Update CHANGELOG

* Conditionally set net.transport for psql tcp/unix

* Use .value properties of enums

* Improve postgresql attribute detection from cursor

* Fix formatting

Co-authored-by: Matt Oberle <mattoberle@users.noreply.github.com>
Co-authored-by: Srikanth Chekuri <srikanth.chekuri92@gmail.com>
2021-11-11 12:35:55 +00:00
Owais Lone 3137c1fa41
Upgrade black (#802) 2021-11-10 20:57:01 +00:00
Alex Boten 335a14c682
adding CI testing for python 3.10 (#742) 2021-10-26 21:43:23 +00:00
Owais Lone d158a5f3b8
Prepare release v1.6.2 and 0.25b2 (#762) 2021-10-20 00:00:28 +05:30
Leighton Chen f3dde6b628
updating changelogs and version to 1.6.1-0.25b1 (#751) 2021-10-18 13:04:04 -07:00
alrex 3ebfdb1a54
adding missing python 3.9 classifier (#741) 2021-10-14 21:52:44 +00:00
Leighton Chen 9f6c97af9f
Release/1.6.0 0.25b0 (#732) 2021-10-13 14:54:52 -07:00
Jim Myers e8af7a3339
Respect provided tracer provider when instrumenting SQLAlchemy (#728)
* respect provided tracer provider when instrumenting sqlalchemy

This change updates the SQLALchemyInstrumentor to respect the tracer
provider that is passed in through the kwargs when patching the
`create_engine` functionality provided by SQLAlchemy. Previously, it
would default to the global tracer provider.

* feedback: pass in tracer_provider directly rather than kwargs

* feedback: update changelog

* build: lint
2021-10-12 17:49:22 +00:00
Matt Oberle 2bcb6ae66b
Fix missing 'packaging' requirement (#713)
The `sqlalchemy` instrumentation uses the `packaging` library to parse
the `sqlalchemy` SemVer.

`packaging` is not part of the standard library and should be included
in the `setup.cfg` file to avoid:

```
ModuleNotFoundError: No module named 'packaging'
```

Co-authored-by: Matt Oberle <mattoberle@users.noreply.github.com>
Co-authored-by: Owais Lone <owais@users.noreply.github.com>
2021-10-06 19:56:55 +00:00
alrex 354bdc42d9
update open calls to pass encoding (#684) 2021-09-22 10:16:14 -07:00
Owais Lone d4668bcbc7
Release/1.5.0 0.24b0 (#628)
* updating changelogs and version to 1.4.0-0.24.dev0

* updating changelogs and version to 1.5.0-0.24b0

* Update CHANGELOG.md

Co-authored-by: Leighton Chen <lechen@microsoft.com>

* Update CHANGELOG.md

Co-authored-by: Leighton Chen <lechen@microsoft.com>

Co-authored-by: Leighton Chen <lechen@microsoft.com>
2021-08-26 14:54:46 +05:30
Matthew Brown c8b6de6c1c
Add support for SQLAlchemy 1.4 (#568) 2021-08-04 15:00:10 -07:00
Srikanth Chekuri a04fb0e019
Back to develop after 0.23b0 release (#606)
* Back to develop after 0.23b0 release

* Update SHA

* Update SHA

Co-authored-by: Leighton Chen <lechen@microsoft.com>
2021-07-27 11:26:43 -06:00
Diego Hurtado 4d0f57bbc5
Release/1.4.0 0.23b0 (#597) 2021-07-19 15:57:58 -07:00
alrex 753e22896a
updating dependency for api/sdk to major version (#567)
Co-authored-by: Leighton Chen <lechen@microsoft.com>
2021-07-09 10:17:18 -07:00
Joshua b2dd4b8205
Fix pyodbc cursor error in SQLA instrumentation (#469) 2021-06-07 09:11:37 -07:00
Leighton Chen 3d7cc64a97
[chore] update main after 0.22b0 release (#528) 2021-06-02 09:16:26 -07:00
Leighton Chen 36c5937770
Release for V1.3.0 and 0.22b0 (#526) 2021-06-01 18:24:03 -07:00
Owais Lone 5d1f3201af
Simplify bootstrap and generate code (#514)
- We now automatically generate bootstrap_gen.py file from the list of instrumentations present in the source tree.
- Bootstrap command now uses consumes this auto-generated list instead of keeping it's own local copy.
- We no longer uninstall packages before installing them as instrumentation package no longer specify libraries as dependencies so the edge cases are no longer there.
- We no longer try to install an incompatible version or force upgrade/downgrade an installed version. This used to leave systems in broken states which should happen no more.
2021-06-01 09:19:09 -07:00
Diego Hurtado 4a8b32b941
Fix error in license files (#521)
Fixes #520
2021-05-28 09:16:58 -07:00
Owais Lone daa72382df
Instrumentation runtime checks (#475) 2021-05-26 22:55:36 -07:00
alrex 639f257f71
[chore] bump 1.3.0.dev0 & 0.22.dev0 versions (#494) 2021-05-12 11:54:18 -07:00
alrex c49e69c0bc
prepare 0.21b0 release (#493) 2021-05-11 20:58:17 -07:00
Owais Lone cb35cc40ab
Generate instrumentation packages setup.py files (#474)
All instrumentations packages have almost exactly same setup.py files.
This commit adds a python script that generates it from a source
template. This dramatically reduces the time and effort required to
update all instrumentation setup.py files, and also reduces chances of
making manual mistakes.
2021-04-29 17:16:41 -07:00
Srikanth Chekuri 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
Leighton Chen 2ede3a5b87
[chore] Update main after 1.1.0 release (#463) 2021-04-21 08:03:20 -07:00
Srikanth Chekuri 8d0c150b31
Sync with auto generated semantic convention constants (#428) 2021-04-19 23:37:10 -07:00
Dhruv Vora 658f9ca019
Added link to examples folder in each instrumentation (#438) 2021-04-13 14:56:30 -07:00
alrex 35774f19f4
bump version to 0.20.dev0 (#396) 2021-04-05 09:17:56 -07:00
alrex 56072a25f0
preparing 1.0.0/0.19b0 release (#384) 2021-03-26 15:22:09 -07:00
Christoph Brand 36e7ad0bc8
sqlalchemy: make sqlalchemy thread safe (#315) 2021-03-25 15:13:39 -07:00
alrex ef0f74ec64
remove python 3.5 support (#374) 2021-03-18 08:15:35 -07:00
Owais Lone f436514554
Replaced Tracer.use_span() with opentelemetry.trace.use_span() (#364) 2021-03-08 09:33:49 -08:00
Leighton Chen 13e72b1906
[Chore] Update main after 0.18b0 release (#338) 2021-02-16 16:24:28 -08:00
Leighton Chen 9c1f98d250
Update main after 1.0.0rc1 release from core (#333) 2021-02-16 09:35:18 -08:00
alrex f022385e37
update references to main (#306) 2021-01-29 12:09:22 -08:00
alrex 08e82a92d7
[post-release] updating version to 0.18.dev0 (#289) 2021-01-21 09:10:30 -08:00
alrex 2a11aeeafa
[pre-release] Update changelogs, version [0.17b0] (#287) 2021-01-20 16:01:24 -08:00
Owais Lone 8c8f2785bd
SQLAlchemy: Use SQL operation and DB name as the Span name (#254)
Current instrumentation uses the entire SQL query as the operation name
which makes traces very hard to read and understand in addition to
introducing high-cardinality issues. This commit fixes the problem by
using only the SQL operation name and the DB name instead of the entire
query.
2021-01-20 08:41:19 -08:00
Owais Lone 9fea7f7a27
Ensure SQLAlchemy spans have kind set to CLIENT (#278)
SQLAlchemy spans were missing kind field and it was being set to
internal instead of client. This commit changes sqlalchemy spans to have
kind set to "client" instead.
2021-01-05 09:05:58 -08:00
alrex ae70d5abe5
Combine changelogs (#239) 2020-12-08 16:20:29 -08:00
Alex Boten bcec49cf2e update version to 0.17.dev0 2020-11-25 21:10:39 -08:00