File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
opentelemetry-sdk/src/opentelemetry/sdk/_configuration Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 9191def _import_config_components (
9292 selected_components : List [str ], entry_point_name : str
9393) -> Sequence [Tuple [str , object ]]:
94+
9495 component_implementations = []
9596
9697 for selected_component in selected_components :
@@ -108,11 +109,13 @@ def _import_config_components(
108109 )
109110 )
110111 except KeyError :
112+
111113 raise RuntimeError (
112114 f"Requested entry point '{ entry_point_name } ' not found"
113115 )
114116
115117 except StopIteration :
118+
116119 raise RuntimeError (
117120 f"Requested component '{ selected_component } ' not found in "
118121 f"entry point '{ entry_point_name } '"
@@ -388,6 +391,7 @@ class _BaseConfigurator(ABC):
388391 _is_instrumented = False
389392
390393 def __new__ (cls , * args , ** kwargs ):
394+
391395 if cls ._instance is None :
392396 cls ._instance = object .__new__ (cls , * args , ** kwargs )
393397
You can’t perform that action at this time.
0 commit comments