Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 9.15.0 #2928

Merged
merged 88 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
cd8cd94
Remove opensearch service from depends_on
kaylareopelle Sep 25, 2024
3cf0439
Merge pull request #2875 from newrelic/close-that-search
kaylareopelle Sep 30, 2024
7264efa
Update verbiage to match docs website
kaylareopelle Sep 30, 2024
fd13718
Merge pull request #2877 from newrelic/config-doc-backports
kaylareopelle Oct 1, 2024
c7ebec7
add ruby version check
tannalynn Oct 1, 2024
fff792a
Update 9.14 changelog to match release notes
kaylareopelle Oct 1, 2024
1d3c776
Merge pull request #2883 from newrelic/914-changelog-backports
fallwith Oct 2, 2024
41e118b
Stripe: restrict CI tests to Stripe <= v12
fallwith Oct 2, 2024
a49c2d1
Merge pull request #2887 from newrelic/guillermo_ufo
fallwith Oct 2, 2024
2f8d3c6
Sequel: relax Ruby requirement for Timed pool
fallwith Oct 2, 2024
6bddd91
Merge branch 'dev' into rdkafka_karafka_bugfix
tannalynn Oct 3, 2024
17afe8b
add changelog entry
tannalynn Oct 3, 2024
4bc15dd
Merge pull request #2888 from newrelic/lions_mane_coffee_benefits_rea…
fallwith Oct 3, 2024
8f77323
Merge branch 'dev' into rdkafka_karafka_bugfix
tannalynn Oct 3, 2024
f4f1305
Remove excess info-level instrumentation logs (#2881)
hannahramadan Oct 4, 2024
ffea529
Stripe testing update (#2891)
hannahramadan Oct 4, 2024
15b0df8
increase db.statement threshold to 4096
fallwith Oct 5, 2024
59d9bce
Test Ruby 3.4.0-preview2
kaylareopelle Oct 7, 2024
e890bd0
Update CHANGELOG.md
tannalynn Oct 8, 2024
f01539d
add aws_account_id config
tannalynn Oct 8, 2024
a1ad06e
tests script: perform cleanup
fallwith Oct 8, 2024
926c143
Merge pull request #2901 from newrelic/ernie-s_rubber_duckie
fallwith Oct 8, 2024
f676e9c
Add assertion condition for 3.4 support
kaylareopelle Oct 8, 2024
c15513f
Exclude api_key from reported settings
kaylareopelle Oct 8, 2024
fc52246
Add TODO to fix the test before 3.4 is released
kaylareopelle Oct 8, 2024
55a23dc
Improve failure output for assert_log_contains
kaylareopelle Oct 8, 2024
3d7b502
stringio CI test
kaylareopelle Oct 9, 2024
744ef7a
Update stringio version
kaylareopelle Oct 9, 2024
2578d22
berm/bermq: only clean once
fallwith Oct 9, 2024
62435f5
use cloud.aws.account_id for config name
tannalynn Oct 9, 2024
0572e46
Merge pull request #2880 from newrelic/rdkafka_karafka_bugfix
tannalynn Oct 9, 2024
ed54c09
Merge branch 'dev' into add_aws_account_id_config
tannalynn Oct 9, 2024
c14fb1f
add changelog entry
tannalynn Oct 9, 2024
4d42829
Merge pull request #2903 from newrelic/wax_off_once
fallwith Oct 9, 2024
1b18a18
Skip config_file_loading suite on Ruby 3.4
kaylareopelle Oct 9, 2024
f7803d5
Merge pull request #2892 from newrelic/the_boy_and_the_dog
fallwith Oct 10, 2024
42847f0
add allow nil to config
tannalynn Oct 10, 2024
c0091a3
Simplify excluded_settings test
kaylareopelle Oct 10, 2024
086420f
Update CHANGELOG.md
tannalynn Oct 10, 2024
22b367c
Update CHANGELOG.md
tannalynn Oct 10, 2024
c96ac53
Merge pull request #2894 from newrelic/ruby-3-4-0-preview-2
kaylareopelle Oct 10, 2024
0b65bd7
Update lib/new_relic/agent/configuration/default_source.rb
tannalynn Oct 10, 2024
9fc8828
Update newrelic-grape check logic
kaylareopelle Oct 10, 2024
52bb44e
Update View Component metric building (#2907)
hannahramadan Oct 11, 2024
ae4b9b3
add exit code to output
tannalynn Oct 11, 2024
d97b9f2
move rdkafka to its own group for multiverse
tannalynn Oct 11, 2024
63eb706
Merge pull request #2908 from newrelic/trying_stuff_for_rdkafka_failures
tannalynn Oct 14, 2024
ba31837
add config to allow test to pass for jruby
tannalynn Oct 14, 2024
de609f2
Merge branch 'dev' into add_aws_account_id_config
tannalynn Oct 14, 2024
4eec4f9
Merge pull request #2913 from newrelic/jruby_test_failure
tannalynn Oct 14, 2024
9cdcd2c
Create helper method to return rubygems specs
kaylareopelle Oct 14, 2024
6f30dcd
Add changelog entry for all_specs update
kaylareopelle Oct 14, 2024
9c373cd
Merge branch 'dev' into acinarius
kaylareopelle Oct 14, 2024
2b78cfc
Update stub for Rubies below 2.7
kaylareopelle Oct 14, 2024
0dee361
Merge branch 'acinarius' of github.com:newrelic/newrelic-ruby-agent i…
kaylareopelle Oct 14, 2024
c731c92
Rubocop
kaylareopelle Oct 14, 2024
a1d712a
prevent false 'unsatisfied' dependency status
fallwith Oct 15, 2024
117c75a
sinatra dd check - use a string
fallwith Oct 15, 2024
ac76aab
Merge pull request #2906 from newrelic/acinarius
kaylareopelle Oct 15, 2024
d17d815
Use double splat for Ruby >= 3.0
patrickarnett Oct 17, 2024
6a247b6
Update changelog
patrickarnett Oct 17, 2024
3e8c24b
Merge pull request #2914 from newrelic/dd
fallwith Oct 18, 2024
677f136
Merge pull request #2915 from patrickarnett/patrickarnett/ruby-kafka-sig
tannalynn Oct 21, 2024
12a9be5
update changelog
tannalynn Oct 21, 2024
35f1c1e
Merge pull request #2916 from newrelic/update_changelog_ruby_kafka_bu…
tannalynn Oct 21, 2024
8217814
Merge branch 'dev' into add_aws_account_id_config
tannalynn Oct 21, 2024
c8f18d4
Update CHANGELOG.md
tannalynn Oct 21, 2024
5f8f2b0
DD templating: conditionally invoke requires
fallwith Oct 21, 2024
1c6d8a3
DD: require only prepend OR chain DD code
fallwith Oct 21, 2024
9bcd02e
Merge pull request #2917 from newrelic/it_(all)_depends
fallwith Oct 21, 2024
2507052
DD: update the rendering of the 'named' line
fallwith Oct 22, 2024
cf5008a
Merge pull request #2918 from newrelic/myxocyprinus
fallwith Oct 22, 2024
56889c5
Merge pull request #2904 from newrelic/add_aws_account_id_config
tannalynn Oct 22, 2024
300ac4c
bugfix: always apply transformations on booleans
fallwith Oct 24, 2024
12b5b01
Update CHANGELOG.md
fallwith Oct 25, 2024
c472031
Update CHANGELOG.md
fallwith Oct 25, 2024
8a8bd45
CHANGELOG: improve Lambda bugfix summary
fallwith Oct 25, 2024
24faee8
Merge pull request #2920 from newrelic/hammet_to_latimer_to_kurosawa_…
fallwith Oct 25, 2024
9f26380
add .vscode to gitignore
tannalynn Oct 28, 2024
2e4bd33
Add security scan
kaylareopelle Oct 28, 2024
415fe00
Add scan-type: fs
kaylareopelle Oct 29, 2024
75d56e2
chore: Rename build job
kaylareopelle Oct 29, 2024
d7c30b8
Update run conditions
kaylareopelle Oct 29, 2024
fad51f8
Add bundling step
kaylareopelle Oct 29, 2024
bfed2c0
bundle after checkout
kaylareopelle Oct 29, 2024
059d7f3
Merge pull request #2924 from newrelic/tigger-envy
kaylareopelle Oct 29, 2024
c3bc266
Merge pull request #2923 from newrelic/add_to_gitignore
tannalynn Oct 30, 2024
e1b035f
Prerelease 9.15.0-pre (#2927)
github-actions[bot] Oct 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions .github/versions.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
---
# This file is consumed by lib/tasks/gha.rake
ruby/setup-ruby:
:tag: v1.191.0
:sha: 52753b7da854d5c07df37391a986c76ab4615999
:tag: v1.196.0
:sha: f26937343756480a8cb3ae1f623b9c8d89ed6984
actions/checkout:
:tag: v4.1.7
:sha: 692973e3d937129bcbf40652eb9f2f61becf3332
Expand Down Expand Up @@ -36,3 +36,9 @@ adriangl/check-new-commits-action:
softprops/action-gh-release:
:tag: v2.0.8
:sha: c062e08bd532815e2082a85e87e3ef29c3e6d191
aquasecurity/trivy-action:
:tag: v0.28.0
:sha: 915b19bbe73b92a6cf82a1bc12b087c9a19a5fe2
github/codeql-action/upload-sarif:
:tag: v3.27.0
:sha: 662472033e021d55d94146f66f6058822b0b39fd
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag v4.1.7
- uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
- uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: '3.3'
- run: bundle
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libcurl4-nss-dev libsasl2-dev libxslt1-dev

- name: Install Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: ${{ matrix.ruby-version }}

Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:
strategy:
fail-fast: false
matrix:
multiverse: [agent, ai, background, background_2, database, frameworks, httpclients, httpclients_2, rails, rest]
multiverse: [agent, ai, background, background_2, kafka, database, frameworks, httpclients, httpclients_2, rails, rest]
ruby-version: [2.4.10, 3.3.5]

steps:
Expand All @@ -231,7 +231,7 @@ jobs:
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libcurl4-nss-dev libsasl2-dev libxslt1-dev

- name: Install Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: ${{ matrix.ruby-version }}

Expand Down Expand Up @@ -324,7 +324,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag v4.1.7

- name: Install Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: ${{ matrix.ruby-version }}

Expand Down Expand Up @@ -364,7 +364,7 @@ jobs:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag v4.1.7
- uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
- uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: '3.3'
- run: bundle
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/ci_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag v4.1.7
- uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
- uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: '3.3'
- run: bundle
Expand All @@ -36,7 +36,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.8, 3.0.7, 3.1.6, 3.2.5, 3.3.5, 3.4.0-preview1]
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.8, 3.0.7, 3.1.6, 3.2.5, 3.3.5, 3.4.0-preview2]

steps:
- name: Configure git
Expand All @@ -50,7 +50,7 @@ jobs:
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libcurl4-nss-dev libsasl2-dev libxslt1-dev

- name: Install Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: ${{ matrix.ruby-version }}

Expand Down Expand Up @@ -84,7 +84,7 @@ jobs:
"3.3.5": {
"rails": "norails,rails61,rails70,rails71,rails72,railsedge"
},
"3.4.0-preview1": {
"3.4.0-preview2": {
"rails": "norails,rails61,rails70,rails71,rails72"
}
}
Expand Down Expand Up @@ -229,8 +229,8 @@ jobs:
strategy:
fail-fast: false
matrix:
multiverse: [agent, ai, background, background_2, database, frameworks, httpclients, httpclients_2, rails, rest]
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.8, 3.0.7, 3.1.6, 3.2.5, 3.3.5, 3.4.0-preview1]
multiverse: [agent, ai, background, background_2, database, kafka, frameworks, httpclients, httpclients_2, rails, rest]
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.8, 3.0.7, 3.1.6, 3.2.5, 3.3.5, 3.4.0-preview2]
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
Expand All @@ -243,7 +243,7 @@ jobs:
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libcurl4-nss-dev libsasl2-dev libxslt1-dev

