Skip to content

Commit a00244d

Browse files
authored
Merge branch 'master' into karafka-tracing
2 parents c88a710 + 8dba6cb commit a00244d

File tree

1,547 files changed

+31854
-42962
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,547 files changed

+31854
-42962
lines changed

Diff for: .circleci/config.yml

+22-18
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ save_bundle_checksum: &save_bundle_checksum
6565
command: |
6666
if [ "$CI_BUNDLE_CACHE_HIT" != 1 ]; then
6767
# Recompute gemfiles/*.lock checksum, as those files might have changed
68-
cat Gemfile Gemfile.lock Appraisals gemfiles/*.gemfile gemfiles/*.gemfile.lock | md5sum > .circleci/bundle_checksum
68+
cat Gemfile Gemfile.lock jruby-*.gemfile ruby-*.gemfile gemfiles/*.gemfile gemfiles/*.gemfile.lock | md5sum > .circleci/bundle_checksum
6969
fi
7070
cp .circleci/bundle_checksum /usr/local/bundle/bundle_checksum
7171
step_bundle_install: &step_bundle_install
@@ -96,21 +96,7 @@ step_compute_bundle_checksum: &step_compute_bundle_checksum
9696
# updating the gemset lock files produces extremely large commits.
9797
command: |
9898
bundle lock # Create Gemfile.lock
99-
cat Gemfile Gemfile.lock Appraisals gemfiles/*.gemfile gemfiles/*.gemfile.lock | md5sum > .circleci/bundle_checksum
100-
step_run_all_tests: &step_run_all_tests
101-
run:
102-
name: Run tests
103-
command: |
104-
# Ensures it's possible to debug hung tests in CI
105-
echo "--format=documentation" >> .rspec-local
106-
107-
# Configure RSpec metadata exporter
108-
echo "
109-
--format=RspecJunitFormatter
110-
--out='/tmp/rspec/-<%= ARGV.join.gsub('/', '-') %>.xml'
111-
" >> .rspec-local
112-
113-
bundle exec rake ci
99+
cat Gemfile Gemfile.lock jruby-*.gemfile ruby-*.gemfile gemfiles/*.gemfile gemfiles/*.gemfile.lock | md5sum > .circleci/bundle_checksum
114100
step_get_test_agent_trace_check_results: &step_get_test_agent_trace_check_results
115101
run:
116102
name: Get APM Test Agent Trace Check Results
@@ -278,10 +264,28 @@ orbs:
278264
- docker-wait:
279265
host: "testagent"
280266
port: 9126
281-
- *step_run_all_tests
267+
- run:
268+
name: Run tests
269+
command: |
270+
ln -s .rspec-local.example .rspec-local
271+
272+
bundle exec rake ci
282273
- *step_get_test_agent_trace_check_results
274+
- run:
275+
name: Upload JUnit reports to Datadog
276+
when: always
277+
command: |
278+
sed -i 's/file="\.\//file="/g' tmp/rspec/*.xml
279+
280+
ls -l tmp/rspec/*.xml
281+
282+
curl -L --fail --retry 3 "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci" && chmod +x /usr/local/bin/datadog-ci
283+
284+
datadog-ci version
285+
286+
DD_ENV=ci DATADOG_API_KEY=$JUNIT_UPLOAD_API_KEY DATADOG_SITE=datadoghq.com datadog-ci junit upload --service dd-trace-rb tmp/rspec/
283287
- store_test_results:
284-
path: /tmp/rspec
288+
path: tmp/rspec
285289
- persist_to_workspace:
286290
root: .
287291
paths:

Diff for: .github/CODEOWNERS

+30-30
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
* @DataDog/ruby-guild
22

33
# Public Documentation
4-
/docs/Compatibility.md @DataDog/documentation
5-
/docs/GettingStarted.md @DataDog/documentation
4+
docs/Compatibility.md @DataDog/documentation
5+
docs/GettingStarted.md @DataDog/documentation
66

77
# Library
8-
/lib/datadog/appsec/ @DataDog/asm-ruby
9-
/lib/datadog/appsec.rb @DataDog/asm-ruby
10-
/lib/datadog/tracing/ @DataDog/tracing-ruby
11-
/lib/datadog/tracing/contrib/ @DataDog/apm-idm-ruby
12-
/lib/datadog/tracing.rb @DataDog/tracing-ruby
13-
/lib/datadog/opentelemetry/ @DataDog/tracing-ruby
14-
/lib/datadog/opentelemetry.rb @DataDog/tracing-ruby
15-
/lib-injection/ @DataDog/tracing-ruby
16-
/lib/datadog/profiling/ @DataDog/profiling-rb @DataDog/ruby-guild
17-
/lib/datadog/profiling.rb @DataDog/profiling-rb @DataDog/ruby-guild
18-
/ext/ @DataDog/profiling-rb @DataDog/ruby-guild
8+
lib/datadog/appsec/ @DataDog/asm-ruby
9+
lib/datadog/appsec.rb @DataDog/asm-ruby
10+
lib/datadog/tracing/ @DataDog/tracing-ruby
11+
lib/datadog/tracing/contrib/ @DataDog/apm-idm-ruby
12+
lib/datadog/tracing.rb @DataDog/tracing-ruby
13+
lib/datadog/opentelemetry/ @DataDog/tracing-ruby
14+
lib/datadog/opentelemetry.rb @DataDog/tracing-ruby
15+
lib-injection/ @DataDog/tracing-ruby
16+
lib/datadog/profiling/ @DataDog/profiling-rb @DataDog/ruby-guild
17+
lib/datadog/profiling.rb @DataDog/profiling-rb @DataDog/ruby-guild
18+
ext/ @DataDog/profiling-rb @DataDog/ruby-guild
1919

2020
# RBS signatures
21-
/sig/datadog/appsec/ @DataDog/asm-ruby
22-
/sig/datadog/appsec.rbs @DataDog/asm-ruby
23-
/sig/datadog/tracing/ @DataDog/tracing-ruby
24-
/sig/datadog/tracing/contrib/ @DataDog/apm-idm-ruby
25-
/sig/datadog/tracing.rbs @DataDog/tracing-ruby
26-
/sig/datadog/opentelemetry/ @DataDog/tracing-ruby
27-
/sig/datadog/opentelemetry.rbs @DataDog/tracing-ruby
28-
/sig/datadog/profiling/ @DataDog/profiling-rb @DataDog/ruby-guild
29-
/sig/datadog/profiling.rbs @DataDog/profiling-rb @DataDog/ruby-guild
21+
sig/datadog/appsec/ @DataDog/asm-ruby
22+
sig/datadog/appsec.rbs @DataDog/asm-ruby
23+
sig/datadog/tracing/ @DataDog/tracing-ruby
24+
sig/datadog/tracing/contrib/ @DataDog/apm-idm-ruby
25+
sig/datadog/tracing.rbs @DataDog/tracing-ruby
26+
sig/datadog/opentelemetry/ @DataDog/tracing-ruby
27+
sig/datadog/opentelemetry.rbs @DataDog/tracing-ruby
28+
sig/datadog/profiling/ @DataDog/profiling-rb @DataDog/ruby-guild
29+
sig/datadog/profiling.rbs @DataDog/profiling-rb @DataDog/ruby-guild
3030

3131
# Specs
32-
/spec/datadog/appsec/ @DataDog/asm-ruby
33-
/spec/datadog/tracing/ @DataDog/tracing-ruby
34-
/spec/datadog/tracing/contrib/ @DataDog/apm-idm-ruby
35-
/spec/datadog/tracing_spec.rb @DataDog/tracing-ruby
36-
/spec/datadog/opentelemetry/ @DataDog/tracing-ruby
37-
/spec/datadog/opentelemetry_spec.rb @DataDog/tracing-ruby
38-
/spec/datadog/profiling/ @DataDog/profiling-rb @DataDog/ruby-guild
39-
/spec/datadog/profiling_spec.rb @DataDog/profiling-rb @DataDog/ruby-guild
32+
spec/datadog/appsec/ @DataDog/asm-ruby
33+
spec/datadog/tracing/ @DataDog/tracing-ruby
34+
spec/datadog/tracing/contrib/ @DataDog/apm-idm-ruby
35+
spec/datadog/tracing_spec.rb @DataDog/tracing-ruby
36+
spec/datadog/opentelemetry/ @DataDog/tracing-ruby
37+
spec/datadog/opentelemetry_spec.rb @DataDog/tracing-ruby
38+
spec/datadog/profiling/ @DataDog/profiling-rb @DataDog/ruby-guild
39+
spec/datadog/profiling_spec.rb @DataDog/profiling-rb @DataDog/ruby-guild

Diff for: .github/ISSUE_TEMPLATE/bug_report.md

-31
This file was deleted.

Diff for: .github/ISSUE_TEMPLATE/bug_report.yaml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: "Bug Report (Low Priority)"
2+
description: "Create a public Bug Report. Note that these may not be addressed as quickly as the helpdesk and that looking up account information will be difficult."
3+
title: "[BUG]: "
4+
labels: community, bug
5+
body:
6+
- type: input
7+
attributes:
8+
label: Tracer Version(s)
9+
description: "Version(s) of the tracer affected by this bug"
10+
placeholder: "1.23.4, 2.8.0"
11+
validations:
12+
required: true
13+
14+
- type: input
15+
attributes:
16+
label: Ruby Version(s)
17+
description: "Version(s) of Ruby (`ruby --version`) that you've encountered this bug with"
18+
placeholder: "ruby 2.7.5p203 (2021-11-24 revision f69aeb8314) [arm64-darwin21]"
19+
validations:
20+
required: true
21+
22+
- type: input
23+
attributes:
24+
label: Relevent Library and Version(s)
25+
description: "The name of a library and version(s) that you've encountered this bug with"
26+
placeholder: "mysql 2.9.1"
27+
validations:
28+
required: false
29+
30+
- type: textarea
31+
attributes:
32+
label: Bug Report
33+
description: Please add a clear and concise description of the bug here
34+
validations:
35+
required: true
36+
37+
- type: textarea
38+
attributes:
39+
label: Reproduction Code
40+
description: Please add code here to help us reproduce the problem
41+
validations:
42+
required: false
43+
44+
- type: textarea
45+
attributes:
46+
label: Configuration Block
47+
description: How is your tracer configured, e.g. `Datadog.configure ...`
48+
validations:
49+
required: false
50+
51+
- type: textarea
52+
attributes:
53+
label: Error Logs
54+
description: "Please provide any error logs from the tracer (`DD_TRACE_DEBUG=true` can help)"
55+
validations:
56+
required: false
57+
58+
- type: input
59+
attributes:
60+
label: Operating System
61+
description: "Provide your operating system and version (e.g. `uname -a`)"
62+
placeholder: Darwin Kernel Version 23.6.0
63+
validations:
64+
required: false
65+
66+
- type: textarea
67+
attributes:
68+
label: How does Datadog help you?
69+
description: "Optionally, tell us why and how you're using datadog, and what your overall experience with it is!"
70+
validations:
71+
required: false

Diff for: .github/ISSUE_TEMPLATE/config.yml

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
1-
blank_issues_enabled: true
1+
blank_issues_enabled: false
22
contact_links:
3-
- name: ℹ️ Datadog Support
4-
url: https://www.datadoghq.com/support/
5-
about: Get help from the Datadog support team
3+
- name: Bug Report (High Priority)
4+
url: https://help.datadoghq.com/hc/en-us/requests/new?tf_1260824651490=pt_product_type:apm&tf_1900004146284=pt_apm_language:ruby
5+
about: Create an expedited Bug Report via the helpdesk (no login required). This will allow us to look up your account and allows you to provide additional information in private.
6+
- name: Feature Request (High Priority)
7+
url: https://help.datadoghq.com/hc/en-us/requests/new?tf_1260824651490=pt_product_type:apm&tf_1900004146284=pt_apm_language:ruby&tf_1260825272270=pt_apm_category_feature_request
8+
about: Create an expedited Feature Request via the helpdesk (no login required). This helps with prioritization and allows you to provide additional information in private.

Diff for: .github/ISSUE_TEMPLATE/feature_request.md

-23
This file was deleted.

Diff for: .github/ISSUE_TEMPLATE/feature_request.yaml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: Feature Request (Low Priority)
2+
description: Create a public Feature Request. Note that these may not be addressed as quickly as the helpdesk and that looking up account information will be difficult.
3+
title: "[FEATURE]: "
4+
labels: community, feature-request
5+
body:
6+
- type: input
7+
attributes:
8+
label: Gem Name
9+
description: "If your feature request is to add instrumentation support for a Ruby gem please provide the gem name here"
10+
placeholder: mysql
11+
validations:
12+
required: false
13+
14+
- type: input
15+
attributes:
16+
label: Gem Version(s)
17+
description: "Please provide the version of the above gem here"
18+
placeholder: 2.9.1
19+
validations:
20+
required: false
21+
22+
- type: textarea
23+
attributes:
24+
label: Describe the goal of the feature
25+
description: A clear and concise goal of what you want to happen.
26+
validations:
27+
required: true
28+
29+
- type: textarea
30+
attributes:
31+
label: Is your feature request related to a problem?
32+
description: |
33+
Please add a clear and concise description of your problem.
34+
E.g. I'm unable to instrument my database queries...
35+
validations:
36+
required: false
37+
38+
- type: textarea
39+
attributes:
40+
label: Describe alternatives you've considered
41+
description: A clear and concise description of any alternative solutions or features you've considered
42+
validations:
43+
required: false
44+
45+
- type: textarea
46+
attributes:
47+
label: Additional context
48+
description: Add any other context or screenshots about the feature request here
49+
validations:
50+
required: false
51+
52+
- type: textarea
53+
attributes:
54+
label: How does Datadog help you?
55+
description: "Optionally, tell us why and how you're using datadog, and what your overall experience with it is!"
56+
validations:
57+
required: false

Diff for: .github/dependency_filters.yml

-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
dependencies:
22
- Gemfile
33
- '*.gemfile'
4-
- Appraisals
54
- datadog.gemspec
6-
- tasks/appraisal.rake
75
- tasks/dependency.rake
86
- .github/workflows/lock-dependency.yml
97
- lib/datadog/version.rb

0 commit comments

Comments
 (0)