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.9.0 #2561

Merged
merged 94 commits into from
Apr 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
94 commits
Select commit Hold shift + click to select a range
79d0b4a
serverless mode WIP
fallwith Feb 10, 2024
2bceb3d
added ServerlessHandler's primary layer entrypoint
fallwith Feb 23, 2024
b770483
serverless: cold start and supportability metrics
fallwith Feb 27, 2024
9e2c9d7
ServerlessHandler: address remaining TODOs
fallwith Feb 29, 2024
ec1d1da
ServerlessHandler fixes and tests
fallwith Mar 1, 2024
74a3420
standardrb style RuboCop fix
fallwith Mar 1, 2024
64e8c1b
ServerlessHandler: rename entrypoint
fallwith Mar 2, 2024
aad4faf
ServerlessHandler: use named args everywhere
fallwith Mar 2, 2024
b660aa6
Tests: DistributedTracePayload#connected? removal
fallwith Mar 5, 2024
e903dbf
Additional license key and ready? check fixes
fallwith Mar 6, 2024
eb7635b
serverless tests: require Minitest v5 in areas
fallwith Mar 6, 2024
f8d29bf
"short lived" -> "short-lived"
fallwith Mar 7, 2024
9ae96b0
serverless_mode.enabled description change
fallwith Mar 12, 2024
ea21e18
Serverless mode enhancements
fallwith Mar 13, 2024
2fb3c61
Serverless: don't bother with the worker thread
fallwith Mar 14, 2024
ded647a
Merge branch 'dev' into final_dragon_phantasy
fallwith Mar 14, 2024
cee2f9a
Merge branch 'dev' into sansgarçon
fallwith Mar 14, 2024
c522fec
Serverless mode updates 2024-03-15
fallwith Mar 16, 2024
4fe4f3b
Merge branch 'sansgarçon' into final_dragon_phantasy
fallwith Mar 17, 2024
fac0098
Serverless mode: all payloads combine in output
fallwith Mar 18, 2024
3fa80a7
Serverless: freeze the method blocklist
fallwith Mar 18, 2024
4aa03a0
Merge pull request #2508 from newrelic/final_dragon_phantasy
fallwith Mar 18, 2024
82f01aa
Serverless: skip YAML, HS, and post-harvest work
fallwith Mar 19, 2024
88d3538
Errors Inbox transaction tracing updates
fallwith Mar 22, 2024
745e329
Serverless: v1 payload format
fallwith Mar 22, 2024
58e0c8b
serverless v1 and agent attribute changes
fallwith Mar 23, 2024
c70cc65
serverless: no newline output, debug
fallwith Mar 23, 2024
b5762f5
Reorder dispatchers check
hannahramadan Mar 25, 2024
932bcbd
Merge pull request #2530 from newrelic/update_dispatchers_order
hannahramadan Mar 26, 2024
fcf8460
serverless: use _strict_ Base64 encoding
fallwith Mar 27, 2024
4151f66
Add AI Monitoring section
hannahramadan Mar 27, 2024
2b03eae
Merge pull request #2521 from newrelic/hamartia
fallwith Mar 27, 2024
4d30a97
Update lib/tasks/config.rake
hannahramadan Mar 27, 2024
d70c599
Merge pull request #2531 from newrelic/ai_monitoring_config_description
hannahramadan Mar 27, 2024
00ce960
serverless: go more guttural with metric_data
fallwith Mar 27, 2024
2aad9d5
Move LLM class method tests into llm_test file
kaylareopelle Mar 28, 2024
582eab1
Add tests for OpenAI behavior within Net::HTTP
kaylareopelle Mar 28, 2024
725ee86
Add tests for event attribute validation
hannahramadan Mar 28, 2024
9eef713
rubocop
hannahramadan Mar 28, 2024
ec4269b
Add begin to block with rescue
kaylareopelle Mar 28, 2024
02324b8
Update changelog
hannahramadan Mar 28, 2024
51f8bc7
Update CHANGELOG.md
hannahramadan Mar 28, 2024
46c2dfb
Ensure catching empty values, along with nils
hannahramadan Mar 28, 2024
77e8522
simplify tests for AI header setting / not setting
fallwith Mar 28, 2024
47e5771
Merge pull request #2536 from newrelic/net-http-openai-tests_fallwith
kaylareopelle Mar 29, 2024
5f4e8b8
serverless: logs and errors
fallwith Mar 29, 2024
87cd4bc
serverless: error_data format fix
fallwith Mar 29, 2024
3585f2d
Apply suggestions from code review
hannahramadan Mar 29, 2024
7bf893a
Refactor test to remove Mocha calls
kaylareopelle Mar 29, 2024
ab54006
serverless: format errorr_data correctly
fallwith Mar 29, 2024
0084d34
Merge pull request #2535 from newrelic/llm_event_attributes_tests
hannahramadan Mar 29, 2024
3de885e
serverless: no support for custom attributes
fallwith Mar 29, 2024
332e1df
serverless custom attrs: agent not always present
fallwith Mar 29, 2024
efbc5da
serverless: support payload formats 1 and 2
fallwith Mar 29, 2024
0a787fd
Merge pull request #2528 from newrelic/sophocles
fallwith Mar 29, 2024
fcf6d40
align with 2530
fallwith Mar 29, 2024
9ffe054
Merge pull request #2534 from newrelic/net-http-openai-tests
kaylareopelle Mar 29, 2024
00c895e
serverless: extra metadata for payload v2
fallwith Apr 2, 2024
ffc1888
NR URL downcasing
fallwith Apr 4, 2024
e3a0cd5
Update watched gems
hannahramadan Apr 4, 2024
84c7de5
Update Elasticsearch 8 image to 8.13.0
kaylareopelle Apr 5, 2024
d02b02a
serverless config: reference the docs
fallwith Apr 5, 2024
ecf0d2c
Merge branch 'dev' into sansgarçon
fallwith Apr 5, 2024
370b2c0
Merge pull request #2474 from newrelic/sansgarçon
fallwith Apr 5, 2024
f7e85cc
remove 'config' dir from project root
fallwith Apr 9, 2024
cda8672
Configuration: support allowlists
fallwith Apr 10, 2024
aca2a55
Add variable args to perform_request_with_tracing
kaylareopelle Apr 5, 2024
bca2ef8
Require OpenStruct where missing in tests
kaylareopelle Apr 11, 2024
4c5db6e
Fix unused variable warnings in unit tests
kaylareopelle Apr 11, 2024
21ff123
Merge pull request #2547 from newrelic/ostruct-fix
kaylareopelle Apr 11, 2024
038b6a1
Merge branch 'dev' into issue_2501_remove_config_directory_from_proje…
fallwith Apr 11, 2024
3604b29
Merge branch 'dev' into adamantine_forge
fallwith Apr 11, 2024
42a7bb1
Update CHANGELOG
kaylareopelle Apr 11, 2024
4a44b9c
Add underscores to unused method arguments
kaylareopelle Apr 11, 2024
92289f5
Revert linting changes
kaylareopelle Apr 11, 2024
5fff1e7
Add Stripe
hannahramadan Apr 11, 2024
56e75d6
Alphabetize list
hannahramadan Apr 11, 2024
e7f55a2
Merge pull request #2543 from newrelic/elasticsearch-fix
kaylareopelle Apr 11, 2024
f6f1404
Merge branch 'dev' into issue_2501_remove_config_directory_from_proje…
fallwith Apr 11, 2024
2a2dac8
Merge branch 'dev' into adamantine_forge
fallwith Apr 11, 2024
30b85b9
Merge pull request #2545 from newrelic/issue_2501_remove_config_direc…
fallwith Apr 12, 2024
642ca83
remove unnecessary :: prefix
fallwith Apr 12, 2024
cae2356
Merge branch 'dev' into adamantine_forge
fallwith Apr 12, 2024
15cf26b
Config allowlists: let config handle validation
fallwith Apr 12, 2024
8ff155a
remove 8T test related to config allowlist
fallwith Apr 12, 2024
47b4f48
Merge pull request #2552 from newrelic/fix-unused-variable-warnings
kaylareopelle Apr 12, 2024
c71bc05
Merge pull request #2546 from newrelic/adamantine_forge
fallwith Apr 12, 2024
ea362b0
Merge pull request #2542 from newrelic/core_tech_notifications
hannahramadan Apr 12, 2024
4c06b5c
serverless changelog entry
fallwith Apr 15, 2024
a81ad20
Merge pull request #2558 from newrelic/serverless_changelog_entry
fallwith Apr 15, 2024
c6754d4
bump version
newrelic-ruby-agent-bot Apr 15, 2024
877ac43
Merge pull request #2560 from newrelic/prerelease_updates_9.9.0-pre
fallwith Apr 15, 2024
6f3af4a
GHA checkout@v3 -> checkout@v4
fallwith Apr 16, 2024
b1b72dd
Merge pull request #2566 from newrelic/checkout_v4
fallwith Apr 16, 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
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2
- uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # tag v1.165.1
with:
ruby-version: '3.3'
Expand All @@ -40,7 +40,7 @@ jobs:
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2