- name: Install Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: ${{ matrix.ruby-version }}

Expand Down Expand Up @@ -308,14 +308,14 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: [2.7.8, 3.0.7, 3.1.6, 3.2.5, 3.3.5, 3.4.0-preview1]
ruby-version: [2.7.8, 3.0.7, 3.1.6, 3.2.5, 3.3.5, 3.4.0-preview2]
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag v4.1.7

- name: Install Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: ${{ matrix.ruby-version }}

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci_jruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag v4.1.7

- name: Install JRuby
uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: jruby-9.4.8.0

Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag v4.1.7

- name: Install JRuby
uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: jruby-9.4.8.0

Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci_special.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ jobs:
- name: Install OS packages
run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libcurl4-nss-dev libsasl2-dev libxslt1-dev

- name: Install Ruby 3.4.0-preview1
uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
- name: Install Ruby 3.4.0-preview2
uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: 3.4.0-preview1
ruby-version: 3.4.0-preview2

- name: Setup bundler
run: ./.github/workflows/scripts/setup_bundler
env:
RUBY_VERSION: 3.4.0-preview1
RUBY_VERSION: 3.4.0-preview2

- name: Run Unit Tests
uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # tag v3.0.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/config_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
pull-requests: write
steps:
- name: Install Ruby 3.3
uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: 3.3

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/performance_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag v4.1.7
with:
ref: 'main'
- uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
- uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: '3.3'
- run: bundle
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
pull-requests: write
steps:
- name: Install Ruby 3.3
uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: 3.3

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
with:
fetch-depth: 0

- uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
- uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: 3.3

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
contents: write
pull-requests: write
steps:
- uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
- uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: 3.3
- name: Checkout code
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
pull-requests: write
steps:
- name: Install Ruby 3.3
uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: 3.3

Expand Down
69 changes: 69 additions & 0 deletions .github/workflows/security.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Security scan
on:
push:
branches:
- main
- dev
pull_request:
schedule:
- cron: '0 9 * * *' # Same time as CI Cron

jobs:
build:
name: Trivy Scan
runs-on: ubuntu-latest
steps:
- name: Install Ruby 3.3
uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: 3.3

- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag v4.1.7

- run: bundle # Generate a Gemfile.lock to scan

- name: Run Trivy in table mode
# Table output is only useful when running on a pull request or push.
if: contains(fromJSON('["push", "pull_request"]'), github.event_name)
uses: aquasecurity/trivy-action@915b19bbe73b92a6cf82a1bc12b087c9a19a5fe2 # tag v.0.28.0
with:
scan-type: fs
format: table
exit-code: 1
ignore-unfixed: true
severity: CRITICAL,HIGH,MEDIUM,LOW

- name: Run Trivy in report mode
# Only generate sarif when running nightly on the dev branch.
if: ${{ github.event_name == 'schedule' }}
uses: aquasecurity/trivy-action@915b19bbe73b92a6cf82a1bc12b087c9a19a5fe2 # tag v.0.28.0
with:
scan-type: fs
format: sarif
output: trivy-results.sarif
ignore-unfixed: true
severity: 'CRITICAL,HIGH,MEDIUM,LOW'

