Skip to content

Commit 133fec0

Browse files
author
Dean Ward
committed
Update sample to add tier tag
1 parent 0847ee9 commit 133fec0

File tree

1 file changed

+7
-0
lines changed
  • samples/StackExchange.Metrics.SampleHost

1 file changed

+7
-0
lines changed

samples/StackExchange.Metrics.SampleHost/Startup.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ public Startup(IConfiguration configuration, IWebHostEnvironment hostingEnvironm
2626
public void ConfigureServices(IServiceCollection services)
2727
{
2828
services.AddMetricsCollector()
29+
.ConfigureSources(
30+
options =>
31+
{
32+
options.DefaultTags["tier"] = "Local";
33+
}
34+
)
35+
.AddDefaultSources()
2936
.AddSource<AppMetricSource>()
3037
.UseExceptionHandler(ex => Console.WriteLine(ex))
3138
.Configure(

0 commit comments

Comments
 (0)