`cf workers logs <worker> --since`: historical logs without a hand-built telemetry query body
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 53/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- cli
調査の方向性
Start by reading the existing cf workers commands and cf observability telemetry query entry point to understand how worker selection and telemetry queries are handled. Implement the requested historical-log command and options, then verify it prints the specified event fields, supports the requested filters and output modes, and reports when there are no events and whether observability is enabled.
索引モデルが issue の本文から書いたものです。
説明
Version: cf 1.0.0-beta.10
Problem: Reading a Worker's recent logs from the terminal requires building a raw Observability query body by hand:
cf observability telemetry query --view events --body '{"queryId":"adhoc","view":"events","limit":50,"timeframe":{"from":<ms>,"to":<ms>},"parameters":{"filters":[{"key":"$workers.scriptName","operation":"eq","type":"string","value":"<worker>"}]}}'
Leave out queryId and the request fails. Timestamps are epoch milliseconds. The script-name filter key isn't discoverable from --help.
(#68 covers live tail. This issue is about historical logs.)
Request: a convenience command, for example
cf workers logs <worker> --since 15m [--until ...] [--search "text"] [--event-type scheduled|fetch] [--limit 50] [--json]
It would print one line per event (timestamp, event type, outcome, message), with relative time ranges and no hand-made queryId. A useful extra: when there are zero events, say so explicitly and say whether observability is enabled for the Worker.
- 主要言語
- TypeScript
- スター
- 916
- フォーク
- 53
- 平均マージ
- 18時間 26分
- マージ済み PR(30日)
- 177
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
cloudflare/cf のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
cloudflare/cf#344 ·
メンテナーはふだん 1 日以内に返信
-
upstream
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
cloudflare/cf#262 ·
メンテナーはふだん 1 日以内に返信
-
`cf dev` rejects `--port` and `--host` for Vite projects, including the `cf init` template対応中かも @jamesopstad が 9 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
cloudflare/cf#223 · 担当者 2 名 ·
メンテナーはふだん 1 日以内に返信
-
upstream
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
cloudflare/cf#179 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
cloudflare/cf#380 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
kunchenguid/gh-axi#220 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
prerender: wait for env-runner worker readiness before crawling対応中かも @sarankumar1325 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信