Skip to content

Commit

Permalink
feat: add opentelemetry (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashukequinor authored Nov 19, 2024
1 parent e18150b commit cd23c57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Oplog.Api/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
var clientId = configuration["AzureAd:ClientId"];
var clientSecret = configuration["AzureAd:ClientSecret"];
var tenantId = configuration["AzureAd:TenantId"];
var appInsightsConnectionString = configuration["ApplicationInsights:ConnectionString"];


if (!builder.Environment.IsDevelopment())
{
Expand Down Expand Up @@ -105,7 +105,7 @@

// Add OpenTelemetry and configure it to use Azure Monitor.
builder.Services.AddOpenTelemetry().UseAzureMonitor(options => {
options.ConnectionString = appInsightsConnectionString;
options.ConnectionString = configuration["ApplicationInsights:ConnectionString"];
});

//Add command handlers
Expand Down

0 comments on commit cd23c57

Please sign in to comment.