Ruby/Rails logs onboarding suggests removed enable_logs
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 82/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- rails, react, ruby, typescript
调研方向
从 static/app/gettingStartedDocs/ruby-rails/onboarding.tsx、ruby/onboarding.tsx 和 ruby/logs.tsx 开始,将它们的代码片段与 sentry-ruby 7.x 的行为进行比较。移除关于 config.enable_logs = true 的指引,并根据 7.0.0/7.1.0 的变更更新版本说明和结构化日志指引。完成的标准是:Ruby 和 Rails 的 onboarding 代码片段不再显示已移除的选项,且日志相关文案反映当前 7.x 的设置方式。
由索引模型根据 Issue 内容生成。
描述
The Ruby and Rails onboarding snippets tell users to set config.enable_logs = true. sentry-ruby removed that option in 7.0.0, so on current SDK versions (7.x, latest 7.2.0) the snippet raises NoMethodError in Sentry.init. Reported by a customer setting up Rails with sentry-ruby 7.2.0.
Affected onboarding code (pinned to f182595):
ruby-rails/onboarding.tsxL24–30: added when Logs is selectedruby/onboarding.tsxL22–28: same snippet for plain Rubyruby/logs.tsxL22–68: logs onboarding used by Ruby and Rails. The copy says to setenable_logs, the sample sets it, and the version note only mentions5.24.0 or higher
SDK changes behind this:
- 7.0.0, getsentry/sentry-ruby#3053: logs are enabled by default and
enable_logsis removed. No compatibility shim remains - 7.1.0, getsentry/sentry-ruby#3102: Rails structured logging is off by default. Turn it on with
config.rails.structured_logging.enabled = true
Workaround: drop the config.enable_logs = true line.
Open question: whether config.enabled_patches = [:logger] is still the recommended setup on 7.x.
cc @getsentry/value-discovery (CODEOWNERS for gettingStartedDocs) @sl0thentr0py (sentry-ruby)
via @danielsheccoury-sentry.
--
- 主要语言
- Python
- 星标
- 45.7k
- 派生
- 5k
- 平均合并
- 1 天 1 小时
- 30 天内合并 PR
- 642
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getsentry/sentry 的其他 Issue
-
find_referenced_groups: Fixes-keyword ID list spans newlines, linking wrong issues as fixed可能已有人在做 @CodeAlex52 于 42 天前认领。 未关闭Product Area: Releases Waiting for: Product Owner
难度 2/5 1-3 小时 新手友好度 86/100
getsentry/sentry#125575 · 3 条评论 ·
维护者通常 1 天内回复
-
Cocoa replays hide Logs tab on supported SDK versions可能已有人在做 @Brian-An 于 32 天前认领。 未关闭Bug Cocoa Replays
难度 2/5 1-3 小时 新手友好度 82/100
getsentry/sentry#124217 · 1 条评论 ·
维护者通常 1 天内回复
-
Product Area: Settings - Auth Waiting for: Product Owner
难度 2/5 1-3 小时 新手友好度 86/100
getsentry/sentry#122437 · 6 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
Incorrect Russian translation in django.po可能已有人在做 @nightcityblade 于 28 天前认领。 未关闭Bug Good First Issue Product Area: Settings - Integrations
难度 1/5 1 小时以内 新手友好度 90/100
getsentry/sentry#120651 · 3 条评论 ·
维护者通常 1 天内回复
-
Product Area: Other Waiting for: Product Owner
难度 1/5 1-3 小时 新手友好度 68/100
getsentry/sentry#118618 · 3 条评论 ·
维护者通常 1 天内回复
相似的 Issue
-
release
难度 2/5 1-3 小时 新手友好度 76/100
MichaelYcJo/SpecSeal#1535 ·
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
valentinfrlch/ha-llmvision#769 ·
维护者通常 1 天内回复
-
bug
难度 1/5 1 小时以内 新手友好度 75/100
daniel-ospina/tortoise#11937 · 1 条评论 ·
维护者通常 1 天内回复
-
good first issue help wanted python up-for-grabs
难度 2/5 1-3 小时 新手友好度 82/100
andrewsiah/agentswarm-data-tasks#238 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
cadence-workflow/cadence-ai-samples#175 ·
维护者通常 1 天内回复