raygun-apm 0.0.3-x86-mingw32 → 0.0.4-x86-mingw32

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: d581b35cb0ea1db8f45a7e85895152011b2b14898d248f5bc97df6201288b28e
4
- data.tar.gz: d2333c339ac11e69f182850d48125d5328c4a116dac6a75f8ff683073ac3acce
3
+ metadata.gz: b289840f1a048973ca4199f3479f12425d623e27752c0829c8e9d74de1facce7
4
+ data.tar.gz: 811e54f2d18f7df486ccb7968dbf7a7ca3da92e8192a67d7b3888de35ba1ec53
5
5
  SHA512:
6
- metadata.gz: 38c48ca7279a6d24c5f3b00c26d09229a12722083c565afeba09cd3b39d12303304dca5eabd0c8489a21fb3cec5fbb2fa519d330dc2afc3ca414d575f48377a0
7
- data.tar.gz: 1cd04c11a203c0b223ba42c271ae89b37ca8411c2038c659e769f6c4926bd93179be9252c5c4e3890ef2e668251c58636b0efaa1ae472499e5ebab4f31543128
6
+ metadata.gz: b4452a8923704525ca3ad077afa1a2a061ddbd545e9dc027dff6688421319d568f3908cef3ac5c87a7a70c2fccc76d7577feeae5baf2894fe4095f1355a0a817
7
+ data.tar.gz: d66220e91904395e614e252203d811bfb2d7f0e7148f983ea45305eaff8249fe20b13797f7711e1315f3d8143c5fcbd74dc33f1e3fcff8b926494461c34897d1
@@ -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/
@@ -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
@@ -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-mingw32
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