- name: Upload Trivy scan results to GitHub Security tab
# Only upload sarif when running nightly on the dev branch.
if: ${{ github.event_name == 'schedule' }}
uses: github/codeql-action/upload-sarif@662472033e021d55d94146f66f6058822b0b39fd # tag v3.27.0
with:
sarif_file: trivy-results.sarif

notify_slack_fail:
name: Notify slack fail
needs: [build]
runs-on: ubuntu-22.04
if: ${{ github.event_name == 'schedule' && failure() }}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag v4.1.7
- uses: ./.github/actions/workflow-conclusion
- uses: voxmedia/github-action-slack-notify-build@3665186a8c1a022b28a1dbe0954e73aa9081ea9e # tag v1.6.0
if: ${{ env.WORKFLOW_CONCLUSION == 'failure' }}
env:
SLACK_BOT_TOKEN: ${{ secrets.RUBY_GITHUB_ACTIONS_BOT_WEBHOOK }}
with:
channel: ruby-agent-notifications
status: FAILED
color: danger
4 changes: 2 additions & 2 deletions .github/workflows/slack_notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
gem_notifications:
runs-on: ubuntu-22.04
steps:
- uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
- uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: 3.3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag v4.1.7
Expand Down Expand Up @@ -47,7 +47,7 @@ jobs:
cve_notifications:
runs-on: ubuntu-22.04
steps:
- uses: ruby/setup-ruby@52753b7da854d5c07df37391a986c76ab4615999 # tag v1.191.0
- uses: ruby/setup-ruby@f26937343756480a8cb3ae1f623b9c8d89ed6984 # tag v1.196.0
with:
ruby-version: 3.3
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # tag v4.1.7
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ lib/new_relic/build.rb
.tm_properties
.bundle
.yardoc
.vscode/
artifacts/
test/performance/log/
test/performance/script/log/
Expand Down
36 changes: 32 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,36 @@
# New Relic Ruby Agent Release Notes

