File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 2222
2323 If you were using the ` SpanProcessor ` before, we recommend migrating over to ` config.otlp ` since it's a much simpler setup.
2424
25+ ### Bug Fixes
26+
27+ - Fix ` MetricEvent ` timestamp serialization to float ([ #2862 ] ( https://github.com/getsentry/sentry-ruby/pull/2862 ) )
28+
2529## 6.3.1
2630
2731### Bug Fixes
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ def to_h
3333 type : @type ,
3434 value : @value ,
3535 unit : @unit ,
36- timestamp : @timestamp ,
36+ timestamp : @timestamp . to_f ,
3737 trace_id : @trace_id ,
3838 span_id : @span_id ,
3939 attributes : serialize_attributes
Original file line number Diff line number Diff line change 5959 expect ( hash [ :type ] ) . to eq ( :distribution )
6060 expect ( hash [ :value ] ) . to eq ( 5.0 )
6161 expect ( hash [ :unit ] ) . to eq ( "seconds" )
62- expect ( hash [ :timestamp ] ) . to be_a ( Time )
62+ expect ( hash [ :timestamp ] ) . to be_a ( Float )
6363 end
6464
6565 it "includes trace info if provided" do
You can’t perform that action at this time.
0 commit comments