docs: add guides for errors/retries, keys and sessions, and large uploads
メンテナーはふだん 1 日以内に返信
@ffumero2003 がすでに取り組んでいます。
2026年11月8日 から。
評価
この issue はまだ評価されていません。
説明
Context
The README covers errors, retries, keys/sessions and large/resumable uploads in roughly one line each; backblaze.com/docs has no error/retry guide for the SDKs. Two extension points are also undocumented: blazer accepts a custom transport (b2.Transport(http.RoundTripper), b2/b2.go:158) but the README never mentions it, and blazer's debug logging has no "how to turn it on" doc. (Both gaps surfaced by comparing against the Vercel SDK's docs, which document Retries, Error Handling, Custom HTTP Client and Debugging as standard sections.)
Acceptance criteria
- R1. Every code sample compiles; wording matches behavior.
- R2. The transport section shows a working
b2.Transport(...)example; the debugging section shows how to enable request logging.
In scope
Add repo guides, linked from the README:
- Errors and retries: how to check for not-found (and the unwrappable-error helpers), what blazer retries, how
Retry-Afteris applied, and that a retry can create a duplicate version; one example. List the error types/helpers (the "error classes" idea). - Keys and sessions: minimal keys and session persistence via
WithAccountInfo. - Large and resumable uploads: part splitting, resume, and
Compose. - Custom HTTP client / transport: how to supply your own
http.RoundTripperviab2.Transport(...)for timeouts, a proxy, or tracing/instrumentation, and how it composes with blazer's retries. - Debugging / request logging: how to see requests and responses (the debug logging / caller logger, see #173), and what is redacted.
Use the Vercel SDK section layout as a template (Retries → Error Handling → Custom HTTP Client → Debugging). Keep every section consistent with shipped behavior (the error-wrapping, Retry-After and upload-retry work). Offer the errors-and-retries text to the docs team afterward.
Out of scope
- Unrelated work outside the components and behavior described in In scope.
Verification
git diff --check
- Compile the documented examples, including the custom-transport and logging examples, and record their exact build/test commands.
- Cross-check error/retry, key/session, upload/resume, and logging statements against shipped behavior. Keep external docs-team coordination explicit rather than claiming it happened.
- Expected result: the checks above succeed and the observable outcomes in Acceptance criteria are demonstrated. If a check cannot run, report
Could not run because: ...; if it starts but fails, reportCould not complete because: .... A skipped check is not a pass.
Links
-
Related issues and pull requests referenced above: #173.
- 主要言語
- Go
- スター
- 66
- フォーク
- 18
- 平均マージ
- 1日 10時間
- マージ済み PR(30日)
- 132
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Backblaze/blazer のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
Bucket.Attrs never returns ReplicationConfig: replication configuration is write-only再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
test: skip the fuzz non-vacuity guard when replaying a single seed対応中かも @ffumero2003 が 5 日前に担当しました。 オープンtesting
Backblaze/blazer#330 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
Backblaze/blazer の issue をすべて見る
似ている issue
-
needs-triage typo
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
llm-d-incubation/llm-d-scaling-manager#122 ·
メンテナーはふだん 1 日以内に返信
-
good first issue severity: low tech-debt
難易度 2/5 半日 初心者へのやさしさ 75/100
TMHSDigital/subenum#329 ·
メンテナーはふだん 1 日以内に返信
-
[Bug] Backend summarize min() / max() panics when a field has no numeric values対応中かも @weng5e が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
grafana/grafana-infinity-datasource#1832 ·
メンテナーはふだん 1 日以内に返信
-
tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
GillMacedo/godebugdiff#13 ·