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 3
3
from typing import Text
4
4
5
5
from flask import Flask
6
- from flask_opentracing import FlaskTracing
7
6
8
7
from pyms .config import get_conf
9
8
from pyms .config .conf import validate_conf
10
9
from pyms .constants import LOGGER_NAME , CONFIG_BASE
11
10
from pyms .flask .healthcheck import healthcheck_blueprint
12
11
from pyms .flask .services .driver import ServicesManager
13
12
from pyms .logger import CustomJsonFormatter
14
- from pyms .utils import check_package_exists
13
+ from pyms .utils import check_package_exists , import_from
15
14
16
15
logger = logging .getLogger (LOGGER_NAME )
17
16
@@ -145,6 +144,7 @@ def init_tracer(self) -> None:
145
144
:return: None
146
145
"""
147
146
if self ._exists_service ("tracer" ):
147
+ FlaskTracing = import_from ("flask_opentracing" , "FlaskTracing" )
148
148
client = self .tracer .get_client ()
149
149
self .application .tracer = FlaskTracing (client , True , self .application )
150
150
You can’t perform that action at this time.
0 commit comments