-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Alex Hall <[email protected]>
- Loading branch information
1 parent
1fb4694
commit 5f9dd90
Showing
6 changed files
with
106 additions
and
28 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
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
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,23 @@ | ||
from typing import TypedDict | ||
|
||
|
||
class CommenterOptions(TypedDict, total=False): | ||
"""The `commenter_options` parameter for `instrument_psycopg`.""" | ||
|
||
db_driver: bool | ||
"""Include the database driver name in the comment e.g. 'psycopg2'.""" | ||
|
||
dbapi_threadsafety: bool | ||
"""Include the DB-API threadsafety value in the comment.""" | ||
|
||
dbapi_level: bool | ||
"""Include the DB-API level in the comment.""" | ||
|
||
libpq_version: bool | ||
"""Include the libpq version in the comment.""" | ||
|
||
driver_paramstyle: bool | ||
"""Include the driver paramstyle in the comment e.g. 'driver_paramstyle=pyformat'""" | ||
|
||
opentelemetry_values: bool | ||
"""Enabling this flag will add traceparent values to the comment.""" |
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