ruby / ruby/tracer

Make `Tracer.trace` support an optional second argument for ivar

Open
#17 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Ruby
Stars
95
Forks
8
PR merge metrics
No merged PRs in 30d

Description

In #16 IvarTracer was added, which also targets a specific object. So instead of introducing another Tracer method for it, perhaps we can extend Tracer.trace instead:

Tracer.trace(obj) # => uses ObjectTracer
Tracer.trace(obj, :@ivar) # => uses IvarTracer

(This idea was provided by @KaanOzkan)

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the existing Tracer.trace entry point and the ObjectTracer and IvarTracer implementations referenced in the issue. Check how current tracing behavior is tested, then verify that Tracer.trace(obj) retains ObjectTracer behavior and Tracer.trace(obj, :@ivar) selects IvarTracer for the requested instance variable.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.