Telemetry follow-up: tier 2, endpoint hardening, retention
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 活発
- 技術スタック
- docker, python
調査の方向性
Read related issues #1106 and #1200, then inspect the /telemetry endpoint and carbonserver/docker/entrypoint.sh, especially its proxy-header configuration. Resolve the open tier-2 publication and token questions, choose an endpoint-hardening approach, define retention and its purge job, and replace the schema drift approach with one-way generation.
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
#1200 ships a reduced version of the telemetry proposed in #1106: only the minimal tier, sent once per process to an open /telemetry endpoint, with no API token and no coordinates. This issue tracks what was left out so #1200 could stay small.
Describe the solution you'd like
- Tier 2 (
extensive). Reintroduce the usage fields from #1106 (integration, output methods, notebook/IDE/CI detection, energy and emissions summary). Open questions: are the fields sent to/telemetryonly, or also published as runs and emissions in a public CodeCarbon experiment, as #1106 proposed? The second needs a write token, and a token shipped in an open-source package is public, so it must only be able to write to that one experiment. - Endpoint hardening. The in-process per-IP limit on
/telemetry(60 requests per minute) can be bypassed: uvicorn runs with--proxy-headers --forwarded-allow-ips=*(carbonserver/docker/entrypoint.sh), so a client can set its ownX-Forwarded-For. It is also per process. Options: trust only the load balancer's addresses, or rate-limit at the proxy. - Retention. Decide how long telemetry rows are kept, document it, and add the purge job.
- Schema generation. Generate the server schema from the client one (or the reverse) instead of relying on the drift test.
Describe alternatives you've considered
Keeping tier 2 in #1200. Dropped to get the minimal tier reviewed and deployed first.
Additional context
Related: #1106 (original proposal), #1200 (minimal tier).
- 主要言語
- Python
- スター
- 1.9k
- フォーク
- 351
- 平均マージ
- 3日 12時間
- マージ済み PR(30日)
- 22
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
mlco2/codecarbon のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
mlco2/codecarbon#1460 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
CLI: get_config() returns None without [codecarbon] section; get_api_endpoint() appends api_endpoint under wrong section対応中かも @sohammishra864-wq が 38 日前に担当しました。 オープン
難易度 2/5 半日 初心者へのやさしさ 82/100
mlco2/codecarbon#1432 ·
メンテナーはふだん 1 日以内に返信
-
Update the screen shot of the dashboard対応中かも @KLGani が 13 日前に担当しました。 オープンdocumentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
mlco2/codecarbon#1423 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
OfflineEmissionsTracker silently returns a half-built object when construction fails対応中かも @davidberenstein1957 が 86 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
mlco2/codecarbon#1311 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
mlco2/codecarbon#1428 ·
メンテナーはふだん 1 日以内に返信
mlco2/codecarbon の issue をすべて見る
似ている issue
-
Remove the `pull_request_target` workflow before GitHub blocks it対応中かも @jat255 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
IBM/mcp-context-forge#7483 ·
メンテナーはふだん 2 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
[Bug Report]: OpenAI 辅助 API 连通性测试因输出上限仅 1 token 误报“未知错误”対応中かも @fjfanjian が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
Project-N-E-K-O/N.E.K.O#3640 ·
メンテナーはふだん 1 日以内に返信
-
author-page correction
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
acl-org/acl-anthology#10808 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信