diff --git a/src/LondonTravel.Site/Extensions/TelemetryExtensions.cs b/src/LondonTravel.Site/Extensions/TelemetryExtensions.cs index c98f8387d..b69005759 100644 --- a/src/LondonTravel.Site/Extensions/TelemetryExtensions.cs +++ b/src/LondonTravel.Site/Extensions/TelemetryExtensions.cs @@ -25,6 +25,7 @@ public static class TelemetryExtensions { private static readonly ConcurrentDictionary ServiceMap = new(StringComparer.OrdinalIgnoreCase) { + ["api.github.com"] = "GitHub", }; public static void AddTelemetry(this IServiceCollection services, IWebHostEnvironment environment) diff --git a/src/LondonTravel.Site/Services/Data/DocumentCollectionInitializer.cs b/src/LondonTravel.Site/Services/Data/DocumentCollectionInitializer.cs index b2ac461b4..8496acbcf 100644 --- a/src/LondonTravel.Site/Services/Data/DocumentCollectionInitializer.cs +++ b/src/LondonTravel.Site/Services/Data/DocumentCollectionInitializer.cs @@ -51,7 +51,7 @@ public async Task EnsureCollectionExistsAsync( return true; } - Database database = await GetOrCreateDatabaseAsync(client, cancellationToken); + var database = await GetOrCreateDatabaseAsync(client, cancellationToken); return await CreateContainerAsync(collectionName, database, cancellationToken); }