Get the OTel configuration from the observability manager. Returns: OTelConfig instance if observability is enabled, None otherwise
()
| 850 | |
| 851 | |
| 852 | def _get_config() -> Optional["OTelConfig"]: |
| 853 | """ |
| 854 | Get the OTel configuration from the observability manager. |
| 855 | |
| 856 | Returns: |
| 857 | OTelConfig instance if observability is enabled, None otherwise |
| 858 | """ |
| 859 | try: |
| 860 | manager = get_observability_instance().get_provider_manager() |
| 861 | if manager is None: |
| 862 | return None |
| 863 | return manager.config |
| 864 | except Exception: |
| 865 | return None |
| 866 | |
| 867 | |
| 868 | def reset_collector() -> None: |
no test coverage detected