Skip to content

Commit 74f3409

Browse files
committed
Relocate dashscope instrumentation
Change-Id: I147d6d750ee653f6f4936ea1f4383fbbefc4cc40 Co-developed-by: Cursor <[email protected]>
1 parent 8737f91 commit 74f3409

File tree

11 files changed

+5
-5
lines changed

11 files changed

+5
-5
lines changed

instrumentation-loongsuite/loongsuite-instrumentation-dashscope/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Usage
2525
from opentelemetry.sdk.trace import TracerProvider
2626
from opentelemetry.sdk.trace.export import ConsoleSpanExporter, SimpleSpanProcessor
2727
28-
from loongsuite.instrumentation.dashscope import DashScopeInstrumentor
28+
from opentelemetry.instrumentation.dashscope import DashScopeInstrumentor
2929
3030
# Initialize tracing
3131
trace.set_tracer_provider(TracerProvider())

instrumentation-loongsuite/loongsuite-instrumentation-dashscope/examples/basic_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import os
1414

1515
from dashscope import Generation, TextEmbedding
16-
from loongsuite.instrumentation.dashscope import DashScopeInstrumentor
16+
from opentelemetry.instrumentation.dashscope import DashScopeInstrumentor
1717

1818
from opentelemetry import trace
1919
from opentelemetry.sdk.trace import TracerProvider

instrumentation-loongsuite/loongsuite-instrumentation-dashscope/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ instruments = [
3737
]
3838

3939
[project.entry-points.opentelemetry_instrumentor]
40-
dashscope = "loongsuite.instrumentation.dashscope:DashScopeInstrumentor"
40+
dashscope = "opentelemetry.instrumentation.dashscope:DashScopeInstrumentor"
4141

4242
[project.urls]
4343
Homepage = "https://github.com/alibaba/loongsuite-python-agent"
4444

4545
[tool.hatch.version]
46-
path = "src/loongsuite/instrumentation/dashscope/version.py"
46+
path = "src/opentelemetry/instrumentation/dashscope/version.py"
4747

4848
[tool.hatch.build.targets.sdist]
4949
include = [

instrumentation-loongsuite/loongsuite-instrumentation-dashscope/src/loongsuite/__init__.py renamed to instrumentation-loongsuite/loongsuite-instrumentation-dashscope/src/opentelemetry/__init__.py

File renamed without changes.

instrumentation-loongsuite/loongsuite-instrumentation-dashscope/src/loongsuite/instrumentation/__init__.py renamed to instrumentation-loongsuite/loongsuite-instrumentation-dashscope/src/opentelemetry/instrumentation/__init__.py

File renamed without changes.

instrumentation-loongsuite/loongsuite-instrumentation-dashscope/src/loongsuite/instrumentation/dashscope/__init__.py renamed to instrumentation-loongsuite/loongsuite-instrumentation-dashscope/src/opentelemetry/instrumentation/dashscope/__init__.py

File renamed without changes.

instrumentation-loongsuite/loongsuite-instrumentation-dashscope/src/loongsuite/instrumentation/dashscope/package.py renamed to instrumentation-loongsuite/loongsuite-instrumentation-dashscope/src/opentelemetry/instrumentation/dashscope/package.py

File renamed without changes.

instrumentation-loongsuite/loongsuite-instrumentation-dashscope/src/loongsuite/instrumentation/dashscope/patch.py renamed to instrumentation-loongsuite/loongsuite-instrumentation-dashscope/src/opentelemetry/instrumentation/dashscope/patch.py

File renamed without changes.

instrumentation-loongsuite/loongsuite-instrumentation-dashscope/src/loongsuite/instrumentation/dashscope/utils.py renamed to instrumentation-loongsuite/loongsuite-instrumentation-dashscope/src/opentelemetry/instrumentation/dashscope/utils.py

File renamed without changes.

instrumentation-loongsuite/loongsuite-instrumentation-dashscope/src/loongsuite/instrumentation/dashscope/version.py renamed to instrumentation-loongsuite/loongsuite-instrumentation-dashscope/src/opentelemetry/instrumentation/dashscope/version.py

File renamed without changes.

0 commit comments

Comments
 (0)