You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SymDB remote: route diagnostics through component.logger
#5717 used Datadog.logger directly in Remote.process_change /
enable_upload / disable_upload / parse_config — a Component Pattern
violation, since the component was in scope at every call site and
the logger was the dependency that should have been used.
- Expose Component#logger via attr_reader (and update the RBS).
- Replace Datadog.logger with component.logger in the four sites where
component is available. The receiver-block fallback at remote.rb:48
keeps Datadog.logger because the component lookup itself may return
nil there.
- Thread the logger explicitly through parse_config(content, logger)
rather than relying on a global.
- Update the RBS for parse_config and remote_spec.rb's parse_config /
component test doubles.
Also adds a justification comment to the remote.rb:106 # steep:ignore
NoMethod directive, matching the pattern already used at line 113.
0 commit comments