raygun-apm 1.1.5-x64-mingw32 → 1.1.9-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/raygun/2.5/raygun_ext.so +0 -0
- data/lib/raygun/2.6/raygun_ext.so +0 -0
- data/lib/raygun/2.7/raygun_ext.so +0 -0
- data/lib/raygun/3.0/raygun_ext.so +0 -0
- data/lib/raygun/apm/config.rb +8 -2
- data/lib/raygun/apm/tracer.rb +18 -2
- data/lib/raygun/apm/version.rb +1 -1
- data/lib/raygun/apm.rb +1 -0
- 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: af8db3f094efe9a278e05423f7fcd1666d26bed22ea2923de2cbcbbc563dcc8e
|
4
|
+
data.tar.gz: 802c7f97fcabde4d358aedf1cc45af69cb976ffd3120ce3fce08a30a22a59c8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4d85a8392c7bc3035db25ce1f11ad64c9149fff0cc46fd0a9479d8910389713fe9adfd90f85bfeeee96a0c8a065d05712d618d49dadc597f8276039e268bb6d
|
7
|
+
data.tar.gz: 1eb4e5bd010f656c3b2d0efc75f86cd2e82a3bfb5be7467b1aef30785b6271dee26a19852832cced8908c6ef3468f960d3f8c66649e9f7b90e9f8355eba5ddb8
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/lib/raygun/apm/config.rb
CHANGED
@@ -52,9 +52,9 @@ module Raygun
|
|
52
52
|
end
|
53
53
|
|
54
54
|
# Initial constants for ProtonAgentTail.exe
|
55
|
-
UDP_SINK_HOST = TCP_MANAGEMENT_HOST = '127.0.0.1'
|
55
|
+
UDP_SINK_HOST = TCP_SINK_HOST = TCP_MANAGEMENT_HOST = '127.0.0.1'
|
56
56
|
UDP_SINK_MULTICAST_HOST = '239.100.15.215'
|
57
|
-
UDP_SINK_PORT = 2799
|
57
|
+
UDP_SINK_PORT = TCP_SINK_PORT = 2799
|
58
58
|
TCP_MANAGEMENT_PORT = 2790
|
59
59
|
|
60
60
|
## Enumerate all PROTON_ constants
|
@@ -68,6 +68,8 @@ module Raygun
|
|
68
68
|
## New - Ruby profiler
|
69
69
|
config_var 'PROTON_UDP_HOST', as: String, default: UDP_SINK_HOST
|
70
70
|
config_var 'PROTON_UDP_PORT', as: Integer, default: UDP_SINK_PORT
|
71
|
+
config_var 'PROTON_TCP_HOST', as: String, default: TCP_SINK_HOST
|
72
|
+
config_var 'PROTON_TCP_PORT', as: Integer, default: TCP_SINK_PORT
|
71
73
|
|
72
74
|
def proton_udp_host
|
73
75
|
if proton_use_multicast == 'True'
|
@@ -77,6 +79,10 @@ module Raygun
|
|
77
79
|
end
|
78
80
|
end
|
79
81
|
|
82
|
+
def proton_tcp_host
|
83
|
+
env['PROTON_TCP_HOST'] ? env['PROTON_TCP_HOST'].to_s : TCP_SINK_HOST
|
84
|
+
end
|
85
|
+
|
80
86
|
def loglevel
|
81
87
|
LOGLEVELS[proton_debug_loglevel] || raise(ArgumentError, "invalid log level")
|
82
88
|
end
|
data/lib/raygun/apm/tracer.rb
CHANGED
@@ -30,7 +30,6 @@ module Raygun
|
|
30
30
|
end
|
31
31
|
|
32
32
|
def udp_sink!
|
33
|
-
require "socket"
|
34
33
|
sock = UDPSocket.new
|
35
34
|
# For UDP sockets, SO_SNDBUF is the max packet size and NOT send buffer as with a connection oriented transport
|
36
35
|
sock.setsockopt(Socket::SOL_SOCKET, Socket::SO_SNDBUF, Tracer::BATCH_PACKET_SIZE)
|
@@ -40,12 +39,29 @@ module Raygun
|
|
40
39
|
port: config.proton_udp_port,
|
41
40
|
receive_buffer_size: sock.getsockopt(Socket::SOL_SOCKET, Socket::SO_RCVBUF).int
|
42
41
|
)
|
43
|
-
# Any fails here is kamikaze for the tracer
|
44
42
|
rescue => e
|
45
43
|
# XXX works for the middleware wrapped case, not for standalone - revisit
|
46
44
|
raise Raygun::Apm::FatalError, "Raygun APM UDP sink could not be initialized: #{e.message} #{e.backtrace.join("\n")}"
|
47
45
|
end
|
48
46
|
|
47
|
+
def tcp_sink!
|
48
|
+
self.tcp_sink(
|
49
|
+
host: config.proton_tcp_host,
|
50
|
+
port: config.proton_tcp_port
|
51
|
+
)
|
52
|
+
rescue => e
|
53
|
+
# XXX works for the middleware wrapped case, not for standalone - revisit
|
54
|
+
raise Raygun::Apm::FatalError, "Raygun APM TCP sink could not be initialized: #{e.message} #{e.backtrace.join("\n")}"
|
55
|
+
end
|
56
|
+
|
57
|
+
def enable_sink!
|
58
|
+
if config.proton_network_mode == "Udp"
|
59
|
+
udp_sink!
|
60
|
+
elsif config.proton_network_mode == "Tcp"
|
61
|
+
tcp_sink!
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
49
65
|
private
|
50
66
|
def configure(env)
|
51
67
|
@config = Config.new(env)
|
data/lib/raygun/apm/version.rb
CHANGED
data/lib/raygun/apm.rb
CHANGED
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: 1.1.
|
4
|
+
version: 1.1.9
|
5
5
|
platform: x64-mingw32
|
6
6
|
authors:
|
7
7
|
- Raygun Limited
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: debase-ruby_core_source
|