feat: Sentry を撤去し OpenTelemetry + Pyroscope へ移行する - #239
Merged
Conversation
- cargo-chefイメージをrust 1.87から1.97.1に更新 (rust-toolchain.tomlと同期)。 sentry 0.48.5やtime 0.3.47がrustc 1.88以上を要求するため、2026-04-10以降 Build and releaseワークフローが失敗し続けていた - 実行ステージのubuntu:24.04 (glibc 2.39) でバイナリが動くよう、 デフォルトのtrixie (glibc 2.41) ではなくbookworm variantを明示指定 - mariadb_repo_setupのsha256をMariaDB公式の現行版 (2026-06-30) に更新 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
旧 Sentry (sentry.onp.admin.seichi.click) は配信面が撤去済みで (GiganticMinecraft/seichi_infra#5613)、ハードコードされた DSN への 送信は既に到達不能だった。seichi-portal-backend と同じ観測スタックへ移行する: - OTel トレーシング: OTLP http/protobuf、OTEL_* 環境変数で設定。 OTEL_EXPORTER_OTLP_ENDPOINT 未設定 / OTEL_SDK_DISABLED=true なら無効 - HTTP サーバースパン: axum-tracing-opentelemetry (Sentry の tower layer を置換) - stdout ログ: 本番は 1 行 JSON + OTel trace_id 注入 (json-subscriber)。 panic hook が panic=true / level=ERROR を付ける (seichi_infra の LogQL ルールとの契約。portal-backend の panic_hook.rs と同一) - handler 内 panic は CatchPanicLayer で 500 を返しつつ hook がログに残す - 継続プロファイリング: Pyroscope への push (pyroscope crate、 PYROSCOPE_SERVER_ADDRESS 未設定なら無効) telemetry / logging / panic_hook は seichi-portal-backend の実装 (レビュー済み) の移植。 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
GiganticMinecraft/seichi_infra#5613 (Bugsink と旧 Sentry の完全撤去) の先行移行です。旧 Sentry (
sentry.onp.admin.seichi.click) は配信面が撤去済みで、ハードコードされた DSN への送信は既に到達不能でした。seichi-portal-backend で確立した観測スタックへ移行します。変更内容
sentry::integrations::towerの HTTP transactionsentry::integrations::tracingのイベント送信panic=true/level=ERRORを出力 (seichi_infra の LogQL ルール `PYROSCOPE_SERVER_ADDRESS設定時のみ)telemetry.rs/logging.rs/panic_hook.rsは seichi-portal-backend のレビュー済み実装の移植 (service 名のみ変更)ENV_NAME未設定時に JSON がデフォルトです (本番で env 供給前でも JSON になる安全側の挙動)。ローカルで pretty にするにはENV_NAME=localかLOG_FORMAT=prettyを指定してください検証
cargo check/cargo clippy警告ゼロ🤖 Generated with Claude Code