Issue with Phoenix Notebooks: TypeError on Registering Tracer
Hi guys, I was trying to run one of the phoenix notebooks to get a feeling for phoenix UI on jupyter notebooks, and I ran into this issue not be able to register. Could you help me figure out what could be the issue. Below is the code from openai tracing tutorial here code from notebook:
from openinference.instrumentation.openai import OpenAIInstrumentor
from phoenix.otel import register
tracer_provider = register()
OpenAIInstrumentor().instrument(tracer_provider=tracer_provider)Error message:
TypeError: Channel.unary_unary() got an unexpected keyword argument '_registered_method'
File <command-609526762599117>, line 5
1 from openinference.instrumentation.openai import OpenAIInstrumentor
3 from phoenix.otel import register
----> 5 tracer_provider = register()
6 OpenAIInstrumentor().instrument(tracer_provider=tracer_provider)
File /local_disk0/.ephemeral_nfs/envs/pythonEnv-da4dc698-1615-480a-ba63-a61ebcfc5940/lib/python3.12/site-packages/opentelemetry/proto/collector/trace/v1/trace_service_pb2_grpc.py:50, in TraceServiceStub.__init__(self, channel)
44 def __init__(self, channel):
45 """Constructor.
46
47 Args:
48 channel: A grpc.Channel.
49 """
---> 50 self.Export = channel.unary_unary(
51 "/opentelemetry.proto.collector.trace.v1.TraceService/Export",
52 request_serializer=opentelemetry_dot_proto_dot_collector_dot_trace_dot_v1_dot_trace__service__pb2.ExportTraceServiceRequest.SerializeToString,
53 response_deserializer=opentelemetry_dot_proto_dot_collector_dot_trace_dot_v1_dot_trace__service__pb2.ExportTraceServiceResponse.FromString,
54 _registered_method=True,
55 )