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

add AWS xray sdk for apm testing purposes #668

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 3.1.4
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ gem 'auth0', '~> 4.17', require: false
# Locking above vulnerable version https://nvd.nist.gov/vuln/detail/CVE-2019-5477
gem 'nokogiri', '>= 1.13.9'

# AWS XRAY sdk used for APM testing
gem 'aws-xray-sdk', require: ['aws-xray-sdk/facets/rails/railtie']

group :development, :test do
gem 'brakeman', require: false
gem 'byebug', platforms: %i[mri mingw x64_mingw]
Expand Down
8 changes: 8 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,14 @@ GEM
aws-sdk-core (~> 3, >= 3.127.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.4)
aws-sdk-xray (1.4.0)
aws-sdk-core (~> 3)
aws-sigv4 (~> 1.0)
aws-sigv4 (1.5.0)
aws-eventstream (~> 1, >= 1.0.2)
aws-xray-sdk (0.15.0)
aws-sdk-xray (~> 1.4.0)
multi_json (~> 1)
base64 (0.1.1)
bigdecimal (3.1.4)
bindex (0.8.1)
Expand Down Expand Up @@ -243,6 +249,7 @@ GEM
libv8-node (~> 18.16.0.0)
minitest (5.20.0)
msgpack (1.7.1)
multi_json (1.15.0)
multi_xml (0.6.0)
multipart-post (2.3.0)
mutex_m (0.1.2)
Expand Down Expand Up @@ -474,6 +481,7 @@ PLATFORMS
DEPENDENCIES
auth0 (~> 4.17)
aws-sdk-s3
aws-xray-sdk
bootsnap (>= 1.1.0)
brakeman
byebug
Expand Down
7 changes: 7 additions & 0 deletions config/initializers/aws_xray.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Rails.application.config.xray = {
# default segment name generated by XRay middleware
name: 'apm_rmi',
patch: %I[net_http aws_sdk],
# record db transactions as subsegments
active_record: true
}