Added more spans
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2021-08-04 16:33:03 +02:00
parent b094ab43fa
commit 9b328cf259
2 changed files with 16 additions and 8 deletions

View File

@@ -64,7 +64,8 @@ class ClassifierCache:
self._downloaded_files.append(weights_file_path)
# magic happens here
self._current_classifier = Classifier(model_file_path, weights_file_path)
with opentracing.tracer.start_active_span('classifier.loadNewClassifier'):
self._current_classifier = Classifier(model_file_path, weights_file_path)
def get_default_classifier(self) -> Tuple[dict, Classifier]: