Skip to content

Ruby telemetry: a bare logger.info / @logger.warn never fires (rule needs an identifier prefix before 'logger') #9437

Backlog

Description

@squid-protocol

SOP-002-v1 gap-cell decoy suite (epic #8863), Ruby batch.

False negative. Ruby telemetry never fires on the most common logger call, a bare logger.info(msg) or @logger.warn(msg). The third branch is [ID_START][ID_CONTINUE]*logger\.(?:debug|info|...), which needs at least one identifier character before the word logger, so only app_logger.info (or Rails.logger.info, SemanticLogger.info, Logger.new.info) fire.

logger.info(message)    # expected >= 1, actual 0
@logger.warn(message)   # expected >= 1, actual 0

Pinned by strict xfail in tests/decoys/test_decoy_ruby.py.

Activity

  1. added
    bug
    on Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions