coze-dev / coze-dev/cozeloop-python
trace 支持 dspy框架
- 主要語言
- Python
- 星號
- 33
- 分支
- 15
- PR 合併指標
- 30 天內沒有已合併 PR
描述
dspy支持[OpenTelemetry](https://opentelemetry.io/),同时OpenTelemetry官方也提供了能力组件:https://pypi.org/project/openinference-instrumentation-dspy/
dspy如果上报到langSmith,只需要添加如下代码即可:
```python
from langsmith.integrations.otel import configure
from openinference.instrumentation.dspy import DSPyInstrumentor
configure(project_name="这是一个自定义名字")
DSPyInstrumentor().instrument()
```
理论上是不是cozeloop-python的trace上报也是类似?只需要添加例子代码即可,可否帮忙确认一下?
貢獻指南
研究方向
Start by reviewing the linked OpenTelemetry and openinference-instrumentation-dspy examples, then inspect how cozeloop-python currently configures trace reporting. Confirm whether the DSPy setup is analogous and add a runnable example if so. Done means the example clearly demonstrates DSPy traces being reported through cozeloop-python.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- python
- 領域
- observability
- Issue 類型
- 文件
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100