diff --git a/Examples/otel-dotnet/Program.cs b/Examples/otel-dotnet/Program.cs index d569b2cdb0..fa31193fb8 100644 --- a/Examples/otel-dotnet/Program.cs +++ b/Examples/otel-dotnet/Program.cs @@ -88,17 +88,6 @@ builder.Services.AddOpenTelemetry() var app = builder.Build(); - - - -var value = 1; - -int getGuage() -{ - value++; - return value; -} - greeterMeter.CreateObservableGauge("ThreadCount", () => new[] { new Measurement(ThreadPool.ThreadCount) }); var countGreetings = greeterMeter.CreateCounter("greetings.count", description: "Counts the number of greetings");