raygun-apm 0.0.3-x64-mingw32 → 0.0.4-x64-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: c90354fc7cc34de7f5e36b6067e465b0e1e859f9744aade4307c1aa89cc599df
4
- data.tar.gz: 13e4037892a776609b868ddb18d1cb99f79fd5219b8f82501c2800d8b377b6a3
3
+ metadata.gz: 9053473559cc5a0ea171fa96ff99369a8371dda3aebd32b4875b06f647ddb51e
4
+ data.tar.gz: d5deacf6acb12c5ca7d49f3eaec1a5f39ac2725d3d9ac945cacf2136daa2fb2d
5
5
  SHA512:
6
- metadata.gz: 69ce8055894b960004305d9b4ccc5d72eada26ecbfe18c59fd41108222c13ca1b00693999b56771b4473ac34333c9bb13ec4ac1f6a6d3c2820a2ae5c0feb5bce
7
- data.tar.gz: 8373bb0293b23109252bc46690ff02eded1642f5a6bdbdc45854b8c78ac491789910afc290b1cf41b578288b1c4989aca255a633c6c6f97a922c42180014c000
6
+ metadata.gz: 11016c17c56f1310a37887ad37d2eaf6d56fe60cbfa7e25af13a5ee30854e982ec3c49ff82df36f6f70527113d9bbcfb36a834bdc195f25bcb2924242c2b11e6
7
+ data.tar.gz: 3bf504edf3b3ed29135a5c71db994c5f3e528601b4ac09463fb36dd4a0089ae020299ffbd9b5538f4ad4afd86eb978e783f51cf4bb1f7b582e9f08a5aecf069a
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: x64-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