Not sure what am i doing wrong.
I launch the tracing app using phoenix serve
then, i try to instrument my calls by setting:
PHOENIX_COLLECTOR_ENDPOINT = os.getenv('PHOENIX_COLLECTOR_ENDPOINT')
trace_provider = register(project_name='variations',
batch=True,
endpoint=PHOENIX_COLLECTOR_ENDPOINT,
)
trace_provider.add_span_processor(BatchSpanProcessor(OTLPSpanExporter(PHOENIX_COLLECTOR_ENDPOINT)))
instrumentor = LangChainInstrumentor()
instrumentor.instrument(trace_provider=trace_provider, config=TraceConfig(base64_image_max_length=0))
When i look at the stdout of the served app, i see that upon initialization it indicates that the gRPC uses a different port.
i also see 404 errors keep coming up (attached snapshot)
The instrumented program indicates the following upon the initialization of the instrumentor:
/usr/local/lib/python3.10/dist-packages/phoenix/otel/otel.py:277: UserWarning: Could not infer collector endpoint protocol, defaulting to HTTP.
warnings.warn("Could not infer collector endpoint protocol, defaulting to HTTP.")
馃敪 OpenTelemetry Tracing Details 馃敪
| Phoenix Project: variations
| Span Processor: BatchSpanProcessor
| Collector Endpoint: http://0.0.0.0:5151
| Transport: HTTP
| Transport Headers: {}
|
| Using a default SpanProcessor. `add_span_processor` will overwrite this default.
|
| `register` has set this TracerProvider as the global OpenTelemetry default.
| To disable this behavior, call `register` with `set_global_tracer_provider=False`.
and when performing a call that should be instrumented i get the following:
WARNING:opentelemetry.exporter.otlp.proto.grpc.exporter:Transient error StatusCode.UNAVAILABLE encountered while exporting traces to 0.0.0.0:5151, retrying in 32s.
2024-10-14 09:55:28,931 - opentelemetry.exporter.otlp.proto.grpc.exporter - WARNING - Transient error StatusCode.UNAVAILABLE encountered while exporting traces to 0.0.0.0:5151, retrying in 32s.