Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`cf workers logs <worker> --since`: historical logs without a hand-built telemetry query body

オープン
#172 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 の本文から書いたものです。

説明

upstream

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

cloudflare/cf のほかの issue

cloudflare/cf の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。