this is not disabling the meterprovider successfully

This commit is contained in:
doctorpangloss 2025-07-16 14:33:06 -07:00
parent 5f77a57d33
commit 6ecb9e71f6

View File

@ -154,11 +154,5 @@ def _configure_logging():
_configure_logging()
_fix_pytorch_240()
# explicitly disable OpenTelemetry metrics by providing a no-op MeterProvider.
# this prevents the SDK from auto-configuring a default OTLP exporter that
# would try to connect to localhost when no metrics configuration is present.
set_meter_provider(MeterProvider())
tracer = _create_tracer()
__all__ = ["args", "tracer"]