forked from DataDog/dd-trace-rb
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into base-merge
* master: (98 commits) DEBUG-2334 Remove old ddtrace require from tracing benchmarks (DataDog#3783) Avoid environment starts with number Add more variables for artifacts unpack `git fetch` before rev-parse Use ruby image that has `git` installed Provide versions Fixed: RSpec #log_deprecation matcher error when log is limited. Remove internal entry from changelog Update lockfiles for release 2.2.0 Bump version 2.1.0 to 2.2.0 Add 2.2.0 to CHANGELOG.md Add VSCode extension recommendations Add `ruby-lsp` gem [PROF-3760] Revert "Merge pull request DataDog#3760 from DataDog/ivoanjo/prof-10123-placeholder-missing-allocations" [PROF-10112] Also simplify actionview templates with three underscores remove duplicated comments Use ActiveSupport events to instrument ActiveSupport::Cache [PROF-10125] Track unscaled allocation counts in allocation profiler Bootstrap new profile value type for unscaled counts apply static analysis proposed fixes ...
- Loading branch information
Showing
506 changed files
with
5,177 additions
and
2,151 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
name: Bug report | ||
name: 🐛 Bug report | ||
about: File a bug report | ||
title: '' | ||
labels: community, bug | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: ℹ️ Datadog Support | ||
url: https://www.datadoghq.com/support/ | ||
about: Get help from the Datadog support team |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
on: [push] | ||
|
||
name: Datadog Software Composition Analysis | ||
|
||
jobs: | ||
software-composition-analysis: | ||
runs-on: ubuntu-latest | ||
name: Datadog SBOM Generation and Upload | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up Ruby | ||
uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
ruby-version: "3.3" | ||
- name: Check imported libraries are secure and compliant | ||
id: datadog-software-composition-analysis | ||
uses: DataDog/datadog-sca-github-action@main | ||
with: | ||
dd_api_key: ${{ secrets.DD_API_KEY }} | ||
dd_app_key: ${{ secrets.DD_APP_KEY }} | ||
dd_service: dd-trace-rb | ||
dd_env: ci | ||
dd_site: datadoghq.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
on: [push] | ||
|
||
name: Datadog Static Analysis | ||
|
||
jobs: | ||
static-analysis: | ||
runs-on: ubuntu-latest | ||
name: Datadog Static Analyzer | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Check code meets quality and security standards | ||
id: datadog-static-analysis | ||
uses: DataDog/datadog-static-analyzer-github-action@v1 | ||
with: | ||
dd_api_key: ${{ secrets.DD_API_KEY }} | ||
dd_app_key: ${{ secrets.DD_APP_KEY }} | ||
dd_service: dd-trace-rb | ||
dd_env: ci | ||
dd_site: datadoghq.com | ||
cpu_count: 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"recommendations": [ | ||
"shopify.ruby-lsp", | ||
"editorconfig.editorconfig", | ||
"soutaro.rbs-syntax", | ||
"soutaro.steep-vscode" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,9 @@ REMOVED_GEMS = { | |
'rbs', | ||
'steep', | ||
], | ||
:dev => [ | ||
'ruby-lsp', | ||
], | ||
} | ||
|
||
def appraise(group, &block) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Used to quickly run benchmark under RSpec as part of the usual test suite, to validate it didn't bitrot | ||
VALIDATE_BENCHMARK_MODE = ENV['VALIDATE_BENCHMARK'] == 'true' | ||
|
||
return unless __FILE__ == $PROGRAM_NAME || VALIDATE_BENCHMARK_MODE | ||
|
||
require 'benchmark/ips' | ||
require 'datadog' | ||
require 'pry' | ||
require_relative 'dogstatsd_reporter' | ||
|
||
# This benchmark measures the performance of the hold/resume interruptions used by the DirMonkeyPatches | ||
class ProfilerHoldResumeInterruptions | ||
def create_profiler | ||
Datadog.configure do |c| | ||
c.profiling.enabled = true | ||
end | ||
Datadog::Profiling.wait_until_running | ||
end | ||
|
||
def run_benchmark | ||
Benchmark.ips do |x| | ||
benchmark_time = VALIDATE_BENCHMARK_MODE ? { time: 0.01, warmup: 0 } : { time: 10, warmup: 2 } | ||
x.config( | ||
**benchmark_time, | ||
suite: report_to_dogstatsd_if_enabled_via_environment_variable(benchmark_name: 'profiler_hold_resume_interruptions') | ||
) | ||
|
||
x.report("hold / resume") do | ||
Datadog::Profiling::Collectors::CpuAndWallTimeWorker._native_hold_signals | ||
Datadog::Profiling::Collectors::CpuAndWallTimeWorker._native_resume_signals | ||
end | ||
|
||
x.save! 'profiler_hold_resume_interruptions-results.json' unless VALIDATE_BENCHMARK_MODE | ||
x.compare! | ||
end | ||
end | ||
end | ||
|
||
puts "Current pid is #{Process.pid}" | ||
|
||
ProfilerHoldResumeInterruptions.new.instance_exec do | ||
create_profiler | ||
run_benchmark | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.