## v9.15.0

Version 9.15.0 updates View Componment instrumentation to use a default metric name when one is unavailable, adds a configuration option to associate the AWS account ID with the DynamoDB calls from the AWS SDK, resolves a bug in rdkafka instrumentation when using the karafka-rdkafka gem, resolves a bug in the ruby-kafka instrumentation, fixes a bug with Grape instrumentation, and addresses a bug preventing the agent from running in serverless mode in an AWS Lambda layer.

- **Feature: New configuration option cloud.aws.account_id**

A new configuration option has been added, `cloud.aws.account_id`, that will allow New Relic to provide more details about certain calls made using the AWS SDK. One example, is that relationships between AWS services instrumented with New Relic's CloudWatch Metric Streams will have relationships formed in the service map with APM applications. Currently, the DynamoDB instrumentation is the only instrumentation that will make use of this configuration option, but this will be used in future instrumentation as well. [PR#2904](https://github.com/newrelic/newrelic-ruby-agent/pull/2904)

- **Feature: Use default `View/component` metric name for unidentified View Components**

Previously, when a View Component metric name could not be identified, the agent would set the name as `nil`. Now, the agent defaults to using `View/component` as the metric name when one can not be identified. [PR#2907](https://github.com/newrelic/newrelic-ruby-agent/pull/2907)

- **Bugfix: Instrumentation errors when using the karafka-rdkafka gem**

Due to version differences between the rdkafka gem and karafka-rdkafka gem, the agent could encounter an error when it tried to install rdkafka instrumentation. This has now been resolved. Thank you to @krisdigital for bringing this issue to our attention. [PR#2880](https://github.com/newrelic/newrelic-ruby-agent/pull/2880)

- **Bugfix: Stop calling deprecated all_specs method to check for the presence of newrelic-grape**

In 9.14.0, we released a fix for calls to the deprecated `Bundler.rubygems.all_specs`, but the fix fell short for the agent's Grape instrumentation and deprecation warnings could still be raised. The condition has been simplified and deprecation warnings should no longer be raised. Thank you, [@excelsior](https://github.com/excelsior) for bringing this to our attention. [Issue#2885](https://github.com/newrelic/newrelic-ruby-agent/issues/2885) [PR#2906](https://github.com/newrelic/newrelic-ruby-agent/pull/2906)

- **Bugfix: Instrumentation errors when using the ruby-kafka gem**

Kafka::Consumer#each_message takes keyword arguments, while the prepended method is defined with a single splat positional argument. In Ruby >= 3.0, this signature mismatch raises an ArgumentError. Thank you [@patrickarnett](https://github.com/patrickarnett) for providing this bugfix. [PR#2915](https://github.com/newrelic/newrelic-ruby-agent/pull/2915)

- **Bugfix: Restore AWS Lambda layer operational functionality**

Version 9.14.0 of the agent introduced an optimization related to how the agent handles boolean configuration parameters which inadvertently caused the agent to stop operating properly in an AWS Lambda layer context. [Issue#2919](https://github.com/newrelic/newrelic-ruby-agent/issues/2919)[PR#2920](https://github.com/newrelic/newrelic-ruby-agent/pull/2920)

## v9.14.0

Version 9.14.0 adds Apache Kafka instrumentation for the rdkafka and ruby-kafka gems, introduces a configuration-based, automatic way to add custom instrumentation method tracers, correctly captures MIME type for AcionDispatch 7.0+ requests, properly handles Boolean coercion for `newrelic.yml` configuration, fixes a JRuby bug in the configuration manager, fixes a bug related to `Bundler.rubygems.installed_specs`, and fixes a bug to make the agent compatible with ViewComponent v3.15.0+.
Version 9.14.0 adds Apache Kafka instrumentation for the rdkafka and ruby-kafka gems, introduces a configuration-based, automatic way to add custom instrumentation method tracers, correctly captures MIME type for ActionDispatch 7.0+ requests, properly handles Boolean coercion for `newrelic.yml` configuration, fixes a JRuby bug in the configuration manager, fixes a bug related to `Bundler.rubygems.installed_specs`, and fixes a bug to make the agent compatible with ViewComponent v3.15.0+.

- **Feature: Add Apache Kafka instrumentation for the rdkafka and ruby-kafka gems**

Expand Down Expand Up @@ -42,21 +70,21 @@ Version 9.14.0 adds Apache Kafka instrumentation for the rdkafka and ruby-kafka
- MyCompany::User.notify
```

That configuration example uses YAML array syntax to specify both methods. Alternatively, a comma-delimited string can be used instead:
That configuration example uses YAML array syntax to specify both methods. Alternatively, you can use a comma-delimited string:

```
automatic_custom_instrumentation_method_list: 'MyCompany::Image#render_png, MyCompany::User.notify'
```

Whitespace around the comma(s) in the list is optional. When configuring the agent with a list of methods via the `NEW_RELIC_AUTOMATIC_CUSTOM_INSTRUMENTATION_METHOD_LIST` environment variable, this comma-delimited string format should be used:
Whitespace around the comma(s) in the list is optional. When configuring the agent with a list of methods via the `NEW_RELIC_AUTOMATIC_CUSTOM_INSTRUMENTATION_METHOD_LIST` environment variable, use this comma-delimited string format:

```
export NEW_RELIC_AUTOMATIC_CUSTOM_INSTRUMENTATION_METHOD_LIST='MyCompany::Image#render_png, MyCompany::User.notify'
```

[PR#2851](https://github.com/newrelic/newrelic-ruby-agent/pull/2851)

- **Feature: Collect just MIME type for AcionDispatch 7.0+ requests**
- **Feature: Collect just MIME type for ActionDispatch 7.0+ requests**

Rails 7.0 [introduced changes](https://guides.rubyonrails.org/upgrading_ruby_on_rails.html#actiondispatch-request-content-type-now-returns-content-type-header-as-it-is) to the behavior of `ActionDispatch::Request#content_type`, adding extra request-related details the agent wasn't expecting to collect. Additionally, the agent's use of `content_type ` was triggering deprecation warnings. The agent now uses `ActionDispatch::Request#media_type` to capture the MIME type. Thanks to [@internethostage](https://github.com/internethostage) for letting us know about this change. [Issue#2500](https://github.com/newrelic/newrelic-ruby-agent/issues/2500) [PR#2855](https://github.com/newrelic/newrelic-ruby-agent/pull/2855)

Expand Down
Loading
Loading