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
metadata CHANGED
@@ -1,127 +1,183 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: skywalking
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.alpha
4
+ version: 0.0.0.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Apache SkyWalking Team
8
8
  autorequire:
9
- bindir: exe
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-30 00:00:00.000000000 Z
11
+ date: 2025-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: grpc
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 1.68.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 1.68.1
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: bundler
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
- - - ">="
31
+ - - "~>"
18
32
  - !ruby/object:Gem::Version
19
- version: '0'
33
+ version: '2.0'
20
34
  type: :development
21
35
  prerelease: false
22
36
  version_requirements: !ruby/object:Gem::Requirement
23
37
  requirements:
24
- - - ">="
38
+ - - "~>"
25
39
  - !ruby/object:Gem::Version
26
- version: '0'
40
+ version: '2.0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: rake
29
43
  requirement: !ruby/object:Gem::Requirement
30
44
  requirements:
31
- - - ">="
45
+ - - '='
32
46
  - !ruby/object:Gem::Version
33
- version: '0'
47
+ version: 13.2.1
34
48
  type: :development
35
49
  prerelease: false
36
50
  version_requirements: !ruby/object:Gem::Requirement
37
51
  requirements:
38
- - - ">="
52
+ - - '='
39
53
  - !ruby/object:Gem::Version
40
- version: '0'
54
+ version: 13.2.1
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rspec
43
57
  requirement: !ruby/object:Gem::Requirement
44
58
  requirements:
45
- - - ">="
59
+ - - "~>"
46
60
  - !ruby/object:Gem::Version
47
- version: '0'
61
+ version: '3'
48
62
  type: :development
49
63
  prerelease: false
50
64
  version_requirements: !ruby/object:Gem::Requirement
51
65
  requirements:
52
- - - ">="
66
+ - - "~>"
53
67
  - !ruby/object:Gem::Version
54
- version: '0'
68
+ version: '3'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rubocop
57
71
  requirement: !ruby/object:Gem::Requirement
58
72
  requirements:
59
- - - ">="
73
+ - - '='
60
74
  - !ruby/object:Gem::Version
61
- version: '0'
75
+ version: 1.69.2
62
76
  type: :development
63
77
  prerelease: false
64
78
  version_requirements: !ruby/object:Gem::Requirement
65
79
  requirements:
66
- - - ">="
80
+ - - '='
67
81
  - !ruby/object:Gem::Version
68
- version: '0'
82
+ version: 1.69.2
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rubocop-performance
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
- - - ">="
87
+ - - '='
74
88
  - !ruby/object:Gem::Version
75
- version: '0'
89
+ version: 1.23.0
76
90
  type: :development
77
91
  prerelease: false
78
92
  version_requirements: !ruby/object:Gem::Requirement
79
93
  requirements:
80
- - - ">="
94
+ - - '='
81
95
  - !ruby/object:Gem::Version
82
- version: '0'
96
+ version: 1.23.0
83
97
  - !ruby/object:Gem::Dependency
84
- name: grpc
98
+ name: bigdecimal
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - '='
102
+ - !ruby/object:Gem::Version
103
+ version: 3.1.5
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - '='
109
+ - !ruby/object:Gem::Version
110
+ version: 3.1.5
111
+ - !ruby/object:Gem::Dependency
112
+ name: redis
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '5.0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '5.0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: sinatra
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '4.1'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '4.1'
139
+ - !ruby/object:Gem::Dependency
140
+ name: testcontainers-compose
85
141
  requirement: !ruby/object:Gem::Requirement
86
142
  requirements:
87
- - - ">="
143
+ - - "~>"
88
144
  - !ruby/object:Gem::Version
89
- version: '0'
145
+ version: 0.2.0
90
146
  type: :development
91
147
  prerelease: false
92
148
  version_requirements: !ruby/object:Gem::Requirement
93
149
  requirements:
94
- - - ">="
150
+ - - "~>"
95
151
  - !ruby/object:Gem::Version
96
- version: '0'
152
+ version: 0.2.0
97
153
  - !ruby/object:Gem::Dependency
98
- name: grpc-tools
154
+ name: faraday
99
155
  requirement: !ruby/object:Gem::Requirement
100
156
  requirements:
101
- - - ">="
157
+ - - "~>"
102
158
  - !ruby/object:Gem::Version
103
- version: '0'
159
+ version: '2.12'
104
160
  type: :development
105
161
  prerelease: false
106
162
  version_requirements: !ruby/object:Gem::Requirement
107
163
  requirements:
