Skip to content

Commit d55604c

Browse files
committed
Rename command
1 parent d50fd1e commit d55604c

File tree

5 files changed

+4
-3
lines changed

5 files changed

+4
-3
lines changed

opentelemetry-api/setup.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
],
4343
entry_points={
4444
"console_scripts": [
45-
"auto_agent = opentelemetry.commands.auto_agent:run"
45+
"opentelemetry-auto-instrument = "
46+
"opentelemetry.auto_instrument.auto_instrument:run"
4647
],
4748
"opentelemetry_patcher": [
4849
"no_op_patcher = opentelemetry.patcher.no_op_patcher:NoOpPatcher"

opentelemetry-api/src/opentelemetry/commands/auto_agent.py opentelemetry-api/src/opentelemetry/auto_instrument/auto_instrument.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717
from distutils.spawn import find_executable
1818
from os import environ, execl
19-
from os.path import dirname, join
19+
from os.path import dirname
2020
from sys import argv
2121

2222

2323
def run() -> None:
24-
environ["PYTHONPATH"] = join(dirname(__file__), "initialize")
24+
environ["PYTHONPATH"] = dirname(__file__)
2525
python3 = find_executable(argv[1])
2626
execl(python3, python3, *argv[2:]) # type: ignore
2727
exit(0) # pylint: disable=consider-using-sys-exit

opentelemetry-api/src/opentelemetry/commands/initialize/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)