{"id":26610528,"url":"https://github.com/iwillspeak/pollytick","last_synced_at":"2026-02-02T23:43:49.617Z","repository":{"id":46639922,"uuid":"83475526","full_name":"iwillspeak/PollyTick","owner":"iwillspeak","description":" 🐦⏳ - Execution statistics for Polly policies","archived":false,"fork":false,"pushed_at":"2022-09-03T15:02:54.000Z","size":66,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T00:04:59.981Z","etag":null,"topics":["execution-statistics","hacktoberfest","polly-policies","poly"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/iwillspeak.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-28T20:21:34.000Z","updated_at":"2023-09-28T18:53:54.000Z","dependencies_parsed_at":"2023-01-17T19:46:50.304Z","dependency_job_id":null,"html_url":"https://github.com/iwillspeak/PollyTick","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwillspeak%2FPollyTick","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwillspeak%2FPollyTick/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwillspeak%2FPollyTick/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/iwillspeak%2FPollyTick/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/iwillspeak","download_url":"https://codeload.github.com/iwillspeak/PollyTick/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248131320,"owners_count":21052819,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["execution-statistics","hacktoberfest","polly-policies","poly"],"created_at":"2025-03-24T01:48:32.994Z","updated_at":"2026-02-02T23:43:44.597Z","avatar_url":"https://github.com/iwillspeak.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐦⏳ PollyTick ⏳🐦\n\nExecution statistics for Polly policies.\n\nThis library is aims to provide a simple wrapper for the wonderful [Polly](http://thepollyproject.org/) to collect statistics about policy executions. It aims to allow programmers keep track of what policies are costing them time, and provide a seam to observe policy executions.\n\n## Features\n\n * Keep track of `Policy` execution time\n * Allow `async` policy execution\n * Supports policies with results\n * Can capture exceptions, or allow them to trickle up the stack\n * Collected statistics available through fine-grained observers\n\n## Example\n\nPollyTick provides a fluent interface for observing the execution of Polly policies.\n\n```C#\nvar stats = Ticker\n    .WithPolicy(Policy.NoOp())\n    .Execute(() =\u003e 1701);\nAssert.Equal(1, stats.Executions);\nAssert.Equal(1701, stats.Result);\n```\n\nStatistics aren't just returned from each execution. An observer can be registered when preparing the `Ticker`, and passed in to each `Execute` call.\n\n```C#\nvar overall = new BookkeepingObserver();\nvar ticker = Ticker\n    .WithPolicy(Policy.NoOp())\n    .WithObserver(overall);\n\nvar one = new BookkeepingObserver();\nticker.Execute(() =\u003e 1000, one);\nticker.Execute(() =\u003e { throw new Exception(); });\n\nAssert.Equal(2, overall.Executions);\nAssert.Equal(1, overall.Exceptions);\n\nAssert.Equal(1, one.Executions);\nAssert.Equal(0, one.Exceptions);\n```\n\nNaturally there's `async` support too:\n\n```C#\nvar stats = await Ticker\n    .WithPolicy(Policy.NoOpAsync())\n    .ExecuteAsync(() =\u003e Task.Delay(100));\nAssert.True(stats.Elapsed \u003e= TimeSpan.FromMilliseconds(100));\n```\n\n## Installation\n\nYou can get your hands on `PollyTick` from Nuget.\n\n    PM\u003e Install-Package PollyTick\n\nor for .NET Core update `project.json`\n\n    \"PollyTick\": \"0.4.0\",\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiwillspeak%2Fpollytick","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiwillspeak%2Fpollytick","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiwillspeak%2Fpollytick/lists"}