{"id":21458949,"url":"https://github.com/max-te/runtime-otel-rs","last_synced_at":"2026-02-07T23:34:15.140Z","repository":{"id":234699156,"uuid":"780593820","full_name":"max-te/runtime-otel-rs","owner":"max-te","description":"(Experimental) Register runtime metrics in opentelemetry","archived":false,"fork":false,"pushed_at":"2024-06-09T19:46:36.000Z","size":17,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-01T20:56:24.069Z","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":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/max-te.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.Apache2","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":"2024-04-01T19:50:55.000Z","updated_at":"2024-10-16T07:16:17.000Z","dependencies_parsed_at":"2025-04-06T18:49:56.664Z","dependency_job_id":"524ebce5-8abe-4288-9ecb-a9010181c5b4","html_url":"https://github.com/max-te/runtime-otel-rs","commit_stats":null,"previous_names":["max-te/runtime-otel-rs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/max-te/runtime-otel-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-te%2Fruntime-otel-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-te%2Fruntime-otel-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-te%2Fruntime-otel-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-te%2Fruntime-otel-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/max-te","download_url":"https://codeload.github.com/max-te/runtime-otel-rs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/max-te%2Fruntime-otel-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29212697,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-07T23:14:30.912Z","status":"ssl_error","status_checked_at":"2026-02-07T23:14:17.253Z","response_time":63,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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-11-23T06:25:30.787Z","updated_at":"2026-02-07T23:34:15.121Z","avatar_url":"https://github.com/max-te.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# runtime-otel-metrics\n\nruntime-otel-metrics is an experimental crate that enables you to meter your tokio runtime and memory usage with [OpenTelemetry](https://crates.io/crates/opentelemetry).\nFor tokio metrics it leans on [tokio's unstable runtime metrics](https://docs.rs/tokio/latest/tokio/runtime/struct.RuntimeMetrics.html).\nFor memory usage we use the [memory-stats](https://crates.io/crates/memory-stats) crate.\n\n## Usage\n\nTo use the `tokio` feature, you must compile with the rustc flag `--cfg tokio_unstable`.\n\n```rust\n// Register Tokio metrics with OpenTelemetry\nruntime_otel_metrics::tokio_rt::register_tokio_metrics(\n    tokio::runtime::Handle::current(),\n    \u0026opentelemetry::global::meter(\"tokio\"),\n)?;\n\n// Register memory metrics\nruntime_otel_metrics::memory::register(\u0026opentelemetry::global::meter(\"memory\"))?;\n```\n\n## Similar crates\n\n- [tokio-metrics-collector](https://crates.io/crates/tokio-metrics-collector)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax-te%2Fruntime-otel-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmax-te%2Fruntime-otel-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmax-te%2Fruntime-otel-rs/lists"}