You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
create venv with dspy 2.6.0
packages:
dspy
openinference-instrumentation-litellm
openinference.instrumentation.dspy
try to use DSPyInstrumentor
from openinference.instrumentation.dspy import DSPyInstrumentor
from opentelemetry import trace as trace_api
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk import trace as trace_sdk
from opentelemetry.sdk.trace.export import SimpleSpanProcessor
Thanks for reporting @juicesharp. Looks like there was a migration of the lm modules. We'll take a look in the coming week but PRs are always welcome. Thanks again!
hat happened?
After upgrading to DSPy 2.6.0
DSPyInstrumentor().instrument(tracer_provider=tracer_provider) # throws exception No module named 'dsp'
openinference.instrumentation.dspy (0.1.14) installed in the current venv environment.
https://app.screencast.com/h0JDx5xHrRNhW
Steps to reproduce
create venv with dspy 2.6.0
packages:
dspy
openinference-instrumentation-litellm
openinference.instrumentation.dspy
try to use DSPyInstrumentor
from openinference.instrumentation.dspy import DSPyInstrumentor
from opentelemetry import trace as trace_api
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from opentelemetry.sdk import trace as trace_sdk
from opentelemetry.sdk.trace.export import SimpleSpanProcessor
Instrumentation
endpoint = "http://127.0.0.1:6006/v1/traces"
tracer_provider = trace_sdk.TracerProvider()
trace_api.set_tracer_provider(tracer_provider)
tracer_provider.add_span_processor(SimpleSpanProcessor(OTLPSpanExporter(endpoint)))
DSPyInstrumentor().instrument(tracer_provider=tracer_provider) <---- Error
....
DSPy version
2.6.0
The text was updated successfully, but these errors were encountered: