Issue #10589 has been reported by David Rodrguez.

----------------------------------------
Feature #10589: [TracePoint API] Make THREAD_{BEGIN, END} events return some context information
https://bugs.ruby-lang.org/issues/10589

* Author: David Rodrguez
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
----------------------------------------
Currently the :thread_begin and thread_end events return no context information at all

    TracePoint.trace(:thread_begin, :thread_end) do |tp|
      puts "#{tp.defined_class}::#{tp.method_id}@#{tp.path}:#{tp.lineno}"
    end

    t = Thread.new do
      sleep 1
    end

    t.join

prints just

    "Hi thread, ::@:0"
    "Bye thread, ::@:0"

It'd be nice if they gave at least some file:line context information aboutthe thread.

What do you think, @ko1? Would this be possible?

Thanks a lot



-- 
https://bugs.ruby-lang.org/