File tree Expand file tree Collapse file tree 2 files changed +4
-13
lines changed
opentelemetry-sdk/src/opentelemetry/sdk/_configuration Expand file tree Collapse file tree 2 files changed +4
-13
lines changed Original file line number Diff line number Diff line change @@ -262,21 +262,15 @@ def _import_exporters(
262262 metric_exporters = {}
263263 log_exporters = {}
264264
265- for (
266- exporter_name ,
267- exporter_impl ,
268- ) in _import_config_components (
265+ for exporter_name , exporter_impl in _import_config_components (
269266 trace_exporter_names , "opentelemetry_traces_exporter"
270267 ):
271268 if issubclass (exporter_impl , SpanExporter ):
272269 trace_exporters [exporter_name ] = exporter_impl
273270 else :
274271 raise RuntimeError (f"{ exporter_name } is not a trace exporter" )
275272
276- for (
277- exporter_name ,
278- exporter_impl ,
279- ) in _import_config_components (
273+ for exporter_name , exporter_impl in _import_config_components (
280274 metric_exporter_names , "opentelemetry_metrics_exporter"
281275 ):
282276 # The metric exporter components may be push MetricExporter or pull exporters which
@@ -286,10 +280,7 @@ def _import_exporters(
286280 else :
287281 raise RuntimeError (f"{ exporter_name } is not a metric exporter" )
288282
289- for (
290- exporter_name ,
291- exporter_impl ,
292- ) in _import_config_components (
283+ for exporter_name , exporter_impl in _import_config_components (
293284 log_exporter_names , "opentelemetry_logs_exporter"
294285 ):
295286 if issubclass (exporter_impl , LogExporter ):
Original file line number Diff line number Diff line change @@ -648,7 +648,7 @@ def test_args(args):
648648
649649
650650def format_args (args ):
651- root_dir = format_dir = str (find_projectroot ())
651+ format_dir = str (find_projectroot ())
652652 if args .path :
653653 format_dir = os .path .join (format_dir , args .path )
654654
You can’t perform that action at this time.
0 commit comments