Example #1
0
 public IDisposable TrackVersionListsUpdated(int versionListCount, int workerCount)
 {
     return(_telemetryClient.TrackDuration(
                Prefix + "VersionListsUpdatedSeconds",
                new Dictionary <string, string>
     {
         { "VersionListCount", versionListCount.ToString() },
         { "WorkerCount", workerCount.ToString() },
     }));
 }
 public IDisposable TrackCatalogLeafDownloadBatch(int count)
 {
     return(_telemetryClient.TrackDuration(
                Prefix + "CatalogLeafDownloadBatchSeconds",
                new Dictionary <string, string>
     {
         { "Count", count.ToString() },
     }));
 }
Example #3
0
 public IDisposable TrackDurationToHashPackage(
     string packageId,
     string normalizedVersion,
     long packageSize,
     string hashAlgorithm,
     string streamType)
 {
     return(_telemetryClient.TrackDuration(
                DurationToHashPackageSeconds,
                new Dictionary <string, string>
     {
         { PackageId, packageId },
         { NormalizedVersion, normalizedVersion },
         { PackageSize, packageSize.ToString() },
         { HashAlgorithm, hashAlgorithm },
         { StreamType, streamType },
     }));
 }
Example #4
0
 public DurationMetric <StartNextRevalidationOperation> TrackStartNextRevalidationOperation()
 {
     return(_client.TrackDuration(
                DurationToStartNextRevalidation,
                new StartNextRevalidationOperation(),
                o => new Dictionary <string, string>
     {
         { Result, o.Result.ToString() }
     }));
 }
 public IDisposable TrackSymbolValidationDurationEvent(string packageId, string packageNormalizedVersion, int symbolCount)
 {
     return(_telemetryClient.TrackDuration(
                SymbolValidationDuration,
                new Dictionary <string, string>
     {
         { PackageId, packageId },
         { PackageNormalizedVersion, packageNormalizedVersion },
         { SymbolCount, symbolCount.ToString() }
     }));
 }
Example #6
0
 public IDisposable TrackDiscoverRepositoriesDuration()
 {
     return(_telemetryClient.TrackDuration(DiscoverRepositoriesDuration));
 }
Example #7
0
 public IDisposable TrackIndexCommitDuration()
 {
     return(_telemetryClient.TrackDuration(TelemetryConstants.IndexCommitDurationSeconds));
 }
Example #8
0
 public IDisposable TrackFindNextRevalidations()
 {
     return(_client.TrackDuration(DurationToFindRevalidations));
 }
Example #9
0
 public IDisposable TrackPromoteSignaturesDuration()
 => _client.TrackDuration(PromoteSignatureDuration);