File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
libs/executors/garf_executors Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 1313# limitations under the License.
1414
1515import inspect
16+ import logging
1617import sys
1718from importlib .metadata import entry_points
1819
1920from garf_core import report_fetcher
20- from opentelemetry import trace
2121
2222from garf_executors .telemetry import tracer
2323
24+ logger = logging .getLogger (name = 'garf_executors.fetchers' )
25+
2426
2527@tracer .start_as_current_span ('find_fetchers' )
2628def find_fetchers () -> set [str ]:
@@ -57,8 +59,10 @@ def get_report_fetcher(source: str) -> type[report_fetcher.ApiReportFetcher]:
5759 obj , report_fetcher .ApiReportFetcher
5860 ):
5961 return getattr (fetcher_module , name )
60- except ModuleNotFoundError :
61- continue
62+ except ModuleNotFoundError as e :
63+ raise report_fetcher .ApiReportFetcherError (
64+ f'Failed to load fetcher for source { source } , reason: { e } '
65+ )
6266 raise report_fetcher .ApiReportFetcherError (
6367 f'No fetcher available for the source "{ source } "'
6468 )
You can’t perform that action at this time.
0 commit comments