108
- - - ">="
164
+ - - "~>"
109
165
  - !ruby/object:Gem::Version
110
- version: '0'
166
+ version: '2.12'
111
167
  - !ruby/object:Gem::Dependency
112
- name: rackup
168
+ name: rspec-wait
113
169
  requirement: !ruby/object:Gem::Requirement
114
170
  requirements:
115
- - - ">="
171
+ - - "~>"
116
172
  - !ruby/object:Gem::Version
117
- version: '0'
173
+ version: '1.0'
118
174
  type: :development
119
175
  prerelease: false
120
176
  version_requirements: !ruby/object:Gem::Requirement
121
177
  requirements:
122
- - - ">="
178
+ - - "~>"
123
179
  - !ruby/object:Gem::Version
124
- version: '0'
180
+ version: '1.0'
125
181
  description: The Ruby Agent for Apache SkyWalking
126
182
  email:
127
183
  - dev@skywalking.apache.org
@@ -130,122 +186,35 @@ extensions: []
130
186
  extra_rdoc_files: []
131
187
  files:
132
188
  - ".asf.yaml"
189
+ - ".dockerignore"
190
+ - ".github/PULL_REQUEST_TEMPLATE"
191
+ - ".github/workflows/ci.yml"
192
+ - ".github/workflows/e2e.yml"
193
+ - ".gitignore"
194
+ - ".gitmodules"
195
+ - ".licenserc.yaml"
133
196
  - ".rspec"
134
197
  - ".rubocop.yml"
135
198
  - CHANGELOG.md
136
199
  - CODE_OF_CONDUCT.md
200
+ - Gemfile
137
201
  - LICENSE
138
202
  - NOTICE
139
203
  - README.md
140
204
  - Rakefile
