{"id":29959218,"url":"https://github.com/theinnerlight/tagless-metrics","last_synced_at":"2025-08-03T21:43:42.115Z","repository":{"id":53018008,"uuid":"183098931","full_name":"TheInnerLight/tagless-metrics","owner":"TheInnerLight","description":null,"archived":false,"fork":false,"pushed_at":"2021-04-09T12:50:33.000Z","size":57,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2023-07-07T19:10:07.719Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/TheInnerLight.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-23T21:30:21.000Z","updated_at":"2021-04-09T12:50:32.000Z","dependencies_parsed_at":"2022-09-05T02:41:55.062Z","dependency_job_id":null,"html_url":"https://github.com/TheInnerLight/tagless-metrics","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"purl":"pkg:github/TheInnerLight/tagless-metrics","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheInnerLight%2Ftagless-metrics","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheInnerLight%2Ftagless-metrics/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheInnerLight%2Ftagless-metrics/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheInnerLight%2Ftagless-metrics/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TheInnerLight","download_url":"https://codeload.github.com/TheInnerLight/tagless-metrics/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TheInnerLight%2Ftagless-metrics/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268618493,"owners_count":24279245,"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","status":"online","status_checked_at":"2025-08-03T02:00:12.545Z","response_time":2577,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-08-03T21:43:37.200Z","updated_at":"2025-08-03T21:43:42.090Z","avatar_url":"https://github.com/TheInnerLight.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"## tagless-metrics-core\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.novelfs/tagless-metrics-core_2.13/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.novelfs/tagless-metrics-core_2.13)\n\nDefines a core tagless dsl for incrementing/decrementing/etc metrics.\n\nAs of version 0.2.0, tagless-metrics supports Kamon 2.x for Scala 2.12 and\n2.13.\n\nKamon 1.x is supported by version 0.1.0 of tagless-metrics and is\navailale for Scala 2.11 and 2.12 ... see below for further details.\n\n## tagless-metrics-kamon\n\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/org.novelfs/tagless-metrics-kamon_2.13/badge.svg)](https://maven-badges.herokuapp.com/maven-central/org.novelfs/tagless-metrics-kamon_2.13)\n\nDefines kamon-integration via the dsl.\n\n\n## Include\n\nAdd dependencies to `built.sbt`\n\n```\nlibraryDependencies += \"org.novelfs\" %% \"tagless-metrics-core\" % \"0.3.0\"\nlibraryDependencies += \"org.novelfs\" %% \"tagless-metrics-kamon\" % \"0.3.0\"\n```\n\n## Usage\n\nYou can import the instances individually if you wish, or simply:\n\n```\nimport org.novelfs.taglessmetrics.kamon.implicits._\n```\n\nImport the metrics to be used\n\n```\nimport org.novelfs.taglessmetrics.kamon.Counter\n```\n\nCounter usage:\n\n```\nval helloWorldCounter = Counter(\"hello-world-counter\")\n\ndef printAndIncrementMetric[F[_] : Sync : IncrementMeric[?[_], Counter]] : F[Unit] =\n  for {\n    _ \u003c- IncrementMetric[F, Counter].increment(helloWorldCounter.withTag(\"status\", \"before\"))\n    _ \u003c- Sync[F].delay { println(\"Hello world\" }\n    _ \u003c- IncrementMetric[F, Counter].increment(helloWorldCounter.withTag(\"status\", \"after\"))\n  } yield ()\n\n```\n\n## Older versions\n\nKamon 1.x is supported by version 0.1.0 of tagless-metrics and is\navailale for Scala 2.11 and 2.12. Inclusion and usage are as above, but note\nthat syntax follows the earlier Kamon release with `refine` used in place of\n`withTag`. Consequently the preceding example would be written,\n\n```\nval helloWorldCounter = Counter(\"hello-world-counter\")\n\ndef printAndIncrementMetric[F[_] : Sync : IncrementMeric[?[_], Counter]] : F[Unit] =\n  for {\n    _ \u003c- IncrementMetric[F, Counter].increment(helloWorldCounter.refine(\"status\" -\u003e \"before\"))\n    _ \u003c- Sync[F].delay { println(\"Hello world\" }\n    _ \u003c- IncrementMetric[F, Counter].increment(helloWorldCounter.refine(\"status\" -\u003e \"after\"))\n  } yield ()\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheinnerlight%2Ftagless-metrics","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheinnerlight%2Ftagless-metrics","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheinnerlight%2Ftagless-metrics/lists"}