mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 01:25:38 -05:00
Add OpenTelemetry to Environment service
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
using ChrisKaczor.Common.OpenTelemetry;
|
||||
using ChrisKaczor.HomeMonitor.Environment.Service.Data;
|
||||
using System.Reflection;
|
||||
|
||||
namespace ChrisKaczor.HomeMonitor.Environment.Service;
|
||||
|
||||
@@ -10,6 +12,8 @@ public static class Program
|
||||
|
||||
builder.Configuration.AddEnvironmentVariables();
|
||||
|
||||
builder.Services.AddCommonOpenTelemetry(Assembly.GetExecutingAssembly().GetName().Name, builder.Configuration["Telemetry:Endpoint"], nameof(MessageHandler));
|
||||
|
||||
builder.Services.AddControllers();
|
||||
|
||||
builder.Services.AddTransient<Database>();
|
||||
|
||||
Reference in New Issue
Block a user