@@ -9,7 +9,7 @@ module Rust
99 extend FFI ::Library
1010 ffi_lib File . expand_path ( File . dirname ( __FILE__ ) ) + "/rbspy/rbspy.#{ RbConfig ::CONFIG [ "DLEXT" ] } "
1111 attach_function :initialize_logging , [ :int ] , :bool
12- attach_function :initialize_agent , [ :string , :string , :string , :int , :bool , :bool , :bool , :bool , :string , :string , :string , :string , :string ] , :bool
12+ attach_function :initialize_agent , [ :string , :string , :string , :string , :string , : int, :bool , :bool , :bool , :bool , :string , :string , :string , :string , :string ] , :bool
1313 attach_function :add_thread_tag , [ :uint64 , :string , :string ] , :bool
1414 attach_function :remove_thread_tag , [ :uint64 , :string , :string ] , :bool
1515 attach_function :add_global_tag , [ :string , :string ] , :bool
@@ -38,6 +38,8 @@ class Engine < ::Rails::Engine
3838 :app_name ,
3939 :server_address ,
4040 :auth_token ,
41+ :basic_auth_username ,
42+ :basic_auth_password ,
4143 :log_level ,
4244 :sample_rate ,
4345 :detect_subprocesses ,
@@ -57,6 +59,8 @@ def initialize(*)
5759 self . application_name = ''
5860 self . server_address = 'http://localhost:4040'
5961 self . auth_token = ''
62+ self . basic_auth_username = ''
63+ self . basic_auth_password = ''
6064 self . sample_rate = 100
6165 self . detect_subprocesses = false
6266 self . oncpu = true
@@ -106,6 +110,8 @@ def configure
106110 @config . app_name || @config . application_name || "" ,
107111 @config . server_address || "" ,
108112 @config . auth_token || "" ,
113+ @config . basic_auth_username || "" ,
114+ @config . basic_auth_password || "" ,
109115 @config . sample_rate || 100 ,
110116 @config . detect_subprocesses || false ,
111117 @config . oncpu || false ,
0 commit comments