# - curl is needed for Curb
# - xslt is needed for older Nokogiris, RUBY_VERSION < 2.5
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
--health-timeout 5s
--health-retries 10
elasticsearch8:
image: elasticsearch:8.4.2
image: elasticsearch:8.13.0
env:
discovery.type: single-node
xpack.security.enabled: false
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2

# - curl is needed for Curb
# - xslt is needed for older Nokogiris, RUBY_VERSION < 2.5
Expand Down Expand Up @@ -294,7 +294,7 @@ jobs:
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2

- name: Install Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # tag v1.165.1
Expand Down Expand Up @@ -336,7 +336,7 @@ jobs:
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2
- uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # tag v1.165.1
with:
ruby-version: '3.1'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/ci_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2
- uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # tag v1.165.1
with:
ruby-version: '3.2'
Expand All @@ -41,7 +41,7 @@ jobs:
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2

# - curl is needed for Curb
# - xslt is needed for older Nokogiris, RUBY_VERSION < 2.5
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2

# - curl is needed for Curb
# - xslt is needed for older Nokogiris, RUBY_VERSION < 2.5
Expand Down Expand Up @@ -282,7 +282,7 @@ jobs:
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2

- name: Install Ruby ${{ matrix.ruby-version }}
uses: ruby/setup-ruby@360dc864d5da99d54fcb8e9148c14a84b90d3e88 # tag v1.165.1
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 @@ -13,7 +13,7 @@ jobs:
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2

