plain_apm 0.6.1 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 127051af59250da7ce13cfc7c819caff29fb954d20399398e72eaf02ae3fecc4
4
- data.tar.gz: 3c3f321becb4e79da27c6a09194c44fc5ec11a73f9e70a9ff55ce7833984fb73
3
+ metadata.gz: a459059a5d2bfbb7ae28dea26d9683dce187861127df809c8079f9a46c1eaca4
4
+ data.tar.gz: 24bb3d1abb791516c54d22ef1b5a502e165bd714938740e5a482ecfdd0f10439
5
5
  SHA512:
6
- metadata.gz: 752b27ebb2ab36147e85af199e939a25a666a738a772077a23ea3033577e966d0afbc773c1bd3f5614c1815deb7ca32395b49628de6b487a4bd214ad96955b27
7
- data.tar.gz: 40d0f21220a4e118abcb767951730c743ac89787d9cfa6b2d421cad597c2e38ab5fae56ccc0fb9dd6b707d2344343660680440d6df089241fb2b8e579e0709fb
6
+ metadata.gz: aec0c2b11655250b9e0e6aeafdb9ff8e9739674b6f86aee2ce1085ce2df7ef5422e7fb4664310b412c621f7c38743df1a8e4e8f0a30c0fe1a95924d8a37469c9
7
+ data.tar.gz: 2952ea6ba5c373754f60e6abf1f5b9930d9a3155b5bb1345005c9c0bc9d53957e7496130427913db8a0b4d5b0a2a3e9daac67a6249231d9b79d8670025cb8e6f
@@ -6,7 +6,7 @@ module PlainApm
6
6
 
7
7
  def plain_apm_instrument(name, context = {}, &block)
8
8
  sanitized_name = name.gsub(/\W/, "_").gsub(/(?!^)([A-Z])/) { |m| "_#{m}" }.gsub(/_+/, "_").downcase
9
- ActiveSupport::Notifications.instrument("#{sanitized_name}.manual.plain_apm", **context, &block)
9
+ ActiveSupport::Notifications.instrument("#{sanitized_name}.manual_plain_apm", **context, &block)
10
10
  end
11
11
  end
12
12
  end
@@ -3,7 +3,7 @@
3
3
  module PlainApm
4
4
  module Hooks
5
5
  class Manual < ActiveSupportSubscriber
6
- NOTIFICATION_PATTERN = /\A[^!]\w+\.manual\.plain_apm\Z/.freeze
6
+ NOTIFICATION_PATTERN = /\A[^!]\w+\.manual_plain_apm\Z/.freeze
7
7
 
8
8
  private
9
9
 
@@ -12,16 +12,17 @@ module PlainApm
12
12
  end
13
13
 
14
14
  def payload(event)
15
- name, source, _ = *event.name.split(".")
15
+ name, source = *event.name.split(".")
16
16
 
17
17
  {
18
- "source" => source,
19
- "name" => name,
18
+ "source" => "plain_apm",
19
+ "name" => "manual",
20
20
  "backtrace" => filtered_backtrace,
21
21
  "started_at" => event.time,
22
22
  "finished_at" => event.end,
23
23
  "allocations" => event.allocations,
24
24
  "thread_allocations" => event.thread_allocations,
25
+ "payload_name" => name,
25
26
  "payload" => event.payload
26
27
  }
27
28
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PlainApm
4
- VERSION = "0.6.1"
4
+ VERSION = "0.6.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plain_apm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - PlainAPM Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-12-17 00:00:00.000000000 Z
11
+ date: 2022-12-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -137,7 +137,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - ">="
139
139
  - !ruby/object:Gem::Version
140
- version: '2.0'
140
+ version: '2.6'
141
141
  required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="