File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
resource/opentelemetry-resource-detector-azure/src/opentelemetry/resource/detector/azure Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111 ([ #1967 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/1967 ) )
1212- ` opentelemetry-resource-detector-azure ` Added 10s timeout to VM Resource Detector
1313 ([ #2119 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2119 ) )
14+ - ` opentelemetry-resource-detector-azure ` Changed timeout to 4 seconds due to [ timeout bug] ( https://github.com/open-telemetry/opentelemetry-python/issues/3644 )
15+ ([ #2136 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2136 ) )
1416
1517## Version 1.22.0/0.43b0 (2023-12-14)
1618
Original file line number Diff line number Diff line change 1212# See the License for the specific language governing permissions and
1313# limitations under the License.
1414
15- __version__ = "0.1.1 "
15+ __version__ = "0.1.2 "
Original file line number Diff line number Diff line change @@ -68,7 +68,10 @@ def get_azure_vm_metadata(self): # pylint: disable=no-self-use
6868 request = Request (_AZURE_VM_METADATA_ENDPOINT )
6969 request .add_header ("Metadata" , "True" )
7070 try :
71- with urlopen (request , timeout = 10 ) as response :
71+ # TODO: Changed to 4s to fit into OTel SDK's 5 second timeout.
72+ # Lengthen or allow user input if issue is resolved.
73+ # See https://github.com/open-telemetry/opentelemetry-python/issues/3644
74+ with urlopen (request , timeout = 4 ) as response :
7275 return loads (response .read ())
7376 except URLError :
7477 # Not on Azure VM
You can’t perform that action at this time.
0 commit comments