skywalking 0.0.0.alpha → 0.0.0.beta1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (161) hide show
  1. checksums.yaml +4 -4
  2. data/.dockerignore +19 -0
  3. data/.github/PULL_REQUEST_TEMPLATE +42 -0
  4. data/.github/workflows/ci.yml +70 -0
  5. data/.github/workflows/e2e.yml +73 -0
  6. data/.gitignore +80 -0
  7. data/.gitmodules +18 -0
  8. data/.licenserc.yaml +36 -0
  9. data/.rspec +1 -2
  10. data/.rubocop.yml +6 -0
  11. data/CHANGELOG.md +3 -0
  12. data/Gemfile +20 -0
  13. data/NOTICE +1 -1
  14. data/docs/README.md +7 -0
  15. data/docs/en/agent/plugins.md +10 -0
  16. data/docs/{How-to-release.md → en/development-and-contribution/how-to-release.md} +6 -5
  17. data/docs/en/setup/quick-start.md +106 -0
  18. data/docs/menu.yml +31 -0
  19. data/lib/rails/generators/skywalking/start_generator.rb +47 -0
  20. data/{examples/rails-demo/config/initializers/skywalking_ruby.rb → lib/rails/generators/skywalking/templates/skywalking_initializer.rb} +0 -2
  21. data/lib/skywalking/agent.rb +5 -5
  22. data/lib/skywalking/configuration.rb +54 -33
  23. data/lib/skywalking/environment.rb +103 -11
  24. data/lib/skywalking/log/logger.rb +1 -1
  25. data/lib/skywalking/plugins/net_http.rb +73 -0
  26. data/lib/skywalking/plugins/redis5.rb +3 -2
  27. data/lib/skywalking/plugins/sinatra.rb +2 -2
  28. data/lib/skywalking/reporter/buffer_trigger.rb +1 -1
  29. data/lib/skywalking/reporter/client/grpc_client.rb +2 -2
  30. data/lib/skywalking/reporter/report.rb +1 -1
  31. data/lib/skywalking/tracing/carrier.rb +9 -8
  32. data/lib/skywalking/tracing/constants.rb +11 -18
  33. data/lib/skywalking/tracing/exit_span.rb +1 -1
  34. data/lib/skywalking/tracing/noop_span.rb +1 -1
  35. data/lib/skywalking/tracing/span.rb +1 -1
  36. data/lib/skywalking/tracing/span_context.rb +4 -4
  37. data/lib/skywalking/tracing/tag.rb +36 -1
  38. data/lib/skywalking/version.rb +1 -1
  39. data/skywalking.gemspec +61 -0
  40. data/spec/fixtures/agent.yaml +33 -0
  41. data/spec/scenarios/common/Dockerfile.agent +26 -0
  42. data/spec/scenarios/common/base-compose.yml +46 -0
  43. data/spec/scenarios/common/common_spec_helper.rb +40 -0
  44. data/spec/scenarios/common/compose_context.rb +39 -0
  45. data/spec/scenarios/common/validator.rb +41 -0
  46. data/spec/scenarios/net_http/docker-compose.yml +49 -0
  47. data/spec/scenarios/net_http/expected.yml +39 -0
  48. data/spec/scenarios/net_http/net_http.rb +33 -0
  49. data/spec/scenarios/net_http/net_http_spec.rb +43 -0
  50. data/spec/scenarios/redis/docker-compose.yml +67 -0
  51. data/spec/scenarios/redis/expected.yml +66 -0
  52. data/{examples/sinatra-demo/sinatra-demo.rb → spec/scenarios/redis/redis.rb} +8 -10
  53. data/spec/scenarios/redis/redis_spec.rb +29 -0
  54. data/spec/scenarios/sinatra/docker-compose.yml +54 -0
  55. data/spec/scenarios/sinatra/expected.yml +38 -0
  56. data/spec/scenarios/sinatra/sinatra.rb +26 -0
  57. data/spec/scenarios/sinatra/sinatra_spec.rb +29 -0
  58. data/spec/skywalking/config_spec.rb +41 -0
  59. data/spec/skywalking/utils/id_gen_spec.rb +26 -0
  60. data/spec/spec_helper.rb +115 -0
  61. metadata +134 -143
  62. data/examples/rails-demo/.dockerignore +0 -47
  63. data/examples/rails-demo/.gitattributes +0 -9
  64. data/examples/rails-demo/.gitignore +0 -34
  65. data/examples/rails-demo/.kamal/hooks/docker-setup.sample +0 -3
  66. data/examples/rails-demo/.kamal/hooks/post-deploy.sample +0 -14
  67. data/examples/rails-demo/.kamal/hooks/post-proxy-reboot.sample +0 -3
  68. data/examples/rails-demo/.kamal/hooks/pre-build.sample +0 -51
  69. data/examples/rails-demo/.kamal/hooks/pre-connect.sample +0 -47
  70. data/examples/rails-demo/.kamal/hooks/pre-deploy.sample +0 -109
  71. data/examples/rails-demo/.kamal/hooks/pre-proxy-reboot.sample +0 -3
  72. data/examples/rails-demo/.kamal/secrets +0 -17
  73. data/examples/rails-demo/.rubocop.yml +0 -8
  74. data/examples/rails-demo/.ruby-version +0 -1
  75. data/examples/rails-demo/Dockerfile +0 -72
  76. data/examples/rails-demo/Gemfile +0 -64
  77. data/examples/rails-demo/README.md +0 -24
  78. data/examples/rails-demo/Rakefile +0 -6
  79. data/examples/rails-demo/app/assets/images/.keep +0 -0
  80. data/examples/rails-demo/app/assets/stylesheets/application.css +0 -10
  81. data/examples/rails-demo/app/controllers/application_controller.rb +0 -4
  82. data/examples/rails-demo/app/controllers/concerns/.keep +0 -0
  83. data/examples/rails-demo/app/helpers/application_helper.rb +0 -2
  84. data/examples/rails-demo/app/javascript/application.js +0 -3
  85. data/examples/rails-demo/app/javascript/controllers/application.js +0 -9
  86. data/examples/rails-demo/app/javascript/controllers/hello_controller.js +0 -7
  87. data/examples/rails-demo/app/javascript/controllers/index.js +0 -4
  88. data/examples/rails-demo/app/jobs/application_job.rb +0 -7
  89. data/examples/rails-demo/app/mailers/application_mailer.rb +0 -4
  90. data/examples/rails-demo/app/models/application_record.rb +0 -3
  91. data/examples/rails-demo/app/models/concerns/.keep +0 -0
  92. data/examples/rails-demo/app/views/layouts/application.html.erb +0 -28
  93. data/examples/rails-demo/app/views/layouts/mailer.html.erb +0 -13
  94. data/examples/rails-demo/app/views/layouts/mailer.text.erb +0 -1
  95. data/examples/rails-demo/app/views/pwa/manifest.json.erb +0 -22
  96. data/examples/rails-demo/app/views/pwa/service-worker.js +0 -26
  97. data/examples/rails-demo/bin/brakeman +0 -7
  98. data/examples/rails-demo/bin/bundle +0 -109
  99. data/examples/rails-demo/bin/dev +0 -2
  100. data/examples/rails-demo/bin/docker-entrypoint +0 -14
  101. data/examples/rails-demo/bin/importmap +0 -4
  102. data/examples/rails-demo/bin/jobs +0 -6
  103. data/examples/rails-demo/bin/kamal +0 -27
  104. data/examples/rails-demo/bin/rails +0 -4
  105. data/examples/rails-demo/bin/rake +0 -4
  106. data/examples/rails-demo/bin/rubocop +0 -8
  107. data/examples/rails-demo/bin/setup +0 -34
  108. data/examples/rails-demo/bin/thrust +0 -5
  109. data/examples/rails-demo/config/application.rb +0 -27
  110. data/examples/rails-demo/config/boot.rb +0 -4
  111. data/examples/rails-demo/config/cable.yml +0 -17
  112. data/examples/rails-demo/config/cache.yml +0 -16
  113. data/examples/rails-demo/config/credentials.yml.enc +0 -1
  114. data/examples/rails-demo/config/database.yml +0 -41
  115. data/examples/rails-demo/config/deploy.yml +0 -116
  116. data/examples/rails-demo/config/environment.rb +0 -5
  117. data/examples/rails-demo/config/environments/development.rb +0 -72
  118. data/examples/rails-demo/config/environments/production.rb +0 -90
  119. data/examples/rails-demo/config/environments/test.rb +0 -53
  120. data/examples/rails-demo/config/importmap.rb +0 -7
  121. data/examples/rails-demo/config/initializers/assets.rb +0 -7
  122. data/examples/rails-demo/config/initializers/content_security_policy.rb +0 -25
  123. data/examples/rails-demo/config/initializers/filter_parameter_logging.rb +0 -8
  124. data/examples/rails-demo/config/initializers/inflections.rb +0 -16
  125. data/examples/rails-demo/config/locales/en.yml +0 -31
  126. data/examples/rails-demo/config/puma.rb +0 -41
  127. data/examples/rails-demo/config/queue.yml +0 -18
  128. data/examples/rails-demo/config/recurring.yml +0 -10
  129. data/examples/rails-demo/config/routes.rb +0 -14
  130. data/examples/rails-demo/config/storage.yml +0 -34
  131. data/examples/rails-demo/config.ru +0 -6
  132. data/examples/rails-demo/db/cable_schema.rb +0 -11
  133. data/examples/rails-demo/db/cache_schema.rb +0 -14
  134. data/examples/rails-demo/db/queue_schema.rb +0 -129
  135. data/examples/rails-demo/db/seeds.rb +0 -9
  136. data/examples/rails-demo/lib/tasks/.keep +0 -0
  137. data/examples/rails-demo/log/.keep +0 -0
  138. data/examples/rails-demo/public/400.html +0 -114
  139. data/examples/rails-demo/public/404.html +0 -114
  140. data/examples/rails-demo/public/406-unsupported-browser.html +0 -114
  141. data/examples/rails-demo/public/422.html +0 -114
  142. data/examples/rails-demo/public/500.html +0 -114
  143. data/examples/rails-demo/public/icon.png +0 -0
  144. data/examples/rails-demo/public/icon.svg +0 -3
  145. data/examples/rails-demo/public/robots.txt +0 -1
  146. data/examples/rails-demo/script/.keep +0 -0
  147. data/examples/rails-demo/storage/.keep +0 -0
  148. data/examples/rails-demo/test/application_system_test_case.rb +0 -5
  149. data/examples/rails-demo/test/controllers/.keep +0 -0
  150. data/examples/rails-demo/test/fixtures/files/.keep +0 -0
  151. data/examples/rails-demo/test/helpers/.keep +0 -0
  152. data/examples/rails-demo/test/integration/.keep +0 -0
  153. data/examples/rails-demo/test/mailers/.keep +0 -0
  154. data/examples/rails-demo/test/models/.keep +0 -0
  155. data/examples/rails-demo/test/system/.keep +0 -0
  156. data/examples/rails-demo/test/test_helper.rb +0 -15
  157. data/examples/rails-demo/tmp/.keep +0 -0
  158. data/examples/rails-demo/tmp/pids/.keep +0 -0
  159. data/examples/rails-demo/tmp/storage/.keep +0 -0
  160. data/examples/rails-demo/vendor/.keep +0 -0
  161. data/examples/rails-demo/vendor/javascript/.keep +0 -0
