Skip to content

Commit 1251d08

Browse files
ready for independent genai instrumentation
1 parent 64d5f47 commit 1251d08

File tree

7 files changed

+27
-130
lines changed

7 files changed

+27
-130
lines changed

instrumentation-genai/opentelemetry-instrumentation-langchain/MIGRATION_GUIDE.md

Lines changed: 0 additions & 99 deletions
This file was deleted.
Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
OpenTelemetry Langchain Instrumentation
22
========================================
33

4-
该包为 Langchain 框架提供 OpenTelemetry 插桩支持。
4+
This package provides OpenTelemetry instrumentation support for the Langchain framework.
55

6-
安装
7-
----
6+
Installation
7+
------------
88

99
::
1010

1111
pip install tapm-instrumentation-langchain
1212

13-
使用方法
14-
--------
13+
Usage
14+
-----
1515

1616
.. code-block:: python
1717
1818
from opentelemetry.instrumentation.langchain import LangchainInstrumentor
1919
LangchainInstrumentor().instrument()
2020
21-
# 现在您的 Langchain 应用程序将自动生成 traces
22-
23-
API
24-
---
25-
26-
.. automodule:: opentelemetry.instrumentation.langchain
27-
:members:
28-
:undoc-members:
29-
:show-inheritance:
21+
# Now your Langchain application will automatically generate traces

instrumentation-genai/opentelemetry-instrumentation-langchain/pyproject.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ readme = "README.rst"
1010
license = "Apache-2.0"
1111
requires-python = ">=3.8"
1212
dependencies = [
13-
"opentelemetry-api ~= 1.30",
14-
"opentelemetry-instrumentation ~= 0.51b0",
15-
"opentelemetry-semantic-conventions ~= 0.51b0",
13+
"opentelemetry-api >= 1.30.0, < 2.0.0",
14+
"tapm-instrumentation >= 0.51b0, < 1.0.0",
15+
"opentelemetry-semantic-conventions >= 0.51b0, < 1.0.0",
16+
"opentelemetry-semantic-conventions-ai",
1617
]
1718

1819
[project.optional-dependencies]
@@ -36,7 +37,8 @@ langchain = "opentelemetry.instrumentation.langchain:LangchainInstrumentor"
3637
path = "src/opentelemetry/instrumentation/langchain/version.py"
3738

3839
[tool.hatch.build.targets.sdist]
39-
include = ["/src", "/tests"]
40+
include = ["/src"]
41+
exclude = ["/examples", "/tests"]
4042

4143
[tool.hatch.build.targets.wheel]
4244
packages = ["src/opentelemetry"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.40.7"
1+
__version__ = "0.40.7a3"

instrumentation-genai/opentelemetry-instrumentation-ollama/README.rst

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
OpenTelemetry Ollama Instrumentation
22
====================================
33

4-
该包为 Ollama LLM 客户端库提供 OpenTelemetry 插桩支持。
4+
This package provides OpenTelemetry instrumentation support for Ollama LLM client libraries.
55

6-
安装
7-
-----
6+
Installation
7+
------------
88
.. code-block:: bash
99
1010
pip install tapm-instrumentation-ollama
1111
12-
用法
12+
Usage
1313
-----
1414
.. code-block:: python
1515
1616
from opentelemetry.instrumentation.ollama import OllamaInstrumentor
1717
OllamaInstrumentor().instrument()
1818
19-
测试
20-
-----
21-
使用 pytest VCR 录制网络请求:
19+
Testing
20+
-------
21+
Use pytest and VCR to record network requests:
2222

2323
.. code-block:: bash
2424

instrumentation-genai/opentelemetry-instrumentation-ollama/pyproject.toml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ readme = "README.rst"
1010
license = "Apache-2.0"
1111
requires-python = ">=3.8"
1212
dependencies = [
13-
"opentelemetry-api ~= 1.30",
14-
"opentelemetry-instrumentation ~= 0.51b0",
15-
"opentelemetry-semantic-conventions ~= 0.51b0",
13+
"opentelemetry-api >= 1.30.0, < 2.0.0",
14+
"tapm-instrumentation >= 0.51b0, < 1.0.0",
15+
"opentelemetry-semantic-conventions >= 0.51b0, < 1.0.0",
16+
"opentelemetry-semantic-conventions-ai",
1617
]
1718

1819
[project.optional-dependencies]
@@ -25,7 +26,8 @@ ollama = "opentelemetry.instrumentation.ollama:OllamaInstrumentor"
2526
path = "src/opentelemetry/instrumentation/ollama/version.py"
2627

2728
[tool.hatch.build.targets.sdist]
28-
include = ["/src", "/tests"]
29+
include = ["/src"]
30+
exclude = ["/examples", "/tests"]
2931

3032
[tool.hatch.build.targets.wheel]
3133
packages = ["src/opentelemetry"]
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.40.7"
1+
__version__ = "0.40.7a3"

0 commit comments

Comments
 (0)