Skip to content

Commit

Permalink
add telemetry
Browse files Browse the repository at this point in the history
  • Loading branch information
oskogstad committed Jan 15, 2025
1 parent 91850a8 commit 916f6f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Digdir.Domain.Dialogporten.GraphQL/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ static void BuildAndRun(string[] args)
.AddControllers()
.Services

//Telemetry
.AddDialogportenTelemetry(builder.Configuration, builder.Environment)

// Add health checks with the well-known URLs
.AddAspNetHealthChecks((x, y) => x.HealthCheckSettings.HttpGetEndpointsToCheck = y
.GetRequiredService<IOptions<GraphQlSettings>>().Value?
Expand Down
1 change: 1 addition & 0 deletions src/Digdir.Domain.Dialogporten.Service/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ static void BuildAndRun(string[] args)
.WriteTo.OpenTelemetryOrConsole(context));

builder.Services
.AddDialogportenTelemetry(builder.Configuration, builder.Environment)
.AddAzureAppConfiguration()
.AddApplication(builder.Configuration, builder.Environment)
.AddInfrastructure(builder.Configuration, builder.Environment)
Expand Down

0 comments on commit 916f6f1

Please sign in to comment.