{"id":24539819,"url":"https://github.com/56quarters/cadence","last_synced_at":"2025-04-12T19:46:12.933Z","repository":{"id":39619123,"uuid":"47361876","full_name":"56quarters/cadence","owner":"56quarters","description":"An extensible Statsd client for Rust","archived":false,"fork":false,"pushed_at":"2024-09-27T00:33:46.000Z","size":815,"stargazers_count":89,"open_issues_count":2,"forks_count":28,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-03T18:15:50.232Z","etag":null,"topics":["metrics","rust","statsd","udp"],"latest_commit_sha":null,"homepage":"https://docs.rs/cadence/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/56quarters.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGES.md","contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-12-03T21:30:07.000Z","updated_at":"2025-02-18T08:03:44.000Z","dependencies_parsed_at":"2024-02-18T00:25:35.371Z","dependency_job_id":"1325beec-7de1-47ee-add5-a7d95ed81006","html_url":"https://github.com/56quarters/cadence","commit_stats":{"total_commits":427,"total_committers":15,"mean_commits":"28.466666666666665","dds":"0.16627634660421542","last_synced_commit":"466fecffb13b01079b3e9f2c922f95a2b1c2c382"},"previous_names":[],"tags_count":49,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/56quarters%2Fcadence","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/56quarters%2Fcadence/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/56quarters%2Fcadence/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/56quarters%2Fcadence/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/56quarters","download_url":"https://codeload.github.com/56quarters/cadence/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248625491,"owners_count":21135513,"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":["metrics","rust","statsd","udp"],"created_at":"2025-01-22T17:16:27.604Z","updated_at":"2025-04-12T19:46:12.910Z","avatar_url":"https://github.com/56quarters.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Cadence\n\n[![build status](https://circleci.com/gh/56quarters/cadence.svg?style=shield)](https://circleci.com/gh/56quarters/cadence)\n[![docs.rs](https://docs.rs/cadence/badge.svg)](https://docs.rs/cadence/)\n[![crates.io](https://img.shields.io/crates/v/cadence.svg)](https://crates.io/crates/cadence/)\n[![Rust 1.60+](https://img.shields.io/badge/rust-1.60+-lightgray.svg)](https://www.rust-lang.org)\n\n[Cadence Documentation](https://docs.rs/cadence/)\n\n[Macros Documentation](https://docs.rs/cadence-macros/)\n\nAn extensible Statsd client for Rust!\n\nCadence is a fast and flexible way to emit Statsd metrics from your application.\n\n## Features\n\n* [Support](https://docs.rs/cadence/) for emitting counters, timers, histograms, distributions,\n  gauges, meters, and sets to Statsd over UDP (or optionally Unix sockets).\n* Support for alternate backends via the `MetricSink` trait.\n* Support for [Datadog](https://docs.datadoghq.com/developers/dogstatsd/) style metrics tags and extensions.\n* [Macros](https://docs.rs/cadence-macros/) to simplify common calls to emit metrics\n* A simple yet flexible API for sending metrics.\n\n## Usage\n\nAn example of how to use Cadence for maximum performance is given below. For many more examples\nand advanced use cases, see the [`cadence`](cadence) crate or the [documentation](https://docs.rs/cadence/).\n\n```rust\nuse std::net::UdpSocket;\nuse cadence::prelude::*;\nuse cadence::{StatsdClient, QueuingMetricSink, BufferedUdpMetricSink, DEFAULT_PORT};\n\nlet socket = UdpSocket::bind(\"0.0.0.0:0\").unwrap();\nsocket.set_nonblocking(true).unwrap();\n\nlet host = (\"metrics.example.com\", DEFAULT_PORT);\nlet udp_sink = BufferedUdpMetricSink::from(host, socket).unwrap();\nlet queuing_sink = QueuingMetricSink::from(udp_sink);\nlet client = StatsdClient::from_sink(\"my.prefix\", queuing_sink);\n\nclient.count(\"my.counter.thing\", 29);\nclient.time(\"my.service.call\", 214);\n```\n\n## Project layout\n\nThe [`cadence`](cadence) crate contains the Statsd client and primary API of Cadence. The\n[`cadence-macros`](cadence-macros) crate contains optional  macros that can simplify use of\nthe Cadence API.\n\n* [`cadence`](cadence): Statsd client and primary API\n* [`cadence-macros`](cadence-macros): Optional convenience macros\n\n## Documentation\n\nThe documentation is available at https://docs.rs/cadence/ or https://docs.rs/cadence-macros/\n\n## Source\n\nThe source code is available on GitHub at https://github.com/56quarters/cadence\n\n## Changes\n\nRelease notes for Cadence can be found in the [CHANGES.md](CHANGES.md) file.\n\n## Development\n\nCadence uses Cargo for performing various development tasks.\n\nTo build Cadence:\n\n```\n$ cargo build\n```\n\nTo run tests:\n\n```\n$ cargo test\n```\n\nor:\n\n```\n$ cargo test -- --ignored\n```\n\nTo run benchmarks:\n\n```\n$ cargo bench\n```\n\nTo build documentation:\n\n```\n$ cargo doc\n```\n\n## License\n\nCadence is licensed under either of\n\n* Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0)\n* MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT)\n\nat your option.\n\nExample code in Cadence (`cadence/examples` or `cadence-macros/examples`) is available under the CC0 Public Domain\nDedication ([LICENSE-CC0](cadence/examples/LICENSE-CC0) or\nhttps://creativecommons.org/share-your-work/public-domain/cc0/).\n\n### Contribution\n\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you shall be dual licensed as above, without any\nadditional terms or conditions.\n\n## Language Support\n\nCadence (latest master) supports building with a range of `1.60+` versions.\n\n### Guaranteed to Build\n\nThe latest version of Cadence is tested against and will always build\ncorrectly with\n\n* The current `stable` version.\n* The previous two stable versions, `stable - 1` and `stable - 2`.\n\n### Best Effort Build\n\nThe latest version of Cadence is tested against and will *usually* build\ncorrectly with\n\n* The next two oldest stable versions, `stable - 3` and `stable - 4`.\n\nSupport for these versions may be dropped for a release in order to take\nadvantage of a feature available in newer versions of Rust.\n\n### Known to Work\n\n* Stable versions as far back as `1.41` are known to work with Cadence\n  `0.26.0` through `0.29.0`.\n\n* Stable versions as far back as `1.36` are known to work with Cadence\n  `0.21.0` through `0.25.0`. \n\n* Stable versions as far back as `1.34` are known to work with Cadence\n  `0.20.0`.\n\n* Stable versions as far back as `1.32` are known to work with Cadence\n  `0.19.0`.\n\n* Stable versions as far back as `1.31` are known to work with Cadence\n  `0.18.0`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F56quarters%2Fcadence","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F56quarters%2Fcadence","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F56quarters%2Fcadence/lists"}