Skip to content

Commit

Permalink
[Bugfix] influxdata#173 'invalid number' error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Karoid committed Oct 31, 2023
1 parent fbff61d commit 0b0a3bd
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lib/influxdb/rails/middleware/request_subscriber.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,10 @@ def fields
controller: duration,
view: (payload[:view_runtime] || 0).ceil,
db: (payload[:db_runtime] || 0).ceil,
started: start.utc,
started: start.to_i,
}
end

def started
InfluxDB.convert_timestamp(
start.utc,
configuration.client.time_precision
)
end

def status
if payload[:exception] && ::Rails::VERSION::MAJOR < 7
ActionDispatch::ExceptionWrapper.status_code_for_exception(payload[:exception].first)
Expand Down

0 comments on commit 0b0a3bd

Please sign in to comment.