Skip to content

Commit

Permalink
include feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
bourbonkk committed Dec 21, 2023
1 parent ef51eee commit 14932fd
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -259,10 +259,7 @@ def response_hook(span: Span, status: str, response_headers: List):
from importlib import metadata
except ImportError:
import importlib_metadata as metadata
try:
flask_version = metadata.version("flask")
except (ImportError, metadata.PackageNotFoundError):
flask_version = "unknown"
flask_version = metadata.version("flask")

from opentelemetry.instrumentation.instrumentor import BaseInstrumentor
from opentelemetry.instrumentation.propagators import (
Expand Down

0 comments on commit 14932fd

Please sign in to comment.