newrelic_rpm 9.20.0 → 9.21.0

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: 7534628f5d1c53ceff110ad76f2c63a3773d32f7f13d7146ff4c7da72ecef143
4
- data.tar.gz: aeacda7d6851268da1e67d61376088902e9fa6080d184d91ea1bdbda632af889
3
+ metadata.gz: 28a51810c279118b462ee016c67fd8d62cde2bf457bfc2ca33e687712a3b3514
4
+ data.tar.gz: c9b530fcf6ea3c2775c1100dfa112ba1d356c8a18a2b18535be1184ebcbc7805
5
5
  SHA512:
6
- metadata.gz: fa3dfb1d4971a14c83e57b2de5fc20298f95e7e75dbba07631ec7e70c962e263f8c10f046ed5f067d3b38ec629ebc57e5cad502679468f8a0245b0bddc1d7061
7
- data.tar.gz: 95f05672fffa1af08da58e1d470cf40d9d0587aa2d2fa1a2db162a46b0bd11abd290e5150ef98de29dd43517ebeb2df1aaa836ae13a33f7835ef76534f14807c
6
+ metadata.gz: 299297fc139e0ed8475254cfd73d1d43cea58743fcc89c6e9a02c31a59a44545062c47da422c1126306ac55a9d93a3dc028d9a235739c3d1d8cb642df5f0fc18
7
+ data.tar.gz: c41fdc820bcc54b2fd2a61777b979319af9aeabf77c4b9721a2f385bfd4cef62277d84030b281a38ab8e02684f88603e76a45be6cad64324517f310e6ba1d877
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # New Relic Ruby Agent Release Notes
2
2
 
3
+ ## v9.21.0
4
+
5
+ - **Feature: In Serverless APM mode, use event source name as transaction name prefix**
6
+
7
+ The agent will now use the event source name as a prefix for the transaction name in Serverless APM mode. This will help to better identify the source of the transaction in the New Relic UI. [PR#3245](https://github.com/newrelic/newrelic-ruby-agent/pull/3245)
8
+
9
+ - **Bugfix: Revert changed logic for how we track the thread the span starts in**
10
+
11
+ This change restores the previous behavior of tracking the thread the span starts in, addressing issues that arose from the updated logic. Thank you [@david-zw-liu](https://github.com/david-zw-liu) for bringing this to our attention. [PR#3248](https://github.com/newrelic/newrelic-ruby-agent/pull/3248)
12
+
3
13
  ## v9.20.0
4
14
 
5
15
  - **Feature: Add ECS Docker ID for Fargate**
@@ -40,7 +40,13 @@ module NewRelic
40
40
 
41
41
  @event, @context = event, context
42
42
 
43
- NewRelic::Agent::Tracer.in_transaction(category: category, name: function_name) do
43
+ txn_name = function_name
44
+ if ENV['NEW_RELIC_APM_LAMBDA_MODE'] == 'true'
45
+ source = event_source_event_info['name'] if event_source_event_info
46
+ txn_name = "#{source.upcase} #{txn_name}" if source
47
+ end
48
+
49
+ NewRelic::Agent::Tracer.in_transaction(category: category, name: txn_name) do
44
50
  prep_transaction
45
51
 
46
52
  process_response(NewRelic::LanguageSupport.constantize(namespace)
@@ -42,7 +42,8 @@ module NewRelic
42
42
  def thread_starting_span
43
43
  # if the previous current segment was in another thread, use the thread local parent
44
44
  if ThreadLocalStorage[:newrelic_thread_span_parent] &&
45
- current_segment&.starting_segment_key != NewRelic::Agent::Tracer.current_segment_key
45
+ current_segment &&
46
+ current_segment.starting_segment_key != NewRelic::Agent::Tracer.current_segment_key
46
47
 
47
48
  ThreadLocalStorage[:newrelic_thread_span_parent]
48
49
  end
@@ -6,7 +6,7 @@
6
6
  module NewRelic
7
7
  module VERSION # :nodoc:
8
8
  MAJOR = 9
9
- MINOR = 20
9
+ MINOR = 21
10
10
  TINY = 0
11
11
 
12
12
  STRING = "#{MAJOR}.#{MINOR}.#{TINY}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newrelic_rpm
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.20.0
4
+ version: 9.21.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tanna McClure
@@ -787,7 +787,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
787
787
  - !ruby/object:Gem::Version
788
788
  version: 1.3.1
789
789
  requirements: []
790
- rubygems_version: 3.6.7
790
+ rubygems_version: 3.6.9
791
791
  specification_version: 4
792
792
  summary: New Relic Ruby Agent
793
793
  test_files: []