File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -456,7 +456,17 @@ if ($with_dotnet_instrumentation) {
456
456
$download = " https://github.com/signalfx/splunk-otel-dotnet/releases/latest/download/$module_name "
457
457
$dotnet_autoinstr_path = Join-Path $tempdir $module_name
458
458
echo " Downloading .NET Instrumentation installer ..."
459
- Invoke-WebRequest - Uri $download - OutFile $dotnet_autoinstr_path - UseBasicParsing
459
+ try {
460
+ [Net.ServicePointManager ]::SecurityProtocol = [Net.SecurityProtocolType ]::Tls12
461
+ Invoke-WebRequest - Uri $download - OutFile $dotnet_autoinstr_path - UseBasicParsing
462
+ } catch {
463
+ $err = $_.Exception.Message
464
+ $message = "
465
+ An error occured when trying to download .NET Instrumentation installer from $download . This may be due to a network connectivity issue.
466
+ $err
467
+ "
468
+ throw " $message "
469
+ }
460
470
Import-Module $dotnet_autoinstr_path
461
471
} else {
462
472
$dotnet_autoinstr_path = $dotnet_psm1_path
You can’t perform that action at this time.
0 commit comments