{"id":15023248,"url":"https://github.com/intgr/rocket-sentry","last_synced_at":"2026-05-02T02:04:28.347Z","repository":{"id":36363991,"uuid":"223815843","full_name":"intgr/rocket-sentry","owner":"intgr","description":"Simplifies integration between the Rocket web framework and Sentry application monitoring system.","archived":false,"fork":false,"pushed_at":"2026-03-10T18:19:07.000Z","size":102,"stargazers_count":9,"open_issues_count":3,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-22T05:09:28.114Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","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/intgr.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-11-24T21:54:05.000Z","updated_at":"2026-03-10T18:17:58.000Z","dependencies_parsed_at":"2024-01-18T03:45:04.029Z","dependency_job_id":"145b9599-927d-4ecf-9eac-4e34c59bc73a","html_url":"https://github.com/intgr/rocket-sentry","commit_stats":{"total_commits":66,"total_committers":6,"mean_commits":11.0,"dds":0.3939393939393939,"last_synced_commit":"7583934ff90ca16a7e6eb701ab7f03e6ea235efd"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"purl":"pkg:github/intgr/rocket-sentry","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intgr%2Frocket-sentry","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intgr%2Frocket-sentry/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intgr%2Frocket-sentry/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intgr%2Frocket-sentry/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/intgr","download_url":"https://codeload.github.com/intgr/rocket-sentry/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intgr%2Frocket-sentry/sbom","scorecard":{"id":491704,"data":{"date":"2025-08-11","repo":{"name":"github.com/intgr/rocket-sentry","commit":"3c450073df3a99612135c5386f0bd3dfcd86449e"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.9,"checks":[{"name":"Code-Review","score":1,"reason":"Found 2/12 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":10,"reason":"12 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-plz.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/intgr/rocket-sentry/release-plz.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-plz.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/intgr/rocket-sentry/release-plz.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-plz.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/intgr/rocket-sentry/release-plz.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/intgr/rocket-sentry/tests.yml/main?enable=pin","Warn: containerImage not pinned by hash: varia/Dockerfile.tests:3","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: topLevel 'contents' permission set to 'write': .github/workflows/release-plz.yml:5","Warn: no topLevel permission defined: .github/workflows/tests.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 29 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-19T19:20:12.913Z","repository_id":36363991,"created_at":"2025-08-19T19:20:12.913Z","updated_at":"2025-08-19T19:20:12.913Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32520155,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-02T01:12:54.858Z","status":"online","status_checked_at":"2026-05-02T02:00:05.923Z","response_time":132,"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":"2024-09-24T19:58:52.472Z","updated_at":"2026-05-02T02:04:28.310Z","avatar_url":"https://github.com/intgr.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Rocket Sentry\n=============\n\n[![Crates.io version](https://img.shields.io/crates/v/rocket-sentry.svg)](https://crates.io/crates/rocket-sentry)\n[![Documentation](https://docs.rs/rocket-sentry/badge.svg)](https://docs.rs/rocket-sentry/)\n[![Tests status](https://github.com/intgr/rocket-sentry/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/intgr/rocket-sentry/actions/workflows/tests.yml)\n[![Changelog](https://img.shields.io/badge/Changelog-f15d30.svg)](https://github.com/intgr/rocket-sentry/blob/main/CHANGELOG.md)\n\n`rocket-sentry` is a simple add-on for the **Rocket** web framework to simplify\nintegration with the **Sentry** application monitoring system.\n\nOr maybe...\n\n\u003e \"The Rocket Sentry is a static rocket-firing gun platform that is based on a\n\u003e Personality Construct and used in the Aperture Science Enrichment Center.\"\n\u003e\n\u003e -- [Half-Life wiki](https://half-life.fandom.com/wiki/Rocket_Sentry)\n\nFeatures\n--------\n\nCurrently `rocket-sentry` includes two integrations:\n\n* **Rust panic handler:** when a panic happens, it is reported as a Sentry event.\n* **Performance Monitoring:** HTTP requests are reported as [Transactions](https://docs.sentry.io/product/performance/transaction-summary/),\n  if the `sentry_traces_sample_rate` setting is configured or `traces_sampler` callback is provided (see example below).\n\n  Transactions currently include the following fields:\n  - [X] HTTP method\n  - [X] GET query string\n  - [X] headers\n  - [X] environment name (based on Rocket configuration profile)\n  - [ ] POST data\n  - [ ] cookies\n  - [ ] URL\n\nPull requests welcome!\n\nUsage\n-----\n\n`rocket-sentry` can be configured via `Rocket.toml` (`sentry_dsn=`) or\nenvironment variable `ROCKET_SENTRY_DSN`.\n\nTo use this, add the dependency to your `Cargo.toml`, and add the fairing\nto your code:\n\n```rust\nuse rocket_sentry::RocketSentry;\n\n#[launch]\nfn rocket() -\u003e _ {\n    rocket::build()\n        .attach(RocketSentry::fairing())\n        // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   add this line\n}\n```\n\nThen, the Sentry integration can be enabled by adding a `sentry_dsn=` value to\nthe `Rocket.toml` file, for example:\n\n```toml\n[debug]\nsentry_dsn = \"\"  # Disabled\n[release]\nsentry_dsn = \"https://057006d7dfe5fff0fbed461cfca5f757@sentry.io/1111111\"\nsentry_traces_sample_rate = 0.2  # 20% of requests will be logged under the performance tab\n```\n\n### Performance Monitoring\n\n`traces_sampler` can be used instead of `sentry_traces_sample_rate` to have a more granular control over performance monitoring,\n[see Sentry documentation](https://docs.sentry.io/platforms/rust/configuration/sampling/#configuring-the-transaction-sample-rate).\n```rust\nuse rocket_sentry::RocketSentry;\n\n#[launch]\nfn rocket() -\u003e _ {\n    let traces_sampler = move |ctx: \u0026TransactionContext| -\u003e f32 {\n        match ctx.name() {\n            \"GET /specific/path/1\" | \"GET /specific/path/2\" =\u003e 0.,  // Drop the performance transaction\n            _ =\u003e 1.,\n        }\n    };\n    rocket::build()\n        .attach(RocketSentry::builder().traces_sampler(Arc::new(traces_sampler)).build());\n}\n```\nSee [a more advanced example](examples/performance.rs).\n\nTesting\n-------\n\nThe functionality can be tested with the `examples/panic.rs` example. Just\nchange the `Rocket.toml` file and run it...\n\n```shell script\ncargo run --example panic\n```\n\nThen try accessing this URL:\nhttp://localhost:8012/panic?msg=Is+it+time+to+panic+yet?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintgr%2Frocket-sentry","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintgr%2Frocket-sentry","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintgr%2Frocket-sentry/lists"}