raygun-apm 1.0.41-x86-mingw32 → 1.0.42-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/bin/diagnostics +7 -0
 - data/lib/raygun/2.5/raygun_ext.so +0 -0
 - data/lib/raygun/2.6/raygun_ext.so +0 -0
 - data/lib/raygun/2.7/raygun_ext.so +0 -0
 - data/lib/raygun/apm.rb +1 -0
 - data/lib/raygun/apm/config.rb +2 -1
 - data/lib/raygun/apm/diagnostics.rb +34 -0
 - data/lib/raygun/apm/event.rb +1 -1
 - data/lib/raygun/apm/tracer.rb +5 -0
 - data/lib/raygun/apm/version.rb +1 -1
 - metadata +4 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: d4806c0bbe480ae9d117e52718a84a5df256da8d7e94a11980a2de3f183568ea
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: b2163b29c7c91e1fe0dc613f7de75d900422f5b22f5ac9530414e6862169bb01
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: f137c1d376896c3ce5ab22d537f6eb281ea08f01cd6be8b490517cb26c8f6d3558b0e53e0d0371eaaa4658ee8e931b6e5b17f43ff70774fe537d4469d64854b4
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 48169ad519cd4ecbdc023441ebe4cd138950fcfd45d106e77bd5883a58b20ab0801ece631008e64eb94a941b4089603d40e05e2a8013857e3e067b4a3b6557d7
         
     | 
    
        data/bin/diagnostics
    ADDED
    
    
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
    
        data/lib/raygun/apm.rb
    CHANGED
    
    
    
        data/lib/raygun/apm/config.rb
    CHANGED
    
    | 
         @@ -49,9 +49,10 @@ module Raygun 
     | 
|
| 
       49 
49 
     | 
    
         
             
                  end
         
     | 
| 
       50 
50 
     | 
    
         | 
| 
       51 
51 
     | 
    
         
             
                  # Initial constants for ProtonAgentTail.exe
         
     | 
| 
       52 
     | 
    
         
            -
                  UDP_SINK_HOST = '127.0.0.1'
         
     | 
| 
      
 52 
     | 
    
         
            +
                  UDP_SINK_HOST = TCP_MANAGEMENT_HOST = '127.0.0.1'
         
     | 
| 
       53 
53 
     | 
    
         
             
                  UDP_SINK_MULTICAST_HOST = '239.100.15.215'
         
     | 
| 
       54 
54 
     | 
    
         
             
                  UDP_SINK_PORT = 2799
         
     | 
| 
      
 55 
     | 
    
         
            +
                  TCP_MANAGEMENT_PORT = 2790
         
     | 
| 
       55 
56 
     | 
    
         | 
| 
       56 
57 
     | 
    
         
             
                  ## Enumerate all PROTON_ constants
         
     | 
| 
       57 
58 
     | 
    
         
             
                  config_var 'PROTON_API_KEY', as: String, default: ''
         
     | 
| 
         @@ -0,0 +1,34 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            require "socket"
         
     | 
| 
      
 2 
     | 
    
         
            +
            require "json"
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            module Raygun
         
     | 
| 
      
 5 
     | 
    
         
            +
              module Apm
         
     | 
| 
      
 6 
     | 
    
         
            +
                class Diagnostics
         
     | 
| 
      
 7 
     | 
    
         
            +
                  AGENT_STATE_DOWN = "The Raygun APM Agent appears to not be running on the current host.\nIf not already installed, please consult https://raygun.com/documentation/product-guides/apm/agent/downloads/\nOtherwise refer to https://raygun.com/documentation/product-guides/apm/agent/installation/ for starting the Agent."
         
     | 
| 
      
 8 
     | 
    
         
            +
                  AGENT_STATE_UP_MISCONFIGURED = "The Raygun APM Agent is running, but misconfigured.\nThe API Key needs to be set through the Raygun_ApiKey environment variable.\nThe API key can be found under 'Application Settings' in the Raygun UI"
         
     | 
| 
      
 9 
     | 
    
         
            +
                  AGENT_STATE_UP_CONFIGURED = "The Raygun APM Agent is configured properly!"
         
     | 
| 
      
 10 
     | 
    
         
            +
             
     | 
| 
      
 11 
     | 
    
         
            +
                  def initialize(host: Apm::Config::TCP_MANAGEMENT_HOST, port: Apm::Config::TCP_MANAGEMENT_PORT)
         
     | 
| 
      
 12 
     | 
    
         
            +
                    @host = host
         
     | 
| 
      
 13 
     | 
    
         
            +
                    @port = port
         
     | 
| 
      
 14 
     | 
    
         
            +
                  end
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
                  def verify_agent
         
     | 
| 
      
 17 
     | 
    
         
            +
                    socket.write "GetAgentInfo"
         
     | 
| 
      
 18 
     | 
    
         
            +
                    response = JSON.parse(socket.gets)
         
     | 
| 
      
 19 
     | 
    
         
            +
                    if response['Status'] == 1
         
     | 
| 
      
 20 
     | 
    
         
            +
                      puts AGENT_STATE_UP_CONFIGURED
         
     | 
| 
      
 21 
     | 
    
         
            +
                    elsif response['Status'] == 0
         
     | 