141
- - docs/How-to-release.md
142
- - examples/rails-demo/.dockerignore
143
- - examples/rails-demo/.gitattributes
144
- - examples/rails-demo/.gitignore
145
- - examples/rails-demo/.kamal/hooks/docker-setup.sample
146
- - examples/rails-demo/.kamal/hooks/post-deploy.sample
147
- - examples/rails-demo/.kamal/hooks/post-proxy-reboot.sample
148
- - examples/rails-demo/.kamal/hooks/pre-build.sample
149
- - examples/rails-demo/.kamal/hooks/pre-connect.sample
150
- - examples/rails-demo/.kamal/hooks/pre-deploy.sample
151
- - examples/rails-demo/.kamal/hooks/pre-proxy-reboot.sample
152
- - examples/rails-demo/.kamal/secrets
153
- - examples/rails-demo/.rubocop.yml
154
- - examples/rails-demo/.ruby-version
155
- - examples/rails-demo/Dockerfile
156
- - examples/rails-demo/Gemfile
157
- - examples/rails-demo/README.md
158
- - examples/rails-demo/Rakefile
159
- - examples/rails-demo/app/assets/images/.keep
160
- - examples/rails-demo/app/assets/stylesheets/application.css
161
- - examples/rails-demo/app/controllers/application_controller.rb
162
- - examples/rails-demo/app/controllers/concerns/.keep
163
- - examples/rails-demo/app/helpers/application_helper.rb
164
- - examples/rails-demo/app/javascript/application.js
165
- - examples/rails-demo/app/javascript/controllers/application.js
166
- - examples/rails-demo/app/javascript/controllers/hello_controller.js
167
- - examples/rails-demo/app/javascript/controllers/index.js
168
- - examples/rails-demo/app/jobs/application_job.rb
169
- - examples/rails-demo/app/mailers/application_mailer.rb
170
- - examples/rails-demo/app/models/application_record.rb
171
- - examples/rails-demo/app/models/concerns/.keep
172
- - examples/rails-demo/app/views/layouts/application.html.erb
173
- - examples/rails-demo/app/views/layouts/mailer.html.erb
174
- - examples/rails-demo/app/views/layouts/mailer.text.erb
175
- - examples/rails-demo/app/views/pwa/manifest.json.erb
176
- - examples/rails-demo/app/views/pwa/service-worker.js
177
- - examples/rails-demo/bin/brakeman
178
- - examples/rails-demo/bin/bundle
179
- - examples/rails-demo/bin/dev
180
- - examples/rails-demo/bin/docker-entrypoint
181
- - examples/rails-demo/bin/importmap
182
- - examples/rails-demo/bin/jobs
183
- - examples/rails-demo/bin/kamal
184
- - examples/rails-demo/bin/rails
185
- - examples/rails-demo/bin/rake
186
- - examples/rails-demo/bin/rubocop
187
- - examples/rails-demo/bin/setup
188
- - examples/rails-demo/bin/thrust
189
- - examples/rails-demo/config.ru
190
- - examples/rails-demo/config/application.rb
191
- - examples/rails-demo/config/boot.rb
192
- - examples/rails-demo/config/cable.yml
193
- - examples/rails-demo/config/cache.yml
194
- - examples/rails-demo/config/credentials.yml.enc
195
- - examples/rails-demo/config/database.yml
196
- - examples/rails-demo/config/deploy.yml
197
- - examples/rails-demo/config/environment.rb
198
- - examples/rails-demo/config/environments/development.rb
199
- - examples/rails-demo/config/environments/production.rb
200
- - examples/rails-demo/config/environments/test.rb
201
- - examples/rails-demo/config/importmap.rb
202
- - examples/rails-demo/config/initializers/assets.rb
203
- - examples/rails-demo/config/initializers/content_security_policy.rb
204
- - examples/rails-demo/config/initializers/filter_parameter_logging.rb
205
- - examples/rails-demo/config/initializers/inflections.rb
206
- - examples/rails-demo/config/initializers/skywalking_ruby.rb
207
- - examples/rails-demo/config/locales/en.yml
208
- - examples/rails-demo/config/puma.rb
209
- - examples/rails-demo/config/queue.yml
210
- - examples/rails-demo/config/recurring.yml
211
- - examples/rails-demo/config/routes.rb
212
- - examples/rails-demo/config/storage.yml
213
- - examples/rails-demo/db/cable_schema.rb
214
- - examples/rails-demo/db/cache_schema.rb
215
- - examples/rails-demo/db/queue_schema.rb
216
- - examples/rails-demo/db/seeds.rb
217
- - examples/rails-demo/lib/tasks/.keep
218
- - examples/rails-demo/log/.keep
219
- - examples/rails-demo/public/400.html
220
- - examples/rails-demo/public/404.html
221
- - examples/rails-demo/public/406-unsupported-browser.html
222
- - examples/rails-demo/public/422.html
223
- - examples/rails-demo/public/500.html
224
- - examples/rails-demo/public/icon.png
225
- - examples/rails-demo/public/icon.svg
226
- - examples/rails-demo/public/robots.txt
227
- - examples/rails-demo/script/.keep
228
- - examples/rails-demo/storage/.keep
229
- - examples/rails-demo/test/application_system_test_case.rb
230
- - examples/rails-demo/test/controllers/.keep
231
- - examples/rails-demo/test/fixtures/files/.keep
232
- - examples/rails-demo/test/helpers/.keep
233
- - examples/rails-demo/test/integration/.keep
234
- - examples/rails-demo/test/mailers/.keep
235
- - examples/rails-demo/test/models/.keep
236
- - examples/rails-demo/test/system/.keep
237
- - examples/rails-demo/test/test_helper.rb
238
- - examples/rails-demo/tmp/.keep
239
- - examples/rails-demo/tmp/pids/.keep
240
- - examples/rails-demo/tmp/storage/.keep
241
- - examples/rails-demo/vendor/.keep
242
- - examples/rails-demo/vendor/javascript/.keep
243
- - examples/sinatra-demo/sinatra-demo.rb
205
+ - docs/README.md
206
+ - docs/en/agent/plugins.md
207
+ - docs/en/development-and-contribution/how-to-release.md
208
+ - docs/en/setup/quick-start.md
209
+ - docs/menu.yml
210
+ - lib/rails/generators/skywalking/start_generator.rb
211
+ - lib/rails/generators/skywalking/templates/skywalking_initializer.rb
244
212
  - lib/skywalking.rb
245
213
  - lib/skywalking/agent.rb
246
214
  - lib/skywalking/configuration.rb
247
215
  - lib/skywalking/environment.rb
248
216
  - lib/skywalking/log/logger.rb
217
+ - lib/skywalking/plugins/net_http.rb
249
218
  - lib/skywalking/plugins/redis5.rb
250
219
  - lib/skywalking/plugins/sinatra.rb
251
220
  - lib/skywalking/plugins_manager.rb
@@ -311,6 +280,28 @@ files:
311
280
  - lib/skywalking/tracing/tag.rb
312
281
  - lib/skywalking/utils/id_gen.rb
313
282
  - lib/skywalking/version.rb
