Yes, using instrumentation.OITracer(trace.NoOpTracer(), config=instrumentation.TraceConfig()) is a valid way to create a dummy OpenInference-compatible tracer for testing or no-op scenarios. This approach is consistent with the OpenInference pattern for wrapping a tracer with configuration, and NoOpTracer is the standard OpenTelemetry no-op implementation for cases where you don't want to emit real traces. However, note that the legacy OpenInferenceTracer dummy tracer has been deprecated in favor of OTEL-based tracers like this one, so your approach is up-to-date and recommended for new code (source, source).Would you like more detail or example usage?Sources:
- OpenInference Python DEVELOPMENT.md
- https://github.com/Arize-ai/phoenix/issues/2246
馃挕聽Hint: Mention RunLLM in the thread for followups.