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 (<https://github.com/Arize-ai/openinference/blob/main/python/DEVELOPMENT.md|source>, <https://github.com/Arize-ai/phoenix/issues/2246|source>).
Would you like more detail or example usage?
Sources:
- <https://github.com/Arize-ai/openinference/blob/main/python/DEVELOPMENT.md|OpenInference Python DEVELOPMENT.md>
- <https://github.com/Arize-ai/phoenix/issues/2246|https://github.com/Arize-ai/phoenix/issues/2246>