File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 33from typing import Text
44
55from flask import Flask
6- from flask_opentracing import FlaskTracing
76
87from pyms .config import get_conf
98from pyms .config .conf import validate_conf
109from pyms .constants import LOGGER_NAME , CONFIG_BASE
1110from pyms .flask .healthcheck import healthcheck_blueprint
1211from pyms .flask .services .driver import ServicesManager
1312from pyms .logger import CustomJsonFormatter
14- from pyms .utils import check_package_exists
13+ from pyms .utils import check_package_exists , import_from
1514
1615logger = logging .getLogger (LOGGER_NAME )
1716
@@ -145,6 +144,7 @@ def init_tracer(self) -> None:
145144 :return: None
146145 """
147146 if self ._exists_service ("tracer" ):
147+ FlaskTracing = import_from ("flask_opentracing" , "FlaskTracing" )
148148 client = self .tracer .get_client ()
149149 self .application .tracer = FlaskTracing (client , True , self .application )
150150
You can’t perform that action at this time.
0 commit comments