@@ -0,0 +1,29 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ require_relative '../common/common_spec_helper'
17
+ require_relative '../common/compose_context'
18
+
19
+ RSpec.describe 'Redis' do
20
+ include CommonSpecHelper
21
+ include_context 'compose'
22
+ include_context 'scenario value'
23
+
24
+ let(:root_dir) { File.expand_path(__dir__) }
25
+
26
+ it 'test redis plugin' do
27
+ test_plugin('redis')
28
+ end
29
+ end
@@ -0,0 +1,54 @@
1
+ #
2
+ # Licensed to the Apache Software Foundation (ASF) under one or more
3
+ # contributor license agreements. See the NOTICE file distributed with
4
+ # this work for additional information regarding copyright ownership.
5
+ # The ASF licenses this file to You under the Apache License, Version 2.0
6
+ # (the "License"); you may not use this file except in compliance with
7
+ # the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+ #
17
+
18
+ version: "2.1"
19
+
20
+ services:
21
+ oap:
22
+ extends:
23
+ file: ../common/base-compose.yml
24
+ service: oap
25
+ networks:
26
+ - gem
27
+
28
+ service:
29
+ extends:
30
+ file: ../common/base-compose.yml
31
+ service: agent
32
+ ports:
33
+ - "8080:8080"
34
+ volumes:
35
+ - .:/app/spec/scenarios/sinatra
36
+ environment:
37
+ SW_AGENT_SERVICE_NAME: "sinatra"
38
+ healthcheck:
39
+ test: [ "CMD", "bash", "-c", "cat < /dev/null > /dev/tcp/127.0.0.1/8080" ]
40
+ interval: 5s
41
+ timeout: 60s
42
+ retries: 120
43
+ entrypoint:
44
+ - "sh"
45
+ - "-c"
46
+ - "gem install sinatra rackup puma && ruby /app/spec/scenarios/sinatra/sinatra.rb"
47
+ depends_on:
48
+ oap:
49
+ condition: service_healthy
50
+ networks:
51
+ - gem
52
+
53
+ networks:
54
+ gem:
@@ -0,0 +1,38 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The ASF licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ segmentItems:
18
+ - serviceName: sinatra
19
+ segmentSize: ge 1
20
+ segments:
21
+ - segmentId: not null
22
+ spans:
23
+ - operationName: GET:/execute
24
+ parentSpanId: -1
25
+ spanId: 0
26
+ spanLayer: Http
27
+ startTime: gt 0
28
+ endTime: gt 0
29
+ componentId: 12001
30
+ isError: false
31
+ spanType: Entry
32
+ peer: localhost:8080
33
+ skipAnalysis: false
34
+ tags:
35
+ - { key: http.method, value: GET }
36
+ - { key: http.url, value: /execute }
37
+ meterItems: [ ]
38
+ logItems: [ ]
@@ -0,0 +1,26 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ require_relative '../../../lib/skywalking'
17
+ require 'sinatra'
18
+
19
+ Skywalking.start
20
+
21
+ get "/execute" do
22
+ "Hello, SkyWalking!"
23
+ end
24
+
25
+ set :bind, '0.0.0.0'
26
+ set :port, 8080
@@ -0,0 +1,29 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ require_relative '../common/common_spec_helper'
17
+ require_relative '../common/compose_context'
18
+
19
+ RSpec.describe "Sinatra" do
20
+ include CommonSpecHelper
21
+ include_context 'compose'
22
+ include_context 'scenario value'
23
+
24
+ let(:root_dir) { File.expand_path(__dir__) }
25
+
26
+ it 'test sinatra plugin' do
27
+ test_plugin('sinatra')
28
+ end
29
+ end
@@ -0,0 +1,41 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ require 'spec_helper'
17
+
18
+ module Skywalking
19
+ RSpec.describe Configuration do
20
+ it 'load DEFAULTS' do
21
+ config = Configuration.new.agent_config
22
+ expect(config[:service_name]).to eq 'Your_ApplicationName'
23
+ end
24
+
25
+ it 'loads args' do
26
+ config = Configuration.new(service_name: 'sw-ruby').agent_config
27
+ expect(config[:service_name]).to eq 'sw-ruby'
28
+ end
29
+
30
+ it 'loads from yaml' do
31
+ config = Configuration.new(config_file: 'spec/fixtures/agent.yaml').agent_config
32
+ expect(config[:service_name]).to eq 'Ruby-Agent-Development'
33
+ end
34
+
35
+ it 'loads from env' do
36
+ ENV['SW_AGENT_COLLECTOR_BACKEND_SERVICES'] = 'oap:11800'
37
+ config = Configuration.new.agent_config
38
+ expect(config[:collector_backend_services]).to eq 'oap:11800'
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,26 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one or more
2
+ # contributor license agreements. See the NOTICE file distributed with
3
+ # this work for additional information regarding copyright ownership.
4
+ # The ASF licenses this file to You under the Apache License, Version 2.0
5
+ # (the "License"); you may not use this file except in compliance with
6
+ # the License. You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ require 'spec_helper'
17
+ require 'skywalking/utils/id_gen'
18
+
19
+ module Skywalking
20
+ RSpec.describe Utils::IDGen do
21
+ it 'succeeds' do
22
+ id = described_class.new
23
+ expect(id.to_s).to_not be_empty
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,115 @@
1
+ # Licensed to the Apache Software Foundation (ASF) under one
2
+ # or more contributor license agreements. See the NOTICE file
3
+ # distributed with this work for additional information
4
+ # regarding copyright ownership. The ASF licenses this file
5
+ # to you under the Apache License, Version 2.0 (the
6
+ # "License"); you may not use this file except in compliance
7
+ # with the License. You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # This file was generated by the `rspec --init` command. Conventionally, all
18
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
19
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
20
+ # this file to always be loaded, without a need to explicitly require it in any
21
+ # files.
22
+ #
23
+ # Given that it is always loaded, you are encouraged to keep this file as
24
+ # light-weight as possible. Requiring heavyweight dependencies from this file
25
+ # will add to the boot time of your test suite on EVERY test run, even for an
26
+ # individual file that may not need all of that loaded. Instead, consider making
27
+ # a separate helper file that requires the additional dependencies and performs
28
+ # the additional setup, and require it from the spec files that actually need
29
+ # it.
30
+ #
31
+ # See https://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
32
+
33
+ require 'skywalking'
34
+
35
+ RSpec.configure do |config|
36
+ # rspec-expectations config goes here. You can use an alternate
37
+ # assertion/expectation library such as wrong or the stdlib/minitest
38
+ # assertions if you prefer.
39
+ config.expect_with :rspec do |expectations|
40
+ # This option will default to `true` in RSpec 4. It makes the `description`
41
+ # and `failure_message` of custom matchers include text for helper methods
42
+ # defined using `chain`, e.g.:
43
+ # be_bigger_than(2).and_smaller_than(4).description
44
+ # # => "be bigger than 2 and smaller than 4"
45
+ # ...rather than:
46
+ # # => "be bigger than 2"
47
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
48
+ end
49
+
50
+ # rspec-mocks config goes here. You can use an alternate test double
51
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
52
+ config.mock_with :rspec do |mocks|
53
+ # Prevents you from mocking or stubbing a method that does not exist on
54
+ # a real object. This is generally recommended, and will default to
55
+ # `true` in RSpec 4.
56
+ mocks.verify_partial_doubles = true
57
+ end
58
+
59
+ # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
60
+ # have no way to turn it off -- the option exists only for backwards
61
+ # compatibility in RSpec 3). It causes shared context metadata to be
62
+ # inherited by the metadata hash of host groups and examples, rather than
63
+ # triggering implicit auto-inclusion in groups with matching metadata.
64
+ config.shared_context_metadata_behavior = :apply_to_host_groups
65
+
66
+ # The settings below are suggested to provide a good initial experience
67
+ # with RSpec, but feel free to customize to your heart's content.
68
+ # # This allows you to limit a spec run to individual examples or groups
69
+ # # you care about by tagging them with `:focus` metadata. When nothing
70
+ # # is tagged with `:focus`, all examples get run. RSpec also provides
71
+ # # aliases for `it`, `describe`, and `context` that include `:focus`
72
+ # # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
73
+ # config.filter_run_when_matching :focus
74
+ #
75
+ # # Allows RSpec to persist some state between runs in order to support
76
+ # # the `--only-failures` and `--next-failure` CLI options. We recommend
77
+ # # you configure your source control system to ignore this file.
78
+ # config.example_status_persistence_file_path = "spec/examples.txt"
79
+ #
80
+ # # Limits the available syntax to the non-monkey patched syntax that is
81
+ # # recommended. For more details, see:
82
+ # # https://rspec.info/features/3-12/rspec-core/configuration/zero-monkey-patching-mode/
83
+ # config.disable_monkey_patching!
84
+ #
85
+ # # This setting enables warnings. It's recommended, but in some cases may
86
+ # # be too noisy due to issues in dependencies.
87
+ # config.warnings = true
88
+ #
89
+ # # Many RSpec users commonly either run the entire suite or an individual
90
+ # # file, and it's useful to allow more verbose output when running an
91
+ # # individual spec file.
92
+ # if config.files_to_run.one?
93
+ # # Use the documentation formatter for detailed output,
94
+ # # unless a formatter has already been configured
95
+ # # (e.g. via a command-line flag).
96
+ # config.default_formatter = "doc"
97
+ # end
98
+ #
99
+ # # Print the 10 slowest examples and example groups at the
100
+ # # end of the spec run, to help surface which specs are running
101
+ # # particularly slow.
102
+ # config.profile_examples = 10
103
+ #
104
+ # # Run specs in random order to surface order dependencies. If you find an
105
+ # # order dependency and want to debug it, you can fix the order by providing
106
+ # # the seed, which is printed after each run.
107
+ # # --seed 1234
108
+ # config.order = :random
109
+ #
110
+ # # Seed global randomization in this process using the `--seed` CLI option.
111
+ # # Setting this allows you to use `--seed` to deterministically reproduce
112
+ # # test failures related to randomization by passing the same `--seed` value
113
+ # # as the one that triggered the failure.
114
+ # Kernel.srand config.seed
115
+ end