Skip to content

Commit

Permalink
Remove importlib-metadata dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
ocelotl committed Sep 5, 2024
1 parent 0f35765 commit f4e17d1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ dependencies = [
"opentelemetry-semantic-conventions == 0.49b0.dev",
"opentelemetry-util-http == 0.49b0.dev",
"packaging >= 21.0",
"importlib-metadata >= 4.0",
]

[project.optional-dependencies]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def response_hook(span: Span, status: str, response_headers: List):
from typing import Collection

import flask
import importlib_metadata as metadata
from opentelemetry._util.importlib_metadata import version
from packaging import version as package_version

import opentelemetry.instrumentation.wsgi as otel_wsgi
Expand Down Expand Up @@ -288,7 +288,7 @@ def response_hook(span: Span, status: str, response_headers: List):

_excluded_urls_from_env = get_excluded_urls("FLASK")

flask_version = metadata.version("flask")
flask_version = version("flask")

if package_version.parse(flask_version) >= package_version.parse("2.2.0"):

Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,6 @@ deps =
greenlet==3.0.3
grpcio==1.62.1
idna==2.10
importlib-metadata==6.11.0
iniconfig==2.0.0
jsonschema==3.2.0
kombu==5.3.5
Expand Down

0 comments on commit f4e17d1

Please sign in to comment.