Skip to content

Commit

Permalink
Add mapping for GitHub API
Browse files Browse the repository at this point in the history
Add a host mapping for the GitHub API.
  • Loading branch information
martincostello committed Apr 25, 2024
1 parent 1e515f8 commit 58bf1e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/LondonTravel.Site/Extensions/TelemetryExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public static class TelemetryExtensions
{
private static readonly ConcurrentDictionary<string, string> ServiceMap = new(StringComparer.OrdinalIgnoreCase)
{
["api.github.com"] = "GitHub",
};

public static void AddTelemetry(this IServiceCollection services, IWebHostEnvironment environment)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public async Task<bool> EnsureCollectionExistsAsync(
return true;
}

Database database = await GetOrCreateDatabaseAsync(client, cancellationToken);
var database = await GetOrCreateDatabaseAsync(client, cancellationToken);

return await CreateContainerAsync(collectionName, database, cancellationToken);
}
Expand Down

0 comments on commit 58bf1e2

Please sign in to comment.