| 
      
 22 
     | 
    
         
            +
                      puts AGENT_STATE_UP_MISCONFIGURED
         
     | 
| 
      
 23 
     | 
    
         
            +
                    end
         
     | 
| 
      
 24 
     | 
    
         
            +
                  rescue Errno::ECONNREFUSED
         
     | 
| 
      
 25 
     | 
    
         
            +
                    puts AGENT_STATE_DOWN
         
     | 
| 
      
 26 
     | 
    
         
            +
                  end
         
     | 
| 
      
 27 
     | 
    
         
            +
             
     | 
| 
      
 28 
     | 
    
         
            +
                  private
         
     | 
| 
      
 29 
     | 
    
         
            +
                  def socket
         
     | 
| 
      
 30 
     | 
    
         
            +
                    @socket ||= s = TCPSocket.new(@host, @port)
         
     | 
| 
      
 31 
     | 
    
         
            +
                  end
         
     | 
| 
      
 32 
     | 
    
         
            +
                end
         
     | 
| 
      
 33 
     | 
    
         
            +
              end
         
     | 
| 
      
 34 
     | 
    
         
            +
            end
         
     | 
    
        data/lib/raygun/apm/event.rb
    CHANGED
    
    
    
        data/lib/raygun/apm/tracer.rb
    CHANGED
    
    | 
         @@ -33,6 +33,7 @@ module Raygun 
     | 
|
| 
       33 
33 
     | 
    
         
             
                    self.environment = config.environment
         
     | 
| 
       34 
34 
     | 
    
         
             
                    self.api_key = config.proton_api_key
         
     | 
| 
       35 
35 
     | 
    
         
             
                    self.register_libraries Bundler.load.specs.map(&:full_gem_path).sort << RbConfig::CONFIG['rubylibdir']
         
     | 
| 
      
 36 
     | 
    
         
            +
                    agent_connectivity_diagnostics
         
     | 
| 
       36 
37 
     | 
    
         
             
                    ObjectSpace.define_finalizer(self, proc{ disable_tracepoints })
         
     | 
| 
       37 
38 
     | 
    
         
             
                  # Any fails here is kamikaze for the tracer
         
     | 
| 
       38 
39 
     | 
    
         
             
                  rescue => e
         
     | 
| 
         @@ -73,6 +74,10 @@ module Raygun 
     | 
|
| 
       73 
74 
     | 
    
         
             
                    raise Raygun::Apm::FatalError, "Raygun APM UDP sink could not be initialized: #{e.message}"
         
     | 
| 
       74 
75 
     | 
    
         
             
                  end
         
     | 
| 
       75 
76 
     | 
    
         | 
| 
      
 77 
     | 
    
         
            +
                  def agent_connectivity_diagnostics
         
     | 
| 
      
 78 
     | 
    
         
            +
                    check = Raygun::Apm::Diagnostics.new
         
     | 
| 
      
 79 
     | 
    
         
            +
                    check.verify_agent
         
     | 
| 
      
 80 
     | 
    
         
            +
                  end
         
     | 
| 
       76 
81 
     | 
    
         
             
                end
         
     | 
| 
       77 
82 
     | 
    
         
             
              end
         
     | 
| 
       78 
83 
     | 
    
         
             
            end
         
     | 
    
        data/lib/raygun/apm/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: raygun-apm
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.0.42
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: x86-mingw32
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Raygun
         
     | 
| 
         @@ -9,7 +9,7 @@ authors: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       10 
10 
     | 
    
         
             
            bindir: exe
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date: 2020- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2020-06-04 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: debase-ruby_core_source
         
     | 
| 
         @@ -203,6 +203,7 @@ extra_rdoc_files: [] 
     | 
|
| 
       203 
203 
     | 
    
         
             
            files:
         
     | 
| 
       204 
204 
     | 
    
         
             
            - README.rdoc
         
     | 
| 
       205 
205 
     | 
    
         
             
            - bin/console
         
     | 
| 
      
 206 
     | 
    
         
            +
            - bin/diagnostics
         
     | 
| 
       206 
207 
     | 
    
         
             
            - bin/setup
         
     | 
| 
       207 
208 
     | 
    
         
             
            - ext/raygun/extconf.rb
         
     | 
| 
       208 
209 
     | 
    
         
             
            - lib/raygun/2.5/raygun_ext.so
         
     | 
| 
         @@ -211,6 +212,7 @@ files: 
     | 
|
| 
       211 
212 
     | 
    
         
             
            - lib/raygun/apm.rb
         
     | 
| 
       212 
213 
     | 
    
         
             
            - lib/raygun/apm/blacklist.rb
         
     | 
| 
       213 
214 
     | 
    
         
             
            - lib/raygun/apm/config.rb
         
     | 
| 
      
 215 
     | 
    
         
            +
            - lib/raygun/apm/diagnostics.rb
         
     | 
| 
       214 
216 
     | 
    
         
             
            - lib/raygun/apm/event.rb
         
     | 
| 
       215 
217 
     | 
    
         
             
            - lib/raygun/apm/hooks/net_http.rb
         
     | 
| 
       216 
218 
     | 
    
         
             
            - lib/raygun/apm/hooks/redis.rb
         
     |