- name: Install JRuby
uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # tag v1.162.0
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
run: 'git config --global init.defaultBranch main'

- name: Check out the source code
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2

- name: Install JRuby
uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # tag v1.162.0
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/config_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
ruby-version: 3.2

- name: Checkout code
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2

- run: bundle

Expand Down Expand Up @@ -57,10 +57,10 @@ jobs:
if: failure()
steps:
- name: Checkout agent repository
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2

- name: Checkout docs website repository
uses: actions/checkout@v3
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2
with:
repository: ${{ env.DESTINATION_REPO }}
token: ${{ secrets.NEWRELIC_RUBY_AGENT_BOT_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/performance_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
outputs:
changed: ${{ steps.branch_change_output.outputs.has-new-commits }}
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2
- name: check branch changes
id: branch_change_output
uses: adriangl/check-new-commits-action@6556947ca20c2047ed733894258186619b84d282 # tag v1.0.6
Expand All @@ -30,15 +30,15 @@ jobs:
run:
working-directory: ./test/performance
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2
with:
ref: 'main'
- uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # tag v1.162.0
with:
ruby-version: '3.2'
- run: bundle
- run: bundle exec script/runner -B
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2
- run: bundle
- run: bundle exec script/runner -C -M > performance_results.md
- name: Save performance results
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr_closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
permissions: write-all
steps:
- name: Clone the repo
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2
- name: issue_closer Action
uses: ./.github/actions/issue_closer # no tag - locally sourced
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
ruby-version: 3.2

- name: Checkout code
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2

- run: bundle

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
contents: write
repository-projects: write
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2
with:
fetch-depth: 0

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release_notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
ruby-version: 3.2
- name: Checkout code
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2

- name: Generate release notes and environment variables
run: |
Expand Down Expand Up @@ -57,13 +57,13 @@ jobs:
if: failure()
steps:
- name: Checkout agent repository
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2

- name: Get branch name
run: echo "branch_name=$(ruby -r $PWD/.github/workflows/scripts/generate_release_notes.rb -e GenerateReleaseNotes.new.branch_name)" >> $GITHUB_ENV

- name: Checkout docs website repository
uses: actions/checkout@v3
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2
with:
repository: newrelic/docs-website
token: ${{ secrets.NEWRELIC_RUBY_AGENT_BOT_TOKEN }}
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 @@ -19,7 +19,7 @@ jobs:
ruby-version: 3.2

- name: Checkout code
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2

- run: bundle

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/repolinter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
return data.data && data.data.default_branch === context.ref.split('/').slice(-1)[0]
- name: Checkout Self
if: ${{ steps.default-branch.outputs.result == 'true' }}
uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2
- name: Run Repolinter
if: ${{ steps.default-branch.outputs.result == 'true' }}
uses: newrelic/repolinter-action@3f4448f855c351e9695b24524a4111c7847b84cb # tag v1.7.0
Expand Down
17 changes: 11 additions & 6 deletions .github/workflows/slack_notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
- uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # tag v1.162.0
with:
ruby-version: 3.2
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2
- run: gem install httparty
- name: Check for outdated gems
run: ruby .github/workflows/scripts/slack_notifications/gem_notifier.rb ${{ env.gems }}
Expand All @@ -22,28 +22,33 @@ jobs:
bunny
dalli
delayed_job
elasticsearch
excon
http
httpclient
mongo
puma
sidekiq
sinatra
tilt
rack
rails
rake
redis
resque
unicorn"
roda
ruby-openai
sidekiq
sinatra
stripe
tilt
unicorn
view_component"

cve_notifications:
runs-on: ubuntu-22.04
steps:
- uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # tag v1.162.0
with:
ruby-version: 3.2
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2
- run: gem install httparty
- run: gem install feedjira
- name: Check for CVEs
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # tag v3.5.0
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # tag v4.1.2
- name: Setup Ruby
uses: ruby/setup-ruby@af848b40be8bb463a751551a1180d74782ba8a72 # tag v1.162.0
with:
Expand Down
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1249,10 +1249,12 @@ Style/MethodCallWithArgsParentheses:
- add_dependency
- add_development_dependency
- catch
- debug
- expect
- fail
- gem
- include
- info
- print
- puts
- pp
Expand Down
20 changes: 18 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# New Relic Ruby Agent Release Notes

## v9.9.0

Version 9.9.0 introduces support for AWS Lambda serverless function observability, adds support for Elasticsearch 8.13.0, and adds the 'request.temperature' attribute to chat completion summaries in ruby-openai instrumentation.

- **Feature: Serverless Mode for AWS Lambda**

The Ruby agent is now capable of operating in a quick and light serverless mode suitable for observing AWS Lambda function invocations. For serverless use, the agent is delivered by a New Relic Lambda [layer](https://github.com/newrelic/newrelic-lambda-layers) that can be associated with a Lambda function. All reported data will appear in New Relic's dedicated serverless UI views. Only AWS based Lambda functions are supported for now, though support for other cloud hosted serverless offerings may be added in future depending on Ruby customer demand. The serverless functionality is only intended for use with the official New Relic Ruby layers for Lambda. Any existing workflows that involve the manual use of the Ruby agent in an AWS Lambda context without a New Relic layer should not be impacted.

- **Feature: Add support for Elasticsearch 8.13.0**

Elasticsearch 8.13.0 increased the number of arguments used in the method the agent instruments, `Elastic::Transport::Client#perform_request`. Now, the agent supports a variable number of arguments for the instrumented method to prevent future `ArgumentError`s.

- **Bugfix: Add 'request.temperature' to ruby-openai chat completion summaries**

Previously, the agent was not reporting the `request.temperature` attribute on `LlmChatCompletionSummary` events through ruby-openai instrumentation. We are now reporting this attribute.

## v9.8.0

Version 9.8.0 introduces instrumentation for ruby-openai, adds the option to store tracer state on the thread-level, hardens the browser agent insertion logic to better proactively anticipate errors, and prevents excpetions from being raised in the Active Support Broadcast logger instrumentation.
Expand All @@ -15,7 +31,7 @@ Version 9.8.0 introduces instrumentation for ruby-openai, adds the option to sto
This version introduces two new APIs that allow users to record additional information on LLM events:
* `NewRelic::Agent.record_llm_feedback_event` - Records user feedback events.
* `NewRelic::Agent.set_llm_token_count_callback` - Sets a callback proc for calculating `token_count` attributes for embedding and chat completion message events.

Visit [RubyDoc](https://rubydoc.info/github/newrelic/newrelic-ruby-agent/) for more information on each of these APIs.

- **Feature: Store tracer state on thread-level**
Expand Down Expand Up @@ -49,7 +65,7 @@ Version 9.7.0 introduces ViewComponent instrumentation, changes the endpoint use

- **Feature: ViewComponent instrumentation**

[ViewComponent](https://viewcomponent.org/) is a now an instrumented library. [PR#2367](https://github.com/newrelic/newrelic-ruby-agent/pull/2367)
[ViewComponent](https://viewcomponent.org/) is a now an instrumented library. [PR#2367](https://github.com/newrelic/newrelic-ruby-agent/pull/2367)

- **Feature: Use root path to access Elasticsearch cluster name**

Expand Down
5 changes: 0 additions & 5 deletions config/database.yml

This file was deleted.

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ services:
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
mem_limit: 1g
elasticsearch8:
image: elasticsearch:8.4.2
image: elasticsearch:8.13.0
ports:
- "9250:9250"
environment:
Expand Down
13 changes: 1 addition & 12 deletions infinite_tracing/lib/infinite_tracing/config.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,18 +118,7 @@ def compression_enabled?
end

def compression_level
@compression_level ||= begin
level = if COMPRESSION_LEVEL_LIST.include?(configured_compression_level)
configured_compression_level
else
NewRelic::Agent.logger.error("Invalid compression level '#{configured_compression_level}' specified! " \
"Must be one of #{COMPRESSION_LEVEL_LIST.join('|')}. Using default level " \
"of '#{COMPRESSION_LEVEL_DEFAULT}'")
COMPRESSION_LEVEL_DEFAULT
end
NewRelic::Agent.logger.debug("Infinite Tracer compression level set to #{level}")
level
end
@compression_level ||= configured_compression_level
end

def configured_compression_level
Expand Down
14 changes: 0 additions & 14 deletions infinite_tracing/test/infinite_tracing/config_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,20 +124,6 @@ def test_compression_enabled_returns_false
end
end

def test_invalid_compression_level
reset_compression_level
logger = MiniTest::Mock.new
logger.expect :error, nil, [/Invalid compression level/]
logger.expect :debug, nil, [/compression level set to/]

with_config({'infinite_tracing.compression_level': :bogus}) do
NewRelic::Agent.stub :logger, logger do
assert_equal Config::COMPRESSION_LEVEL_DEFAULT, Config.compression_level
logger.verify
end
end
end

private

def non_test_files
Expand Down
Loading
Loading