283
+ - skywalking.gemspec
284
+ - spec/fixtures/agent.yaml
285
+ - spec/scenarios/common/Dockerfile.agent
286
+ - spec/scenarios/common/base-compose.yml
287
+ - spec/scenarios/common/common_spec_helper.rb
288
+ - spec/scenarios/common/compose_context.rb
289
+ - spec/scenarios/common/validator.rb
290
+ - spec/scenarios/net_http/docker-compose.yml
291
+ - spec/scenarios/net_http/expected.yml
292
+ - spec/scenarios/net_http/net_http.rb
293
+ - spec/scenarios/net_http/net_http_spec.rb
294
+ - spec/scenarios/redis/docker-compose.yml
295
+ - spec/scenarios/redis/expected.yml
296
+ - spec/scenarios/redis/redis.rb
297
+ - spec/scenarios/redis/redis_spec.rb
298
+ - spec/scenarios/sinatra/docker-compose.yml
299
+ - spec/scenarios/sinatra/expected.yml
300
+ - spec/scenarios/sinatra/sinatra.rb
301
+ - spec/scenarios/sinatra/sinatra_spec.rb
302
+ - spec/skywalking/config_spec.rb
303
+ - spec/skywalking/utils/id_gen_spec.rb
304
+ - spec/spec_helper.rb
314
305
  homepage: https://skywalking.apache.org/
315
306
  licenses:
316
307
  - Apache-2.0
@@ -333,8 +324,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
333
324
  - !ruby/object:Gem::Version
334
325
  version: '0'
335
326
  requirements: []
336
- rubygems_version: 3.5.22
327
+ rubygems_version: 3.5.9
337
328
  signing_key:
338
329
  specification_version: 4
339
- summary: Skywalking Ruby
330
+ summary: Skywalking Ruby Agent
340
331
  test_files: []
