Add log activity

This commit is contained in:
Matt Parker
2025-12-05 18:37:06 +10:00
parent 80ae193f7a
commit 575dde79ae

View File

@@ -111,6 +111,7 @@ public class NugetClientService
public async Task<List<IdePackageResult>> GetPackagesForInstalledPackages(string directoryPath, List<InstalledPackage> installedPackages, CancellationToken cancellationToken = default)
{
using var _ = SharpIdeOtel.Source.StartActivity($"{nameof(NugetClientService)}.{nameof(GetPackagesForInstalledPackages)}");
var settings = Settings.LoadDefaultSettings(root: directoryPath);
var packageSourceProvider = new PackageSourceProvider(settings);
var packageSources = packageSourceProvider.LoadPackageSources().Where(p => p.IsEnabled).ToList();