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() }, })); }
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 }, })); }
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() } })); }
public IDisposable TrackDiscoverRepositoriesDuration() { return(_telemetryClient.TrackDuration(DiscoverRepositoriesDuration)); }
public IDisposable TrackIndexCommitDuration() { return(_telemetryClient.TrackDuration(TelemetryConstants.IndexCommitDurationSeconds)); }
public IDisposable TrackFindNextRevalidations() { return(_client.TrackDuration(DurationToFindRevalidations)); }
public IDisposable TrackPromoteSignaturesDuration() => _client.TrackDuration(PromoteSignatureDuration);