@@ -1,47 +0,0 @@
1
- # See https://docs.docker.com/engine/reference/builder/#dockerignore-file for more about ignoring files.
2
-
3
- # Ignore git directory.
4
- /.git/
5
- /.gitignore
6
-
7
- # Ignore bundler config.
8
- /.bundle
9
-
10
- # Ignore all environment files.
11
- /.env*
12
-
13
- # Ignore all default key files.
14
- /config/master.key
15
- /config/credentials/*.key
16
-
17
- # Ignore all logfiles and tempfiles.
18
- /log/*
19
- /tmp/*
20
- !/log/.keep
21
- !/tmp/.keep
22
-
23
- # Ignore pidfiles, but keep the directory.
24
- /tmp/pids/*
25
- !/tmp/pids/.keep
26
-
27
- # Ignore storage (uploaded files in development and any SQLite databases).
28
- /storage/*
29
- !/storage/.keep
30
- /tmp/storage/*
31
- !/tmp/storage/.keep
32
-
33
- # Ignore assets.
34
- /node_modules/
35
- /app/assets/builds/*
36
- !/app/assets/builds/.keep
37
- /public/assets
38
-
39
- # Ignore CI service files.
40
- /.github
41
-
42
- # Ignore development files
43
- /.devcontainer
44
-
45
- # Ignore Docker-related files
46
- /.dockerignore
47
- /Dockerfile*
@@ -1,9 +0,0 @@
1
- # See https://git-scm.com/docs/gitattributes for more about git attribute files.
2
-
3
- # Mark the database schema as having been generated.
4
- db/schema.rb linguist-generated
5
-
6
- # Mark any vendored files as having been vendored.
7
- vendor/* linguist-vendored
8
- config/credentials/*.yml.enc diff=rails_credentials
9
- config/credentials.yml.enc diff=rails_credentials
@@ -1,34 +0,0 @@
1
- # See https://help.github.com/articles/ignoring-files for more about ignoring files.
2
- #
3
- # Temporary files generated by your text editor or operating system
4
- # belong in git's global ignore instead:
5
- # `$XDG_CONFIG_HOME/git/ignore` or `~/.config/git/ignore`
6
-
7
- # Ignore bundler config.
8
- /.bundle
9
-
10
- # Ignore all environment files.
11
- /.env*
12
-
13
- # Ignore all logfiles and tempfiles.
14
- /log/*
15
- /tmp/*
16
- !/log/.keep
17
- !/tmp/.keep
18
-
19
- # Ignore pidfiles, but keep the directory.
20
- /tmp/pids/*
21
- !/tmp/pids/
22
- !/tmp/pids/.keep
23
-
24
- # Ignore storage (uploaded files in development and any SQLite databases).
25
- /storage/*
26
- !/storage/.keep
27
- /tmp/storage/*
28
- !/tmp/storage/
29
- !/tmp/storage/.keep
30
-
31
- /public/assets
32
-
33
- # Ignore master key for decrypting credentials and more.
34
- /config/master.key
@@ -1,3 +0,0 @@
1
- #!/bin/sh
2
-
3
- echo "Docker set up on $KAMAL_HOSTS..."
@@ -1,14 +0,0 @@
1
- #!/bin/sh
2
-
3
- # A sample post-deploy hook
4
- #
5
- # These environment variables are available:
6
- # KAMAL_RECORDED_AT
7
- # KAMAL_PERFORMER
8
- # KAMAL_VERSION
9
- # KAMAL_HOSTS
10
- # KAMAL_ROLE (if set)
11
- # KAMAL_DESTINATION (if set)
12
- # KAMAL_RUNTIME
13
-
14
- echo "$KAMAL_PERFORMER deployed $KAMAL_VERSION to $KAMAL_DESTINATION in $KAMAL_RUNTIME seconds"
@@ -1,3 +0,0 @@
1
- #!/bin/sh
2
-
3
- echo "Rebooted kamal-proxy on $KAMAL_HOSTS"
@@ -1,51 +0,0 @@
1
- #!/bin/sh
2
-
3
- # A sample pre-build hook
4
- #
5
- # Checks:
6
- # 1. We have a clean checkout
7
- # 2. A remote is configured
8
- # 3. The branch has been pushed to the remote
9
- # 4. The version we are deploying matches the remote
10
- #
11
- # These environment variables are available:
12
- # KAMAL_RECORDED_AT
13
- # KAMAL_PERFORMER
14
- # KAMAL_VERSION
15
- # KAMAL_HOSTS
16
- # KAMAL_ROLE (if set)
17
- # KAMAL_DESTINATION (if set)
18
-
19
- if [ -n "$(git status --porcelain)" ]; then
20
- echo "Git checkout is not clean, aborting..." >&2
21
- git status --porcelain >&2
22
- exit 1
23
- fi
24
-
25
- first_remote=$(git remote)
26
-
27
- if [ -z "$first_remote" ]; then
28
- echo "No git remote set, aborting..." >&2
29
- exit 1
30
- fi
31
-
32
- current_branch=$(git branch --show-current)
33
-
34
- if [ -z "$current_branch" ]; then
35
- echo "Not on a git branch, aborting..." >&2
36
- exit 1
37
- fi
38
-
39
- remote_head=$(git ls-remote $first_remote --tags $current_branch | cut -f1)
40
-
41
- if [ -z "$remote_head" ]; then
42
- echo "Branch not pushed to remote, aborting..." >&2
43
- exit 1
44
- fi
45
-
46
- if [ "$KAMAL_VERSION" != "$remote_head" ]; then
47
- echo "Version ($KAMAL_VERSION) does not match remote HEAD ($remote_head), aborting..." >&2
48
- exit 1
49
- fi
50
-
51
- exit 0
@@ -1,47 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- # A sample pre-connect check
4
- #
5
- # Warms DNS before connecting to hosts in parallel
6
- #
7
- # These environment variables are available:
8
- # KAMAL_RECORDED_AT
9
- # KAMAL_PERFORMER
10
- # KAMAL_VERSION
11
- # KAMAL_HOSTS
12
- # KAMAL_ROLE (if set)
13
- # KAMAL_DESTINATION (if set)
14
- # KAMAL_RUNTIME
15
-
16
- hosts = ENV["KAMAL_HOSTS"].split(",")
17
- results = nil
18
- max = 3
19
-
20
- elapsed = Benchmark.realtime do
21
- results = hosts.map do |host|
22
- Thread.new do
23
- tries = 1
24
-
25
- begin
26
- Socket.getaddrinfo(host, 0, Socket::AF_UNSPEC, Socket::SOCK_STREAM, nil, Socket::AI_CANONNAME)
27
- rescue SocketError
28
- if tries < max
29
- puts "Retrying DNS warmup: #{host}"
30
- tries += 1
31
- sleep rand
32
- retry
33
- else
34
- puts "DNS warmup failed: #{host}"
35
- host
36
- end
37
- end
38
-
39
- tries
40
- end
41
- end.map(&:value)
42
- end
43
-
44
- retries = results.sum - hosts.size
45
- nopes = results.count { |r| r == max }
46
-
47
- puts "Prewarmed %d DNS lookups in %.2f sec: %d retries, %d failures" % [ hosts.size, elapsed, retries, nopes ]