File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
opentelemetry-instrumentation/src/opentelemetry/instrumentation Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 2222 SubprocessError ,
2323 check_call ,
2424)
25+ from typing import Optional
2526
2627from packaging .requirements import Requirement
2728
@@ -140,8 +141,8 @@ def _run_install(default_instrumentations, libraries):
140141
141142
142143def run (
143- default_instrumentations = gen_default_instrumentations ,
144- libraries = gen_libraries ,
144+ default_instrumentations : Optional [ list ] = None ,
145+ libraries : Optional [ list ] = None ,
145146) -> None :
146147 action_install = "install"
147148 action_requirements = "requirements"
@@ -172,6 +173,12 @@ def run(
172173 )
173174 args = parser .parse_args ()
174175
176+ if libraries is None :
177+ libraries = gen_libraries
178+
179+ if default_instrumentations is None :
180+ default_instrumentations = gen_default_instrumentations
181+
175182 cmd = {
176183 action_install : _run_install ,
177184 action_requirements : _run_requirements ,
You can’t perform that action at this time.
0 commit comments