google-cloud-trace does not work with rails 7 #17988
Labels
api: cloudtrace
Issues related to the Cloud Trace API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Environment details
Steps to reproduce
grpc log shows that the library sends invalid traces.
It seems that rails 7 introduced a braking change of
ActiveSupport::Notifications::Event
. Particularly, time from active support events are unix timestamp in millisecond, but google-cloud-trace assumes seconds.Process.clock_gettime
uses rails/rails#43502google-cloud-ruby/google-cloud-trace/lib/google/cloud/trace/utils.rb
Line 35 in c8369f1
Thanks.
Code example
N/A.
Full backtrace
N/A.
The text was updated successfully, but these errors were encountered: