raygun-apm 0.0.3-universal-darwin → 0.0.4-universal-darwin

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: c8a352ce53209c88436c6d4e7c35b0a16f41d3ed7993a23edb77ceb72fa5d89b
4
- data.tar.gz: ebfc8980395ac3c514197bf13761928234e5cd6811db7f928b69dbf45fb324d1
3
+ metadata.gz: 5c9faeda4435919e883abfa4bd5649924c41e8d53b7447743df73d0674611067
4
+ data.tar.gz: d9043e53f6140ed49c7f4df802900eade30cfd233492d11645083134c231894b
5
5
  SHA512:
6
- metadata.gz: 36b283e1e5cf0196df19d2e0a7d39673e37a7c240113657dadb5c82a3fda17ffb47e949e3cc831e8f672031e7585e50e1ec7dcc03037ae77c9e4708c59520a18
7
- data.tar.gz: 0b0b8841464a45965a1fef66bc28f9b03a52aa32d1eba42d62c3b2405d0d75146e6faa4b7a62d0801bea9ff4867ec56c1b2c0ec4f4731e2af58faf7828c64f32
6
+ metadata.gz: b598343bf5c97a8bf7ddf6e01b8c188d351195eccf0e082492f41b10d80fa8ef6e3365562a4cc9c27b4d3bbadc42b5c80ecba4ed4d81690beab6902a318e2221
7
+ data.tar.gz: 3ff0b8cad32b0c764b0679157f631813beaed683a03193c5cd490137f590de2725bd721a5603faf7388a208412d79cb6eff6dcb9184aedc5e52c559ae0e8a60b
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/
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: universal-darwin
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
@@ -118,7 +118,7 @@ extra_rdoc_files: []
118
118
  files:
119
119
  - Gemfile
120
120
  - Gemfile.lock
121
- - README.md
121
+ - README.rdoc
122
122
  - bin/console
123
123
  - bin/setup
124
124
  - ext/raygun/extconf.rb
data/README.md DELETED
File without changes