We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3458752 commit 3f1a09eCopy full SHA for 3f1a09e
sdk/monitor/Azure.Monitor.OpenTelemetry/tests/Azure.Monitor.OpenTelemetry.Demo/Program.cs
@@ -3,6 +3,7 @@
3
4
#if NET6_0_OR_GREATER
5
using System.Diagnostics;
6
+using System.Net.Http;
7
using Azure.Monitor.OpenTelemetry;
8
using Microsoft.AspNetCore.Builder;
9
using Microsoft.Extensions.Logging;
@@ -31,6 +32,10 @@
31
32
app.MapGet("/", () =>
33
{
34
app.Logger.LogInformation("Hello World!");
35
+
36
+ using var client = new HttpClient();
37
+ var response = client.GetAsync("https://www.bing.com/").Result;
38
39
return $"Hello World! OpenTelemetry Trace: {Activity.Current?.Id}";
40
});
41
0 commit comments