scout_apm 2.6.3 → 2.6.4
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/CHANGELOG.markdown +4 -0
 - data/lib/scout_apm/instruments/net_http.rb +8 -1
 - data/lib/scout_apm/version.rb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 96f6a10ca19691ef0b5feb036811700759fbd6164a0811efbe52b1fcaa97b6c9
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c2c39bcb738f22115d0a0f69f40340a5096f523e542c844fe007b15f42a324d1
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: ea5173420001f92d54aae2a05b7ca71287ca08b3da08b27769895b9ddc0aca791dfb226c93ed84464728cc02a7c6defc486b3b1d606e58f64323d7c523dfdbfb
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 91b7ace32216ea11bffa119d782b3f43dba518fc1adf07bae866e20c8cf83e25e055ded16fd57ee2d6dc7d1c2f4b92c88849ab207adf316435d520b016bf7e3a
         
     | 
    
        data/CHANGELOG.markdown
    CHANGED
    
    
| 
         @@ -25,7 +25,7 @@ module ScoutApm 
     | 
|
| 
       25 
25 
     | 
    
         
             
                      ::Net::HTTP.class_eval do
         
     | 
| 
       26 
26 
     | 
    
         
             
                        include ScoutApm::Tracer
         
     | 
| 
       27 
27 
     | 
    
         | 
| 
       28 
     | 
    
         
            -
                        def request_with_scout_instruments(*args 
     | 
| 
      
 28 
     | 
    
         
            +
                        def request_with_scout_instruments(*args, &block)
         
     | 
| 
       29 
29 
     | 
    
         
             
                          self.class.instrument("HTTP", "request", :ignore_children => true, :desc => request_scout_description(args.first)) do
         
     | 
| 
       30 
30 
     | 
    
         
             
                            request_without_scout_instruments(*args, &block)
         
     | 
| 
       31 
31 
     | 
    
         
             
                          end
         
     | 
| 
         @@ -35,8 +35,15 @@ module ScoutApm 
     | 
|
| 
       35 
35 
     | 
    
         
             
                          path = req.path
         
     | 
| 
       36 
36 
     | 
    
         
             
                          path = path.path if path.respond_to?(:path)
         
     | 
| 
       37 
37 
     | 
    
         | 
| 
      
 38 
     | 
    
         
            +
                          # Protect against a nil address value
         
     | 
| 
      
 39 
     | 
    
         
            +
                          if @address.nil?
         
     | 
| 
      
 40 
     | 
    
         
            +
                            return "No Address Found"
         
     | 
| 
      
 41 
     | 
    
         
            +
                          end
         
     | 
| 
      
 42 
     | 
    
         
            +
             
     | 
| 
       38 
43 
     | 
    
         
             
                          max_length = ScoutApm::Agent.instance.context.config.value('instrument_http_url_length')
         
     | 
| 
       39 
44 
     | 
    
         
             
                          (@address + path.split('?').first)[0..(max_length - 1)]
         
     | 
| 
      
 45 
     | 
    
         
            +
                        rescue
         
     | 
| 
      
 46 
     | 
    
         
            +
                          ""
         
     | 
| 
       40 
47 
     | 
    
         
             
                        end
         
     | 
| 
       41 
48 
     | 
    
         | 
| 
       42 
49 
     | 
    
         
             
                        alias request_without_scout_instruments request
         
     | 
    
        data/lib/scout_apm/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: scout_apm
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 2.6. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2.6.4
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Derek Haynes
         
     | 
| 
         @@ -9,7 +9,7 @@ authors: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       10 
10 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       11 
11 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       12 
     | 
    
         
            -
            date: 2019- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2019-11-14 00:00:00.000000000 Z
         
     | 
| 
       13 
13 
     | 
    
         
             
            dependencies:
         
     | 
| 
       14 
14 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       15 
15 
     | 
    
         
             
              name: minitest
         
     |