diff --git a/resource/opentelemetry-resource-detector-azure/src/opentelemetry/resource/detector/azure/vm.py b/resource/opentelemetry-resource-detector-azure/src/opentelemetry/resource/detector/azure/vm.py index 01c7cdc4ae..7395c8d181 100644 --- a/resource/opentelemetry-resource-detector-azure/src/opentelemetry/resource/detector/azure/vm.py +++ b/resource/opentelemetry-resource-detector-azure/src/opentelemetry/resource/detector/azure/vm.py @@ -74,17 +74,9 @@ def get_azure_vm_metadata(self): # pylint: disable=no-self-use request = Request(_AZURE_VM_METADATA_ENDPOINT) print("end Request") request.add_header("Metadata", "True") - try: - raise Exception("Blah1") - except Exception: - pass - try: - raise Exception("Blah2") - except Exception: - pass try: print("begin urlopen") - sleep(10) + sleep(20) # with urlopen(request, timeout=) as response: # print("end urlopen") # print("end get_azure_vm_metadata")