Skip to content

Commit d0283bc

Browse files
committed
remove uncessary changes
Change-Id: I1b9f215831c67b8bd1ccb915b806a232b5e226b1 Co-developed-by: Cursor <[email protected]>
1 parent 237311a commit d0283bc

File tree

7 files changed

+5
-14
lines changed
  • instrumentation
    • opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django
    • opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask
    • opentelemetry-instrumentation-mysqlclient/src/opentelemetry/instrumentation/mysqlclient
    • opentelemetry-instrumentation-mysql/src/opentelemetry/instrumentation/mysql
    • opentelemetry-instrumentation-psycopg2/src/opentelemetry/instrumentation/psycopg2
    • opentelemetry-instrumentation-pymysql/src/opentelemetry/instrumentation/pymysql
    • opentelemetry-instrumentation-sqlalchemy/src/opentelemetry/instrumentation/sqlalchemy

7 files changed

+5
-14
lines changed

instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,6 @@ def response_hook(span, request, response):
299299
300300
"""
301301

302-
from __future__ import annotations
303-
304302
from logging import getLogger
305303
from os import environ
306304
from typing import Collection

instrumentation/opentelemetry-instrumentation-flask/src/opentelemetry/instrumentation/flask/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,6 @@ def response_hook(span: Span, status: str, response_headers: List):
254254
---
255255
"""
256256

257-
from __future__ import annotations
258-
259257
import weakref
260258
from logging import getLogger
261259
from time import time_ns

instrumentation/opentelemetry-instrumentation-mysql/src/opentelemetry/instrumentation/mysql/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
1415
"""
1516
MySQL instrumentation supporting `mysql-connector`_, it can be enabled by
1617
using ``MySQLInstrumentor``.
@@ -148,8 +149,6 @@
148149
---
149150
"""
150151

151-
from __future__ import annotations
152-
153152
from typing import Collection
154153

155154
import mysql.connector

instrumentation/opentelemetry-instrumentation-mysqlclient/src/opentelemetry/instrumentation/mysqlclient/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
1415
"""
1516
The integration with MySQLClient supports the `MySQLClient`_ library and can be enabled
1617
by using ``MySQLClientInstrumentor``.
@@ -133,8 +134,6 @@
133134
---
134135
"""
135136

136-
from __future__ import annotations
137-
138137
from typing import Collection
139138

140139
import MySQLdb

instrumentation/opentelemetry-instrumentation-psycopg2/src/opentelemetry/instrumentation/psycopg2/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
1415
"""
1516
The integration with PostgreSQL supports the `psycopg2`_ library. It can be enabled by
1617
using ``Psycopg2Instrumentor``.
@@ -139,8 +140,6 @@
139140
---
140141
"""
141142

142-
from __future__ import annotations
143-
144143
import logging
145144
import typing
146145
from importlib.metadata import PackageNotFoundError, distribution

instrumentation/opentelemetry-instrumentation-pymysql/src/opentelemetry/instrumentation/pymysql/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
1415
"""
1516
The integration with PyMySQL supports the `PyMySQL`_ library and can be enabled
1617
by using ``PyMySQLInstrumentor``.
@@ -156,8 +157,6 @@
156157
---
157158
"""
158159

159-
from __future__ import annotations
160-
161160
from typing import Collection
162161

163162
import pymysql

instrumentation/opentelemetry-instrumentation-sqlalchemy/src/opentelemetry/instrumentation/sqlalchemy/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
1415
"""
1516
Instrument `sqlalchemy`_ to report SQL queries.
1617
@@ -132,8 +133,6 @@
132133
---
133134
"""
134135

135-
from __future__ import annotations
136-
137136
from collections.abc import Sequence
138137
from typing import Collection
139138

0 commit comments

Comments
 (0)