File tree 3 files changed +7
-2
lines changed
resource/opentelemetry-resource-detector-azure/src/opentelemetry/resource/detector/azure
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9
9
10
10
- ` opentelemetry-resource-detector-azure ` Added 10s timeout to VM Resource Detector
11
11
([ #2119 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2119 ) )
12
+ - ` opentelemetry-resource-detector-azure ` Changed timeout to 4 seconds due to [ timeout bug] ( https://github.com/open-telemetry/opentelemetry-python/issues/3644 )
13
+ ([ #2136 ] ( https://github.com/open-telemetry/opentelemetry-python-contrib/pull/2136 ) )
12
14
13
15
## Version 1.22.0/0.43b0 (2023-12-14)
14
16
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
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
68
68
request = Request (_AZURE_VM_METADATA_ENDPOINT )
69
69
request .add_header ("Metadata" , "True" )
70
70
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 :
72
75
return loads (response .read ())
73
76
except URLError :
74
77
# Not on Azure VM
You can’t perform that action at this time.
0 commit comments