This repository was archived by the owner on Oct 16, 2024. It is now read-only.
forked from DataDog/dd-trace-py
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dbapi): support Connection context management usage (DataDog#1762)
* fix(psycopg2): add test for connection used with contextmanager * dbapi: handle Connection __enter__ * psycopg2 < 2.5 connection doesn't support context management * add dbapi to wordlist * add tests for mysqldb * add dbapi tests * Update ddtrace/contrib/dbapi/__init__.py Co-authored-by: Julien Danjou <julien@danjou.info> * add some doc strings * add test cases for other dbapi libraries * add test for no context manager * update comment Co-authored-by: Kyle Verhoog <kyle.verhoog@datadoghq.com> Co-authored-by: Julien Danjou <julien@danjou.info> Co-authored-by: Kyle Verhoog <kyle@verhoog.ca>
- Loading branch information
1 parent
f46e443
commit c963c6f
Showing
9 changed files
with
695 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
CPython | ||
INfo | ||
MySQL | ||
OpenTracing | ||
aiobotocore | ||
aiohttp | ||
aiopg | ||
algolia | ||
algoliasearch | ||
analytics | ||
api | ||
app | ||
asgi | ||
autodetected | ||
autopatching | ||
backend | ||
bikeshedding | ||
boto | ||
botocore | ||
config | ||
coroutine | ||
coroutines | ||
datadog | ||
datadoghq | ||
datastore | ||
dbapi | ||
ddtrace | ||
django | ||
dogstatsd | ||
elasticsearch | ||
enqueue | ||
entrypoint | ||
entrypoints | ||
gRPC | ||
gevent | ||
greenlet | ||
greenlets | ||
grpc | ||
hostname | ||
http | ||
httplib | ||
https | ||
iPython | ||
integration | ||
integrations | ||
jinja | ||
kombu | ||
kubernetes | ||
kwarg | ||
lifecycle | ||
mako | ||
memcached | ||
metadata | ||
microservices | ||
middleware | ||
mongoengine | ||
mysql | ||
mysqlclient | ||
mysqldb | ||
namespace | ||
opentracer | ||
opentracing | ||
plugin | ||
posix | ||
postgres | ||
prepended | ||
profiler | ||
psycopg | ||
py | ||
pylibmc | ||
pymemcache | ||
pymongo | ||
pymysql | ||
pynamodb | ||
pyodbc | ||
quickstart | ||
redis | ||
rediscluster | ||
renderers | ||
repo | ||
runnable | ||
runtime | ||
sanic | ||
sqlalchemy | ||
sqlite | ||
starlette | ||
stringable | ||
subdomains | ||
submodules | ||
timestamp | ||
tweens | ||
uWSGI | ||
unix | ||
unregister | ||
url | ||
urls | ||
username | ||
uvicorn | ||
vertica | ||
whitelist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
--- | ||
fixes: | ||
- | | ||
dbapi: add support for connection context manager usage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.