class Sentry::Rails::Tracing::ActiveStorageSubscriber

def self.subscribe!

def self.subscribe!
  subscribe_to_event(EVENT_NAMES) do |event_name, duration, payload|
    record_on_current_span(op: "file.#{event_name}".freeze, start_timestamp: payload[START_TIMESTAMP_NAME], description: payload[:service], duration: duration) do |span|
      payload.each do |key, value|
        span.set_data(key, value) unless key == START_TIMESTAMP_NAME
      end
    end
  end
end