# File src/ruby_supportlib/phusion_passenger/vendor/union_station_hooks_core/lib/union_station_hooks_core/request_reporter.rb, line 105
    def initialize(context, txn_id, app_group_name, key)
      raise ArgumentError, 'Transaction ID must be given' if txn_id.nil?
      raise ArgumentError, 'App group name must be given' if app_group_name.nil?
      raise ArgumentError, 'Union Station key must be given' if key.nil?
      @context = context
      @txn_id = txn_id
      @app_group_name = app_group_name
      @key = key
      @transaction = continue_transaction
      @next_view_rendering_number = 1
      @next_user_activity_number = 1
      @next_benchmark_number = 1
      @next_database_query_number = 1
    end