raygun-apm 0.0.3-x86-linux → 0.0.4-x86-linux

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1772cfb1a94b405799e986f482d25bdd94c6a5538a978a618a4a17a986313b2
4
- data.tar.gz: c916a2ab478d4a5f2b040faba3168936735bb702ae7808a64800c4ebf9c88baf
3
+ metadata.gz: abfcafa2bc6dc7c4602ab06ef42b036bde7e45b4ac000fb5646d8da3a3df04e0
4
+ data.tar.gz: 88f0f54950ba3679274c7317ea52da97b5953da140b0893c8189fb5909c93010
5
5
  SHA512:
6
- metadata.gz: a5ba473a57a7e1431568b20f6085368a265255694f2ec40048d8d78af0c98732c2c1da4cb064a899adab695fa8fd14a5e1925dca734d60fb6ff91fb76d95d8fc
7
- data.tar.gz: 92d8a058ef4295d81d0579b70468804f86f6db65b52f28ffef4a641c76618a8dbb8b907583d593a46d449c165d676596c13d8dd95db89af2bceff4a12204d2ec
6
+ metadata.gz: 5acec7a23b05023dcad50dcf94bb93e75f0de31a9af109b62a9bbaaaa1c8888b48770c7bc0193acca0eb90afbd41209bec996470955e1d116917617408b5ef72
7
+ data.tar.gz: bf3fba7b99aa81d6cb250939f2e19663de3b5d53dc57c248bef4b61f2ab1d37f4c5d4190cb26d003ff9fa2540ab53e4daed1dcf3b7bbed0e288576eec71cb2c2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- raygun-apm (0.0.3)
4
+ raygun-apm (0.0.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.rdoc ADDED
@@ -0,0 +1,95 @@
1
+ = Raygun Application Performance Monitoring
2
+
3
+ Ruby Profiler for {Raygun Application Performance Monitoring}[https://raygun.com/platform/apm].
4
+
5
+ Distributed as a precompiled native gem.
6
+
7
+ == Supported platforms
8
+ * x86-mingw32
9
+ * x64-mingw32
10
+ * x86-linux
11
+ * x86_64-linux
12
+ * universal-darwin
13
+
14
+ {Contact us}[https://raygun.com/about/contact] to support other platforms.
15
+
16
+ == Agent Setup
17
+
18
+ The Profiler needs to be able to access the Raygun Agent over UDP.
19
+
20
+ The <code>RAYGUN_AGENT_TOKEN</code> needs to be supplied as an argument and is available under "Application Settings" at the {Raygun Application Performance Monitoring}[https://raygun.com/platform/apm] UI
21
+
22
+ To launch Raygun Agent using docker
23
+ docker pull raygunowner/raygun-apm
24
+ docker run -v raygun-agent:/usr/share/Raygun -e "RAYGUN_AGENT_TOKEN=<token>" -p 2790:2790 -p 2788:2788 -p 2799:2799/udp -it raygunowner/raygun-apm:latest
25
+
26
+ == Profiler Setup
27
+
28
+ Include the gem your Gemfile
29
+
30
+ gem 'raygun-apm'
31
+
32
+ Run <code>bundle</code> to install the gem.
33
+
34
+ Alternatively install using rubygems <code>gem install raygun-apm</code>.
35
+
36
+ === Standalone ruby script / custom framework
37
+
38
+ For standalone scripts, context start-end needs to be marked specifically and optionally extended events can be called.
39
+
40
+ #!/usr/bin/env ruby
41
+ require 'raygun/apm'
42
+
43
+ class Hello
44
+ def rdoc
45
+ sleep 0.5
46
+ end
47
+ end
48
+
49
+ tracer = Raygun::Apm::Tracer.new
50
+ tracer.udp_sink!
51
+ tracer.process_started
52
+ tracer.start_trace
53
+ Hello.new.rdoc
54
+ tracer.end_trace
55
+ tracer.process_ended
56
+
57
+ Extended events can be sent where appropiate
58
+
59
+ <code>HTTP incoming event</code>
60
+
61
+ event = Raygun::Apm::Event::HttpIn.new
62
+ event[:pid] = Process.pid
63
+ event[:tid] = 0
64
+ event[:timestamp] = Time.now.to_f*1000000
65
+ event[:url] = 'https://google.com/'
66
+ event[:verb] = 'GET'
67
+ event[:status] = 200
68
+ event[:duration] = 1000
69
+ tracer.emit(event)
70
+
71
+ <code>SQL query</code>
72
+
73
+ event = Raygun::Apm::Event::Sql.new
74
+ event[:pid] = Process.pid
75
+ event[:tid] = 0
76
+ event[:timestamp] = Time.now.to_f*1000000
77
+ event[:provider] = 'postgres'
78
+ event[:host] = 'localhost'
79
+ event[:database] = 'rails'
80
+ event[:query] = 'SELECT * from FOO;'
81
+ event[:duration] = 1000
82
+ tracer.emit(event)
83
+
84
+ === Ruby on Rails
85
+
86
+ For Ruby on Rails integration the following needs to be added to the <code>application.rb</code> file
87
+
88
+ require 'raygun/apm/middleware'
89
+ config.middleware.use Raygun::Apm::Middleware
90
+
91
+ ==== Supported versions
92
+ The gem has been tested with the following Ruby on Rails versions:
93
+ * 5.2.2
94
+
95
+ Other versions may work as long as the same Active Support Instrumentation interface is being used.
@@ -1,5 +1,5 @@
1
1
  module Raygun
2
2
  module Apm
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
Binary file
data/raygun-apm.gemspec CHANGED
@@ -18,7 +18,13 @@ Gem::Specification.new do |spec|
18
18
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
19
19
  spec.require_paths = ["lib", "ext"]
20
20
 
21
- spec.platform = Gem::Platform::RUBY
21
+ if RUBY_PLATFORM =~ /darwin/ && !ENV['GEM_CROSS_COMPILING']
22
+ spec.files << 'lib/raygun/raygun_ext.bundle'
23
+ spec.platform = 'universal-darwin'
24
+ else
25
+ spec.platform = Gem::Platform::RUBY
26
+ end
27
+
22
28
  spec.extensions = ["ext/raygun/extconf.rb"]
23
29
  spec.required_ruby_version = '>= 2.4.0'
24
30
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raygun-apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: x86-linux
6
6
  authors:
7
7
  - Erkki Eilonen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-10-23 00:00:00.000000000 Z
11
+ date: 2019-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: debase-ruby_core_source
@@ -117,7 +117,7 @@ extra_rdoc_files: []
117
117
  files:
118
118
  - Gemfile
119
119
  - Gemfile.lock
120
- - README.md
120
+ - README.rdoc
121
121
  - bin/console
122
122
  - bin/setup
123
123
  - ext/raygun/extconf.rb
data/README.md DELETED
File without changes