coze-dev / coze-dev/cozeloop-python

trace 支持 dspy框架

Abierto
#32 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Python
Estrellas
33
Forks
15
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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上报也是类似?只需要添加例子代码即可,可否帮忙确认一下?

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.