raygun-apm 1.0.21-x86-linux → 1.0.22-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: 45629f4a9b5f20f8b55431068c4c2aef07434410dafe3a06bb9918bc0f65ef60
4
- data.tar.gz: 74b49b7e144993f437076a0743b9a3758e35fcee113384db602256917e01c79e
3
+ metadata.gz: 136943047bbfa2ac22f9a93b16a06f0ef032b4c40e9bcfb0f60e15bfd9f842f2
4
+ data.tar.gz: 1226906c469db967d343585e1e28fdcc4a5078646e9f3b0957dd13f92f717d85
5
5
  SHA512:
6
- metadata.gz: 406ab1cdda2e31f6269dff390eec72e5a34565d75abdc28a4c133a1f3efc1a3b7dc511aa0979a99ecd97cfb9983ae2de4e0bc61b309ed7c3561c5c5c1bf43d1f
7
- data.tar.gz: 34612209a033a898534184d810d720bf953b02e6c7725594078b40850cdb25f55ffea1c60ea28f34d1f984cb5af451c80362b61169547362a87ff596ae34e915
6
+ metadata.gz: 160bd49bd918e7699f2ccebdcca404620c9a335bb1a4a3b1b84487d95af8d7acdfa864fe6c345763afb30237190a9c314d9689cf20f15720fdc14d1f8b447046
7
+ data.tar.gz: ba9aac29ed564a910aa586560f53525953dc7edf366a489e076f006f2c5bacca9c3380c7fc6378e79a85214482b616a4715844977e3ab983550a912c240d6136
Binary file
Binary file
Binary file
@@ -12,6 +12,12 @@ module Raygun
12
12
  # ruby profiler specific
13
13
  "Blacklist" => Tracer::LOG_BLACKLIST
14
14
  }
15
+
16
+ ENVIRONMENTS = {
17
+ "development" => Tracer::ENV_DEVELOPMENT,
18
+ "production" => Tracer::ENV_PRODUCTION
19
+ }
20
+
15
21
  attr_accessor :env
16
22
  def initialize(env=ENV)
17
23
  @env = env
@@ -70,6 +76,11 @@ module Raygun
70
76
  def loglevel
71
77
  LOGLEVELS[proton_debug_loglevel] || raise(ArgumentError, "invalid log level")
72
78
  end
79
+
80
+ def environment
81
+ environment = env['RACK_ENV'] || env['RAILS_ENV'] || 'production'
82
+ ENVIRONMENTS[environment] || Tracer::ENV_PRODUCTION
83
+ end
73
84
  end
74
85
  end
75
86
  end
@@ -28,6 +28,7 @@ module Raygun
28
28
  add_filters Raygun::Apm::Blacklist.resolve_entries, ignore_comments: false
29
29
  show_filters if config.loglevel == Tracer::LOG_BLACKLIST
30
30
  self.log_level = config.loglevel
31
+ self.environment = config.environment
31
32
  ObjectSpace.define_finalizer(self, proc{ disable_tracepoints })
32
33
  # Any fails here is kamikaze for the tracer
33
34
  rescue => e
@@ -1,5 +1,5 @@
1
1
  module Raygun
2
2
  module Apm
3
- VERSION = "1.0.21"
3
+ VERSION = "1.0.22"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: raygun-apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.21
4
+ version: 1.0.22
5
5
  platform: x86-linux
6
6
  authors:
7
7
  - Raygun
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-03-25 00:00:00.000000000 Z
12
+ date: 2020-03-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: debase-ruby_core_source