Module: Appsignal::Extension::Jruby Private
- Extended by:
- FFI::Library
- Includes:
- StringHelpers
- Included in:
- Appsignal::Extension
- Defined in:
- lib/appsignal/extension/jruby.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
JRuby extension wrapper
Only loaded if the system is detected as JRuby.
Defined Under Namespace
Modules: StringHelpers Classes: Data, Transaction
Class Method Summary collapse
- .lib_extension ⇒ Object private
Instance Method Summary collapse
- #add_distribution_value(key, value, tags) ⇒ Object private
- #data_array_new ⇒ Object private
- #data_map_new ⇒ Object private
- #diagnose ⇒ Object private
- #get_server_state(key) ⇒ Object private
- #increment_counter(key, value, tags) ⇒ Object private
- #running_in_container? ⇒ Boolean private
- #set_gauge(key, value, tags) ⇒ Object private
- #set_host_gauge(key, value) ⇒ Object private
- #set_process_gauge(key, value) ⇒ Object private
- #start ⇒ Object private
- #start_transaction(transaction_id, namespace, gc_duration_ms) ⇒ Object private
- #stop ⇒ Object private
Methods included from StringHelpers
#make_appsignal_string, #make_ruby_string
Class Method Details
.lib_extension ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
44 45 46 47 48 49 50 |
# File 'lib/appsignal/extension/jruby.rb', line 44 def self.lib_extension if Appsignal::System.agent_platform.include?("darwin") "dylib" else "so" end end |
Instance Method Details
#add_distribution_value(key, value, tags) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
243 244 245 |
# File 'lib/appsignal/extension/jruby.rb', line 243 def add_distribution_value(key, value, ) appsignal_add_distribution_value(make_appsignal_string(key), value, .pointer) end |
#data_array_new ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
219 220 221 |
# File 'lib/appsignal/extension/jruby.rb', line 219 def data_array_new Data.new(appsignal_data_array_new) end |
#data_map_new ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
215 216 217 |
# File 'lib/appsignal/extension/jruby.rb', line 215 def data_map_new Data.new(appsignal_data_map_new) end |
#diagnose ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
195 196 197 |
# File 'lib/appsignal/extension/jruby.rb', line 195 def diagnose make_ruby_string(appsignal_diagnose) end |
#get_server_state(key) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
199 200 201 202 |
# File 'lib/appsignal/extension/jruby.rb', line 199 def get_server_state(key) state = appsignal_get_server_state(make_appsignal_string(key)) make_ruby_string state if state[:len] > 0 end |
#increment_counter(key, value, tags) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
239 240 241 |
# File 'lib/appsignal/extension/jruby.rb', line 239 def increment_counter(key, value, ) appsignal_increment_counter(make_appsignal_string(key), value, .pointer) end |
#running_in_container? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
223 224 225 |
# File 'lib/appsignal/extension/jruby.rb', line 223 def running_in_container? appsignal_running_in_container end |
#set_gauge(key, value, tags) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
227 228 229 |
# File 'lib/appsignal/extension/jruby.rb', line 227 def set_gauge(key, value, ) appsignal_set_gauge(make_appsignal_string(key), value, .pointer) end |
#set_host_gauge(key, value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
231 232 233 |
# File 'lib/appsignal/extension/jruby.rb', line 231 def set_host_gauge(key, value) appsignal_set_host_gauge(make_appsignal_string(key), value) end |
#set_process_gauge(key, value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
235 236 237 |
# File 'lib/appsignal/extension/jruby.rb', line 235 def set_process_gauge(key, value) appsignal_set_process_gauge(make_appsignal_string(key), value) end |
#start ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
187 188 189 |
# File 'lib/appsignal/extension/jruby.rb', line 187 def start appsignal_start end |
#start_transaction(transaction_id, namespace, gc_duration_ms) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
204 205 206 207 208 209 210 211 212 213 |
# File 'lib/appsignal/extension/jruby.rb', line 204 def start_transaction(transaction_id, namespace, gc_duration_ms) transaction = appsignal_start_transaction( make_appsignal_string(transaction_id), make_appsignal_string(namespace), gc_duration_ms ) return if !transaction || transaction.null? Transaction.new(transaction) end |
#stop ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
191 192 193 |
# File 'lib/appsignal/extension/jruby.rb', line 191 def stop appsignal_stop end |