skywalking 0.0.0.alpha

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 (184) hide show
  1. checksums.yaml +7 -0
  2. data/.asf.yaml +40 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +236 -0
  5. data/CHANGELOG.md +15 -0
  6. data/CODE_OF_CONDUCT.md +132 -0
  7. data/LICENSE +201 -0
  8. data/NOTICE +5 -0
  9. data/README.md +18 -0
  10. data/Rakefile +23 -0
  11. data/docs/How-to-release.md +179 -0
  12. data/examples/rails-demo/.dockerignore +47 -0
  13. data/examples/rails-demo/.gitattributes +9 -0
  14. data/examples/rails-demo/.gitignore +34 -0
  15. data/examples/rails-demo/.kamal/hooks/docker-setup.sample +3 -0
  16. data/examples/rails-demo/.kamal/hooks/post-deploy.sample +14 -0
  17. data/examples/rails-demo/.kamal/hooks/post-proxy-reboot.sample +3 -0
  18. data/examples/rails-demo/.kamal/hooks/pre-build.sample +51 -0
  19. data/examples/rails-demo/.kamal/hooks/pre-connect.sample +47 -0
  20. data/examples/rails-demo/.kamal/hooks/pre-deploy.sample +109 -0
  21. data/examples/rails-demo/.kamal/hooks/pre-proxy-reboot.sample +3 -0
  22. data/examples/rails-demo/.kamal/secrets +17 -0
  23. data/examples/rails-demo/.rubocop.yml +8 -0
  24. data/examples/rails-demo/.ruby-version +1 -0
  25. data/examples/rails-demo/Dockerfile +72 -0
  26. data/examples/rails-demo/Gemfile +64 -0
  27. data/examples/rails-demo/README.md +24 -0
  28. data/examples/rails-demo/Rakefile +6 -0
  29. data/examples/rails-demo/app/assets/images/.keep +0 -0
  30. data/examples/rails-demo/app/assets/stylesheets/application.css +10 -0
  31. data/examples/rails-demo/app/controllers/application_controller.rb +4 -0
  32. data/examples/rails-demo/app/controllers/concerns/.keep +0 -0
  33. data/examples/rails-demo/app/helpers/application_helper.rb +2 -0
  34. data/examples/rails-demo/app/javascript/application.js +3 -0
  35. data/examples/rails-demo/app/javascript/controllers/application.js +9 -0
  36. data/examples/rails-demo/app/javascript/controllers/hello_controller.js +7 -0
  37. data/examples/rails-demo/app/javascript/controllers/index.js +4 -0
  38. data/examples/rails-demo/app/jobs/application_job.rb +7 -0
  39. data/examples/rails-demo/app/mailers/application_mailer.rb +4 -0
  40. data/examples/rails-demo/app/models/application_record.rb +3 -0
  41. data/examples/rails-demo/app/models/concerns/.keep +0 -0
  42. data/examples/rails-demo/app/views/layouts/application.html.erb +28 -0
  43. data/examples/rails-demo/app/views/layouts/mailer.html.erb +13 -0
  44. data/examples/rails-demo/app/views/layouts/mailer.text.erb +1 -0
  45. data/examples/rails-demo/app/views/pwa/manifest.json.erb +22 -0
  46. data/examples/rails-demo/app/views/pwa/service-worker.js +26 -0
  47. data/examples/rails-demo/bin/brakeman +7 -0
  48. data/examples/rails-demo/bin/bundle +109 -0
  49. data/examples/rails-demo/bin/dev +2 -0
  50. data/examples/rails-demo/bin/docker-entrypoint +14 -0
  51. data/examples/rails-demo/bin/importmap +4 -0
  52. data/examples/rails-demo/bin/jobs +6 -0
  53. data/examples/rails-demo/bin/kamal +27 -0
  54. data/examples/rails-demo/bin/rails +4 -0
  55. data/examples/rails-demo/bin/rake +4 -0
  56. data/examples/rails-demo/bin/rubocop +8 -0
  57. data/examples/rails-demo/bin/setup +34 -0
  58. data/examples/rails-demo/bin/thrust +5 -0
  59. data/examples/rails-demo/config/application.rb +27 -0
  60. data/examples/rails-demo/config/boot.rb +4 -0
  61. data/examples/rails-demo/config/cable.yml +17 -0
  62. data/examples/rails-demo/config/cache.yml +16 -0
  63. data/examples/rails-demo/config/credentials.yml.enc +1 -0
  64. data/examples/rails-demo/config/database.yml +41 -0
  65. data/examples/rails-demo/config/deploy.yml +116 -0
  66. data/examples/rails-demo/config/environment.rb +5 -0
  67. data/examples/rails-demo/config/environments/development.rb +72 -0
  68. data/examples/rails-demo/config/environments/production.rb +90 -0
  69. data/examples/rails-demo/config/environments/test.rb +53 -0
  70. data/examples/rails-demo/config/importmap.rb +7 -0
  71. data/examples/rails-demo/config/initializers/assets.rb +7 -0
  72. data/examples/rails-demo/config/initializers/content_security_policy.rb +25 -0
  73. data/examples/rails-demo/config/initializers/filter_parameter_logging.rb +8 -0
  74. data/examples/rails-demo/config/initializers/inflections.rb +16 -0
  75. data/examples/rails-demo/config/initializers/skywalking_ruby.rb +18 -0
  76. data/examples/rails-demo/config/locales/en.yml +31 -0
  77. data/examples/rails-demo/config/puma.rb +41 -0
  78. data/examples/rails-demo/config/queue.yml +18 -0
  79. data/examples/rails-demo/config/recurring.yml +10 -0
  80. data/examples/rails-demo/config/routes.rb +14 -0
  81. data/examples/rails-demo/config/storage.yml +34 -0
  82. data/examples/rails-demo/config.ru +6 -0
  83. data/examples/rails-demo/db/cable_schema.rb +11 -0
  84. data/examples/rails-demo/db/cache_schema.rb +14 -0
  85. data/examples/rails-demo/db/queue_schema.rb +129 -0
  86. data/examples/rails-demo/db/seeds.rb +9 -0
  87. data/examples/rails-demo/lib/tasks/.keep +0 -0
  88. data/examples/rails-demo/log/.keep +0 -0
  89. data/examples/rails-demo/public/400.html +114 -0
  90. data/examples/rails-demo/public/404.html +114 -0
  91. data/examples/rails-demo/public/406-unsupported-browser.html +114 -0
  92. data/examples/rails-demo/public/422.html +114 -0
  93. data/examples/rails-demo/public/500.html +114 -0
  94. data/examples/rails-demo/public/icon.png +0 -0
  95. data/examples/rails-demo/public/icon.svg +3 -0
  96. data/examples/rails-demo/public/robots.txt +1 -0
  97. data/examples/rails-demo/script/.keep +0 -0
  98. data/examples/rails-demo/storage/.keep +0 -0
  99. data/examples/rails-demo/test/application_system_test_case.rb +5 -0
  100. data/examples/rails-demo/test/controllers/.keep +0 -0
  101. data/examples/rails-demo/test/fixtures/files/.keep +0 -0
  102. data/examples/rails-demo/test/helpers/.keep +0 -0
  103. data/examples/rails-demo/test/integration/.keep +0 -0
  104. data/examples/rails-demo/test/mailers/.keep +0 -0
  105. data/examples/rails-demo/test/models/.keep +0 -0
  106. data/examples/rails-demo/test/system/.keep +0 -0
  107. data/examples/rails-demo/test/test_helper.rb +15 -0
  108. data/examples/rails-demo/tmp/.keep +0 -0
  109. data/examples/rails-demo/tmp/pids/.keep +0 -0
  110. data/examples/rails-demo/tmp/storage/.keep +0 -0
  111. data/examples/rails-demo/vendor/.keep +0 -0
  112. data/examples/rails-demo/vendor/javascript/.keep +0 -0
  113. data/examples/sinatra-demo/sinatra-demo.rb +32 -0
  114. data/lib/skywalking/agent.rb +98 -0
  115. data/lib/skywalking/configuration.rb +255 -0
  116. data/lib/skywalking/environment.rb +50 -0
  117. data/lib/skywalking/log/logger.rb +53 -0
  118. data/lib/skywalking/plugins/redis5.rb +70 -0
  119. data/lib/skywalking/plugins/sinatra.rb +55 -0
  120. data/lib/skywalking/plugins_manager.rb +84 -0
  121. data/lib/skywalking/proto/asyncprofiler/AsyncProfiler_pb.rb +23 -0
  122. data/lib/skywalking/proto/asyncprofiler/AsyncProfiler_services_pb.rb +45 -0
  123. data/lib/skywalking/proto/browser/BrowserPerfCompat_pb.rb +15 -0
  124. data/lib/skywalking/proto/browser/BrowserPerfCompat_services_pb.rb +42 -0
  125. data/lib/skywalking/proto/browser/BrowserPerf_pb.rb +21 -0
  126. data/lib/skywalking/proto/browser/BrowserPerf_services_pb.rb +46 -0
  127. data/lib/skywalking/proto/common/Command_pb.rb +20 -0
  128. data/lib/skywalking/proto/common/Common_pb.rb +21 -0
  129. data/lib/skywalking/proto/ebpf/accesslog_pb.rb +58 -0
  130. data/lib/skywalking/proto/ebpf/accesslog_services_pb.rb +42 -0
  131. data/lib/skywalking/proto/event/Event_pb.rb +21 -0
  132. data/lib/skywalking/proto/event/Event_services_pb.rb +45 -0
  133. data/lib/skywalking/proto/language-agent/CLRMetricCompat_pb.rb +15 -0
  134. data/lib/skywalking/proto/language-agent/CLRMetricCompat_services_pb.rb +38 -0
  135. data/lib/skywalking/proto/language-agent/CLRMetric_pb.rb +23 -0
  136. data/lib/skywalking/proto/language-agent/CLRMetric_services_pb.rb +42 -0
  137. data/lib/skywalking/proto/language-agent/ConfigurationDiscoveryService_pb.rb +19 -0
  138. data/lib/skywalking/proto/language-agent/ConfigurationDiscoveryService_services_pb.rb +51 -0
  139. data/lib/skywalking/proto/language-agent/JVMMetricCompat_pb.rb +15 -0
  140. data/lib/skywalking/proto/language-agent/JVMMetricCompat_services_pb.rb +39 -0
  141. data/lib/skywalking/proto/language-agent/JVMMetric_pb.rb +28 -0
  142. data/lib/skywalking/proto/language-agent/JVMMetric_services_pb.rb +43 -0
  143. data/lib/skywalking/proto/language-agent/MeterCompat_pb.rb +15 -0
  144. data/lib/skywalking/proto/language-agent/MeterCompat_services_pb.rb +39 -0
  145. data/lib/skywalking/proto/language-agent/Meter_pb.rb +24 -0
  146. data/lib/skywalking/proto/language-agent/Meter_services_pb.rb +48 -0
  147. data/lib/skywalking/proto/language-agent/TracingCompat_pb.rb +15 -0
  148. data/lib/skywalking/proto/language-agent/TracingCompat_services_pb.rb +48 -0
  149. data/lib/skywalking/proto/language-agent/Tracing_pb.rb +31 -0
  150. data/lib/skywalking/proto/language-agent/Tracing_services_pb.rb +71 -0
  151. data/lib/skywalking/proto/logging/Logging_pb.rb +26 -0
  152. data/lib/skywalking/proto/logging/Logging_services_pb.rb +46 -0
  153. data/lib/skywalking/proto/management/ManagementCompat_pb.rb +15 -0
  154. data/lib/skywalking/proto/management/ManagementCompat_services_pb.rb +44 -0
  155. data/lib/skywalking/proto/management/Management_pb.rb +21 -0
  156. data/lib/skywalking/proto/management/Management_services_pb.rb +48 -0
  157. data/lib/skywalking/proto/profile/ProfileCompat_pb.rb +15 -0
  158. data/lib/skywalking/proto/profile/ProfileCompat_services_pb.rb +43 -0
  159. data/lib/skywalking/proto/profile/Profile_pb.rb +22 -0
  160. data/lib/skywalking/proto/profile/Profile_services_pb.rb +47 -0
  161. data/lib/skywalking/proto/service-mesh-probe/service-mesh_pb.rb +25 -0
  162. data/lib/skywalking/proto/service-mesh-probe/service-mesh_services_pb.rb +43 -0
  163. data/lib/skywalking/reporter/buffer_trigger.rb +108 -0
  164. data/lib/skywalking/reporter/client/grpc_client.rb +114 -0
  165. data/lib/skywalking/reporter/client/proto.rb +29 -0
  166. data/lib/skywalking/reporter/grpc.rb +46 -0
  167. data/lib/skywalking/reporter/protocol.rb +28 -0
  168. data/lib/skywalking/reporter/report.rb +82 -0
  169. data/lib/skywalking/reporter/scheduler.rb +158 -0
  170. data/lib/skywalking/tracing/carrier.rb +121 -0
  171. data/lib/skywalking/tracing/carrier_item.rb +27 -0
  172. data/lib/skywalking/tracing/constants.rb +49 -0
  173. data/lib/skywalking/tracing/entry_span.rb +48 -0
  174. data/lib/skywalking/tracing/exit_span.rb +53 -0
  175. data/lib/skywalking/tracing/ignored_context.rb +34 -0
  176. data/lib/skywalking/tracing/noop_span.rb +32 -0
  177. data/lib/skywalking/tracing/segment.rb +57 -0
  178. data/lib/skywalking/tracing/span.rb +111 -0
  179. data/lib/skywalking/tracing/span_context.rb +242 -0
  180. data/lib/skywalking/tracing/tag.rb +49 -0
  181. data/lib/skywalking/utils/id_gen.rb +30 -0
  182. data/lib/skywalking/version.rb +18 -0
  183. data/lib/skywalking.rb +36 -0
  184. metadata +340 -0
@@ -0,0 +1,70 @@
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
+ module Skywalking
17
+ module Plugins
18
+ class Redis5 < PluginsManager::SWPlugin
19
+ module Redis5Intercept
20
+ def call_v(args, &block)
21
+ operation = args[0] rescue "UNKNOWN"
22
+ return super if operation == :auth
23
+
24
+ Tracing::ContextManager.new_exit_span(
25
+ operation: "Redis/#{operation.upcase}",
26
+ peer: _endpoint_info,
27
+ component: Tracing::Component::Redis
28
+ ) do |span|
29
+ span&.tag(Tracing::TagDbType.new("Redis"))
30
+ span&.layer = Tracing.find_mapping(Tracing::Layer, Tracing::Layer::Cache)
31
+
32
+ super(args, &block)
33
+ end
34
+ end
35
+
36
+ def _endpoint_info
37
+ "#{_redis_cfg.host}:#{_redis_cfg.port}"
38
+ rescue
39
+ "Unknown"
40
+ end
41
+
42
+ def _redis_cfg
43
+ @redis_cfg ||= begin
44
+ config = if defined?(::Redis::Client) && is_a?(::Redis::Client)
45
+ self
46
+ elsif respond_to?(:client)
47
+ client&.config
48
+ elsif defined?(::RedisClient)
49
+ ::RedisClient.config if ::RedisClient.respond_to?(:config)
50
+ end
51
+ raise "Redis config not found" unless config
52
+ config
53
+ end
54
+ end
55
+ end
56
+
57
+ def plugin_valid?
58
+ version = Gem::Version.new(::Redis::VERSION) rescue nil
59
+ version && version >= Gem::Version.new("5.0.0") && defined?(::Redis) && defined?(::Redis::Client) &&
60
+ ::Redis::Client.instance_methods(false).include?(:call_v)
61
+ end
62
+
63
+ def install
64
+ ::Redis::Client.prepend Redis5Intercept
65
+ end
66
+
67
+ register :redis5
68
+ end
69
+ end
70
+ end
@@ -0,0 +1,55 @@
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
+ module Skywalking
17
+ module Plugins
18
+ class Sinatra < PluginsManager::SWPlugin
19
+ module SinatraIntercept
20
+ def dispatch!(*args, &block)
21
+ req_method = @request.request_method if @request.respond_to?(:request_method)
22
+ carrier = Tracing::Carrier.new
23
+ carrier.each do |item|
24
+ item.val = request.env[item.key.capitalize] if request.env[item.key.capitalize]
25
+ end
26
+
27
+ Tracing::ContextManager.new_entry_span(
28
+ operation: request.env['REQUEST_URI'].to_s,
29
+ carrier: carrier,
30
+ inherit: Tracing::Component::General
31
+ ) do |span|
32
+ span&.tag(Tracing::TagHttpMethod.new(req_method))
33
+ span&.tag(Tracing::TagHttpURL.new(request.env['REQUEST_URI']))
34
+ span&.layer = Tracing.find_mapping(Tracing::Layer, Tracing::Layer::Http)
35
+ span&.peer = "#{request.env['SERVER_NAME']}:#{request.env['SERVER_PORT']}"
36
+ span&.component = Tracing::Component::Sinatra
37
+
38
+ super(*args, &block)
39
+ end
40
+ end
41
+ end
42
+
43
+ def plugin_valid?
44
+ defined?(::Sinatra::Base) &&
45
+ ::Sinatra::Base.private_method_defined?(:dispatch!)
46
+ end
47
+
48
+ def install
49
+ ::Sinatra::Base.prepend SinatraIntercept
50
+ end
51
+
52
+ register :sinatra
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,84 @@
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
+ module Skywalking
17
+ module Plugins
18
+ class PluginsManager
19
+ class << self
20
+ def register(name, plugin_klass)
21
+ installed[name] = plugin_klass
22
+ end
23
+
24
+ def installed
25
+ @installed ||= {}
26
+ end
27
+ end
28
+
29
+ def initialize(config)
30
+ @config = config
31
+ end
32
+
33
+ def init_plugins
34
+ Dir[File.join(__dir__, 'plugins', '*.rb')].each { |file| require file }
35
+
36
+ installed_plugins = self.class.installed.keys
37
+ @enabled_plugins ||= installed_plugins - @config[:disable_plugins].split(',')
38
+ @enabled_plugins.each do |plugin_name|
39
+ self.class.installed[plugin_name].try_install(plugin_name)
40
+ end
41
+ end
42
+
43
+ class SWPlugin
44
+ include Log::Logging
45
+
46
+ def self.register(name, plugin_klass = self)
47
+ Plugins::PluginsManager.register(name, plugin_klass.new)
48
+ end
49
+
50
+ def initialize
51
+ @installed = false
52
+ end
53
+
54
+ def installed?
55
+ @installed
56
+ end
57
+
58
+ def try_install(name)
59
+ info "try to install plugin #{name}"
60
+ unless plugin_valid?
61
+ warn "plugin validation failed for #{name}"
62
+ return
63
+ end
64
+ return if installed?
65
+
66
+ begin
67
+ install
68
+ @installed = true
69
+ rescue => e
70
+ error "try to install plugin %s failed, error=%s", name, e.message
71
+ end
72
+ end
73
+
74
+ def plugin_valid?
75
+ raise NotImplementedError
76
+ end
77
+
78
+ def install
79
+ raise NotImplementedError
80
+ end
81
+ end
82
+ end
83
+ end
84
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: asyncprofiler/AsyncProfiler.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require_relative '../common/Command_pb'
8
+
9
+
10
+ descriptor_data = "\n!asyncprofiler/AsyncProfiler.proto\x12\x0eskywalking.v10\x1a\x14\x63ommon/Command.proto\"\x81\x01\n\x11\x41syncProfilerData\x12\x37\n\x08metaData\x18\x01 \x01(\x0b\x32%.skywalking.v10.AsyncProfilerMetaData\x12\x16\n\x0c\x65rrorMessage\x18\x02 \x01(\tH\x00\x12\x11\n\x07\x63ontent\x18\x03 \x01(\x0cH\x00\x42\x08\n\x06result\"U\n\x1f\x41syncProfilerCollectionResponse\x12\x32\n\x04type\x18\x01 \x01(\x0e\x32$.skywalking.v10.AsyncProfilingStatus\"\x9a\x01\n\x15\x41syncProfilerMetaData\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x17\n\x0fserviceInstance\x18\x02 \x01(\t\x12\x0e\n\x06taskId\x18\x03 \x01(\t\x12\x32\n\x04type\x18\x04 \x01(\x0e\x32$.skywalking.v10.AsyncProfilingStatus\x12\x13\n\x0b\x63ontentSize\x18\x05 \x01(\x05\"b\n\x1d\x41syncProfilerTaskCommandQuery\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x17\n\x0fserviceInstance\x18\x02 \x01(\t\x12\x17\n\x0flastCommandTime\x18\x03 \x01(\x03*c\n\x14\x41syncProfilingStatus\x12\x15\n\x11PROFILING_SUCCESS\x10\x00\x12\x18\n\x14\x45XECUTION_TASK_ERROR\x10\x01\x12\x1a\n\x16TERMINATED_BY_OVERSIZE\x10\x02\x32\xde\x01\n\x11\x41syncProfilerTask\x12\x61\n\x07\x63ollect\x12!.skywalking.v10.AsyncProfilerData\x1a/.skywalking.v10.AsyncProfilerCollectionResponse(\x01\x30\x01\x12\x66\n\x1cgetAsyncProfilerTaskCommands\x12-.skywalking.v10.AsyncProfilerTaskCommandQuery\x1a\x17.skywalking.v3.CommandsB\xa6\x01\n<org.apache.skywalking.apm.network.language.asyncprofiler.v10P\x01ZCskywalking.apache.org/repo/goapi/collect/language/asyncprofiler/v10\xaa\x02\x1eSkyWalking.NetworkProtocol.V10b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Skywalking
16
+ module V10
17
+ AsyncProfilerData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v10.AsyncProfilerData").msgclass
18
+ AsyncProfilerCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v10.AsyncProfilerCollectionResponse").msgclass
19
+ AsyncProfilerMetaData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v10.AsyncProfilerMetaData").msgclass
20
+ AsyncProfilerTaskCommandQuery = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v10.AsyncProfilerTaskCommandQuery").msgclass
21
+ AsyncProfilingStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v10.AsyncProfilingStatus").enummodule
22
+ end
23
+ end
@@ -0,0 +1,45 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: asyncprofiler/AsyncProfiler.proto for package 'skywalking.v10'
3
+ # Original file comments:
4
+ #
5
+ # Licensed to the Apache Software Foundation (ASF) under one or more
6
+ # contributor license agreements. See the NOTICE file distributed with
7
+ # this work for additional information regarding copyright ownership.
8
+ # The ASF licenses this file to You under the Apache License, Version 2.0
9
+ # (the "License"); you may not use this file except in compliance with
10
+ # the License. You may obtain a copy of the License at
11
+ #
12
+ # http://www.apache.org/licenses/LICENSE-2.0
13
+ #
14
+ # Unless required by applicable law or agreed to in writing, software
15
+ # distributed under the License is distributed on an "AS IS" BASIS,
16
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ # See the License for the specific language governing permissions and
18
+ # limitations under the License.
19
+ #
20
+ #
21
+
22
+ require 'grpc'
23
+ require_relative 'AsyncProfiler_pb'
24
+
25
+ module Skywalking
26
+ module V10
27
+ module AsyncProfilerTask
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'skywalking.v10.AsyncProfilerTask'
35
+
36
+ # collect sends JFR data to the OAP server
37
+ rpc :collect, stream(::Skywalking::V10::AsyncProfilerData), stream(::Skywalking::V10::AsyncProfilerCollectionResponse)
38
+ # getAsyncProfilerTaskCommands sends query to the OAP server for all AsyncProfiler tasks to be executed for the given Java Agent instance
39
+ rpc :getAsyncProfilerTaskCommands, ::Skywalking::V10::AsyncProfilerTaskCommandQuery, ::Skywalking::V3::Commands
40
+ end
41
+
42
+ Stub = Service.rpc_stub_class
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: browser/BrowserPerfCompat.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require_relative '../common/Command_pb'
8
+ require_relative 'BrowserPerf_pb'
9
+
10
+
11
+ descriptor_data = "\n\x1f\x62rowser/BrowserPerfCompat.proto\x1a\x14\x63ommon/Command.proto\x1a\x19\x62rowser/BrowserPerf.proto2\xb3\x01\n\x12\x42rowserPerfService\x12L\n\x0f\x63ollectPerfData\x12\x1e.skywalking.v3.BrowserPerfData\x1a\x17.skywalking.v3.Commands\"\x00\x12O\n\x10\x63ollectErrorLogs\x12\x1e.skywalking.v3.BrowserErrorLog\x1a\x17.skywalking.v3.Commands\"\x00(\x01\x42\xab\x01\n:org.apache.skywalking.apm.network.language.agent.v3.compatP\x01ZAskywalking.apache.org/repo/goapi/collect/language/agent/v3/compat\xb8\x01\x01\xaa\x02$SkyWalking.NetworkProtocol.V3.Compatb\x06proto3"
12
+
13
+ pool = Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
15
+
@@ -0,0 +1,42 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: browser/BrowserPerfCompat.proto for package ''
3
+ # Original file comments:
4
+ #
5
+ # Licensed to the Apache Software Foundation (ASF) under one or more
6
+ # contributor license agreements. See the NOTICE file distributed with
7
+ # this work for additional information regarding copyright ownership.
8
+ # The ASF licenses this file to You under the Apache License, Version 2.0
9
+ # (the "License"); you may not use this file except in compliance with
10
+ # the License. You may obtain a copy of the License at
11
+ #
12
+ # http://www.apache.org/licenses/LICENSE-2.0
13
+ #
14
+ # Unless required by applicable law or agreed to in writing, software
15
+ # distributed under the License is distributed on an "AS IS" BASIS,
16
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ # See the License for the specific language governing permissions and
18
+ # limitations under the License.
19
+ #
20
+ #
21
+
22
+ require 'grpc'
23
+ require_relative 'BrowserPerfCompat_pb'
24
+
25
+ module BrowserPerfService
26
+ # Collect performance raw data from browser.
27
+ class Service
28
+
29
+ include ::GRPC::GenericService
30
+
31
+ self.marshal_class_method = :encode
32
+ self.unmarshal_class_method = :decode
33
+ self.service_name = 'BrowserPerfService'
34
+
35
+ # report once per page
36
+ rpc :collectPerfData, ::Skywalking::V3::BrowserPerfData, ::Skywalking::V3::Commands
37
+ # report one or more error logs for pages, could report multiple times.
38
+ rpc :collectErrorLogs, stream(::Skywalking::V3::BrowserErrorLog), ::Skywalking::V3::Commands
39
+ end
40
+
41
+ Stub = Service.rpc_stub_class
42
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: browser/BrowserPerf.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require_relative '../common/Command_pb'
8
+
9
+
10
+ descriptor_data = "\n\x19\x62rowser/BrowserPerf.proto\x12\rskywalking.v3\x1a\x14\x63ommon/Command.proto\"\xe8\x02\n\x0f\x42rowserPerfData\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x16\n\x0eserviceVersion\x18\x02 \x01(\t\x12\x0c\n\x04time\x18\x03 \x01(\x03\x12\x10\n\x08pagePath\x18\x04 \x01(\t\x12\x14\n\x0credirectTime\x18\x05 \x01(\x05\x12\x0f\n\x07\x64nsTime\x18\x06 \x01(\x05\x12\x10\n\x08ttfbTime\x18\x07 \x01(\x05\x12\x0f\n\x07tcpTime\x18\x08 \x01(\x05\x12\x11\n\ttransTime\x18\t \x01(\x05\x12\x17\n\x0f\x64omAnalysisTime\x18\n \x01(\x05\x12\x0f\n\x07\x66ptTime\x18\x0b \x01(\x05\x12\x14\n\x0c\x64omReadyTime\x18\x0c \x01(\x05\x12\x14\n\x0cloadPageTime\x18\r \x01(\x05\x12\x0f\n\x07resTime\x18\x0e \x01(\x05\x12\x0f\n\x07sslTime\x18\x0f \x01(\x05\x12\x0f\n\x07ttlTime\x18\x10 \x01(\x05\x12\x15\n\rfirstPackTime\x18\x11 \x01(\x05\x12\x0f\n\x07\x66mpTime\x18\x12 \x01(\x05\"\x94\x02\n\x0f\x42rowserErrorLog\x12\x10\n\x08uniqueId\x18\x01 \x01(\t\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x16\n\x0eserviceVersion\x18\x03 \x01(\t\x12\x0c\n\x04time\x18\x04 \x01(\x03\x12\x10\n\x08pagePath\x18\x05 \x01(\t\x12.\n\x08\x63\x61tegory\x18\x06 \x01(\x0e\x32\x1c.skywalking.v3.ErrorCategory\x12\r\n\x05grade\x18\x07 \x01(\t\x12\x0f\n\x07message\x18\x08 \x01(\t\x12\x0c\n\x04line\x18\t \x01(\x05\x12\x0b\n\x03\x63ol\x18\n \x01(\x05\x12\r\n\x05stack\x18\x0b \x01(\t\x12\x10\n\x08\x65rrorUrl\x18\x0c \x01(\t\x12\x1a\n\x12\x66irstReportedError\x18\r \x01(\x08*R\n\rErrorCategory\x12\x08\n\x04\x61jax\x10\x00\x12\x0c\n\x08resource\x10\x01\x12\x07\n\x03vue\x10\x02\x12\x0b\n\x07promise\x10\x03\x12\x06\n\x02js\x10\x04\x12\x0b\n\x07unknown\x10\x05\x32\xb3\x01\n\x12\x42rowserPerfService\x12L\n\x0f\x63ollectPerfData\x12\x1e.skywalking.v3.BrowserPerfData\x1a\x17.skywalking.v3.Commands\"\x00\x12O\n\x10\x63ollectErrorLogs\x12\x1e.skywalking.v3.BrowserErrorLog\x1a\x17.skywalking.v3.Commands\"\x00(\x01\x42\x93\x01\n3org.apache.skywalking.apm.network.language.agent.v3P\x01Z:skywalking.apache.org/repo/goapi/collect/language/agent/v3\xaa\x02\x1dSkyWalking.NetworkProtocol.V3b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Skywalking
16
+ module V3
17
+ BrowserPerfData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.BrowserPerfData").msgclass
18
+ BrowserErrorLog = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.BrowserErrorLog").msgclass
19
+ ErrorCategory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.ErrorCategory").enummodule
20
+ end
21
+ end
@@ -0,0 +1,46 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: browser/BrowserPerf.proto for package 'skywalking.v3'
3
+ # Original file comments:
4
+ #
5
+ # Licensed to the Apache Software Foundation (ASF) under one or more
6
+ # contributor license agreements. See the NOTICE file distributed with
7
+ # this work for additional information regarding copyright ownership.
8
+ # The ASF licenses this file to You under the Apache License, Version 2.0
9
+ # (the "License"); you may not use this file except in compliance with
10
+ # the License. You may obtain a copy of the License at
11
+ #
12
+ # http://www.apache.org/licenses/LICENSE-2.0
13
+ #
14
+ # Unless required by applicable law or agreed to in writing, software
15
+ # distributed under the License is distributed on an "AS IS" BASIS,
16
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ # See the License for the specific language governing permissions and
18
+ # limitations under the License.
19
+ #
20
+ #
21
+
22
+ require 'grpc'
23
+ require_relative 'BrowserPerf_pb'
24
+
25
+ module Skywalking
26
+ module V3
27
+ module BrowserPerfService
28
+ # Collect performance raw data from browser.
29
+ class Service
30
+
31
+ include ::GRPC::GenericService
32
+
33
+ self.marshal_class_method = :encode
34
+ self.unmarshal_class_method = :decode
35
+ self.service_name = 'skywalking.v3.BrowserPerfService'
36
+
37
+ # report once per page
38
+ rpc :collectPerfData, ::Skywalking::V3::BrowserPerfData, ::Skywalking::V3::Commands
39
+ # report one or more error logs for pages, could report multiple times.
40
+ rpc :collectErrorLogs, stream(::Skywalking::V3::BrowserErrorLog), ::Skywalking::V3::Commands
41
+ end
42
+
43
+ Stub = Service.rpc_stub_class
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: common/Command.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require_relative '../common/Common_pb'
8
+
9
+
10
+ descriptor_data = "\n\x14\x63ommon/Command.proto\x12\rskywalking.v3\x1a\x13\x63ommon/Common.proto\"K\n\x07\x43ommand\x12\x0f\n\x07\x63ommand\x18\x01 \x01(\t\x12/\n\x04\x61rgs\x18\x02 \x03(\x0b\x32!.skywalking.v3.KeyStringValuePair\"4\n\x08\x43ommands\x12(\n\x08\x63ommands\x18\x01 \x03(\x0b\x32\x16.skywalking.v3.CommandB\x83\x01\n+org.apache.skywalking.apm.network.common.v3P\x01Z2skywalking.apache.org/repo/goapi/collect/common/v3\xaa\x02\x1dSkyWalking.NetworkProtocol.V3b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Skywalking
16
+ module V3
17
+ Command = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.Command").msgclass
18
+ Commands = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.Commands").msgclass
19
+ end
20
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: common/Common.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n\x13\x63ommon/Common.proto\x12\rskywalking.v3\"0\n\x12KeyStringValuePair\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"-\n\x0fKeyIntValuePair\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03\"\x1b\n\x03\x43PU\x12\x14\n\x0cusagePercent\x18\x02 \x01(\x01\")\n\x07Instant\x12\x0f\n\x07seconds\x18\x01 \x01(\x03\x12\r\n\x05nanos\x18\x02 \x01(\x05*0\n\x0b\x44\x65tectPoint\x12\n\n\x06\x63lient\x10\x00\x12\n\n\x06server\x10\x01\x12\t\n\x05proxy\x10\x02\x42\x83\x01\n+org.apache.skywalking.apm.network.common.v3P\x01Z2skywalking.apache.org/repo/goapi/collect/common/v3\xaa\x02\x1dSkyWalking.NetworkProtocol.V3b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
12
+
13
+ module Skywalking
14
+ module V3
15
+ KeyStringValuePair = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.KeyStringValuePair").msgclass
16
+ KeyIntValuePair = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.KeyIntValuePair").msgclass
17
+ CPU = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.CPU").msgclass
18
+ Instant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.Instant").msgclass
19
+ DetectPoint = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.DetectPoint").enummodule
20
+ end
21
+ end
@@ -0,0 +1,58 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: ebpf/accesslog.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require_relative '../common/Common_pb'
8
+
9
+
10
+ descriptor_data = "\n\x14\x65\x62pf/accesslog.proto\x12\rskywalking.v3\x1a\x13\x63ommon/Common.proto\"\xf4\x01\n\x14\x45\x42PFAccessLogMessage\x12\x32\n\x04node\x18\x01 \x01(\x0b\x32$.skywalking.v3.EBPFAccessLogNodeInfo\x12\x36\n\nconnection\x18\x02 \x01(\x0b\x32\".skywalking.v3.AccessLogConnection\x12\x35\n\nkernelLogs\x18\x03 \x03(\x0b\x32!.skywalking.v3.AccessLogKernelLog\x12\x39\n\x0bprotocolLog\x18\x04 \x01(\x0b\x32$.skywalking.v3.AccessLogProtocolLogs\"\xdd\x01\n\x15\x45\x42PFAccessLogNodeInfo\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x43\n\rnetInterfaces\x18\x02 \x03(\x0b\x32,.skywalking.v3.EBPFAccessLogNodeNetInterface\x12(\n\x08\x62ootTime\x18\x03 \x01(\x0b\x32\x16.skywalking.v3.Instant\x12\x13\n\x0b\x63lusterName\x18\x04 \x01(\t\x12\x32\n\x06policy\x18\x05 \x01(\x0b\x32\".skywalking.v3.EBPFAccessLogPolicy\"0\n\x13\x45\x42PFAccessLogPolicy\x12\x19\n\x11\x65xcludeNamespaces\x18\x01 \x03(\t\"I\n\x1d\x45\x42PFAccessLogNodeNetInterface\x12\r\n\x05index\x18\x01 \x01(\x05\x12\x0b\n\x03mtu\x18\x02 \x01(\x05\x12\x0c\n\x04name\x18\x03 \x01(\t\"\xcf\x02\n\x13\x41\x63\x63\x65ssLogConnection\x12/\n\x05local\x18\x01 \x01(\x0b\x32 .skywalking.v3.ConnectionAddress\x12\x30\n\x06remote\x18\x02 \x01(\x0b\x32 .skywalking.v3.ConnectionAddress\x12(\n\x04role\x18\x03 \x01(\x0e\x32\x1a.skywalking.v3.DetectPoint\x12:\n\x07tlsMode\x18\x04 \x01(\x0e\x32).skywalking.v3.AccessLogConnectionTLSMode\x12\x36\n\x08protocol\x18\x05 \x01(\x0e\x32$.skywalking.v3.AccessLogProtocolType\x12\x37\n\nattachment\x18\x06 \x01(\x0b\x32#.skywalking.v3.ConnectionAttachment\"e\n\x14\x43onnectionAttachment\x12>\n\x07zTunnel\x18\x01 \x01(\x0b\x32+.skywalking.v3.ZTunnelAttachmentEnvironmentH\x00\x42\r\n\x0b\x65nvironment\"\xc5\x01\n\x1cZTunnelAttachmentEnvironment\x12\x1b\n\x13real_destination_ip\x18\x01 \x01(\t\x12?\n\x02\x62y\x18\x02 \x01(\x0e\x32\x33.skywalking.v3.ZTunnelAttachmentEnvironmentDetectBy\x12G\n\x0fsecurity_policy\x18\x03 \x01(\x0e\x32..skywalking.v3.ZTunnelAttachmentSecurityPolicy\"\x85\x01\n\x11\x43onnectionAddress\x12=\n\nkubernetes\x18\x01 \x01(\x0b\x32\'.skywalking.v3.KubernetesProcessAddressH\x00\x12&\n\x02ip\x18\x02 \x01(\x0b\x32\x18.skywalking.v3.IPAddressH\x00\x42\t\n\x07\x61\x64\x64ress\"z\n\x18KubernetesProcessAddress\x12\x13\n\x0bserviceName\x18\x01 \x01(\t\x12\x0f\n\x07podName\x18\x02 \x01(\t\x12\x15\n\rcontainerName\x18\x03 \x01(\t\x12\x13\n\x0bprocessName\x18\x04 \x01(\t\x12\x0c\n\x04port\x18\x05 \x01(\x05\"\'\n\tIPAddress\x12\x0c\n\x04host\x18\x01 \x01(\t\x12\x0c\n\x04port\x18\x02 \x01(\x05\"\xe0\x02\n\x12\x41\x63\x63\x65ssLogKernelLog\x12\x41\n\x07\x63onnect\x18\x01 \x01(\x0b\x32..skywalking.v3.AccessLogKernelConnectOperationH\x00\x12?\n\x06\x61\x63\x63\x65pt\x18\x02 \x01(\x0b\x32-.skywalking.v3.AccessLogKernelAcceptOperationH\x00\x12=\n\x05\x63lose\x18\x03 \x01(\x0b\x32,.skywalking.v3.AccessLogKernelCloseOperationH\x00\x12;\n\x04read\x18\x04 \x01(\x0b\x32+.skywalking.v3.AccessLogKernelReadOperationH\x00\x12=\n\x05write\x18\x05 \x01(\x0b\x32,.skywalking.v3.AccessLogKernelWriteOperationH\x00\x42\x0b\n\toperation\"Y\n\x15\x41\x63\x63\x65ssLogProtocolLogs\x12\x34\n\x04http\x18\x01 \x01(\x0b\x32$.skywalking.v3.AccessLogHTTPProtocolH\x00\x42\n\n\x08protocol\"\xb3\x02\n\x15\x41\x63\x63\x65ssLogHTTPProtocol\x12/\n\tstartTime\x18\x01 \x01(\x0b\x32\x1c.skywalking.v3.EBPFTimestamp\x12-\n\x07\x65ndTime\x18\x02 \x01(\x0b\x32\x1c.skywalking.v3.EBPFTimestamp\x12<\n\x07version\x18\x03 \x01(\x0e\x32+.skywalking.v3.AccessLogHTTPProtocolVersion\x12<\n\x07request\x18\x04 \x01(\x0b\x32+.skywalking.v3.AccessLogHTTPProtocolRequest\x12>\n\x08response\x18\x05 \x01(\x0b\x32,.skywalking.v3.AccessLogHTTPProtocolResponse\"\xd6\x01\n\x1c\x41\x63\x63\x65ssLogHTTPProtocolRequest\x12\x41\n\x06method\x18\x01 \x01(\x0e\x32\x31.skywalking.v3.AccessLogHTTPProtocolRequestMethod\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x1a\n\x12sizeOfHeadersBytes\x18\x03 \x01(\x04\x12\x17\n\x0fsizeOfBodyBytes\x18\x04 \x01(\x04\x12\x30\n\x05trace\x18\x05 \x01(\x0b\x32!.skywalking.v3.AccessLogTraceInfo\"h\n\x1d\x41\x63\x63\x65ssLogHTTPProtocolResponse\x12\x12\n\nstatusCode\x18\x01 \x01(\x05\x12\x1a\n\x12sizeOfHeadersBytes\x18\x03 \x01(\x04\x12\x17\n\x0fsizeOfBodyBytes\x18\x04 \x01(\x04\"\x8a\x01\n\x12\x41\x63\x63\x65ssLogTraceInfo\x12;\n\x08provider\x18\x01 \x01(\x0e\x32).skywalking.v3.AccessLogTraceInfoProvider\x12\x0f\n\x07traceId\x18\x02 \x01(\t\x12\x16\n\x0etraceSegmentId\x18\x03 \x01(\t\x12\x0e\n\x06spanId\x18\x04 \x01(\t\"\x92\x01\n\x1f\x41\x63\x63\x65ssLogKernelConnectOperation\x12/\n\tstartTime\x18\x01 \x01(\x0b\x32\x1c.skywalking.v3.EBPFTimestamp\x12-\n\x07\x65ndTime\x18\x02 \x01(\x0b\x32\x1c.skywalking.v3.EBPFTimestamp\x12\x0f\n\x07success\x18\x03 \x01(\x08\"\x80\x01\n\x1e\x41\x63\x63\x65ssLogKernelAcceptOperation\x12/\n\tstartTime\x18\x01 \x01(\x0b\x32\x1c.skywalking.v3.EBPFTimestamp\x12-\n\x07\x65ndTime\x18\x02 \x01(\x0b\x32\x1c.skywalking.v3.EBPFTimestamp\"\x90\x01\n\x1d\x41\x63\x63\x65ssLogKernelCloseOperation\x12/\n\tstartTime\x18\x01 \x01(\x0b\x32\x1c.skywalking.v3.EBPFTimestamp\x12-\n\x07\x65ndTime\x18\x02 \x01(\x0b\x32\x1c.skywalking.v3.EBPFTimestamp\x12\x0f\n\x07success\x18\x03 \x01(\x08\"\xff\x02\n\x1d\x41\x63\x63\x65ssLogKernelWriteOperation\x12/\n\tstartTime\x18\x01 \x01(\x0b\x32\x1c.skywalking.v3.EBPFTimestamp\x12-\n\x07\x65ndTime\x18\x02 \x01(\x0b\x32\x1c.skywalking.v3.EBPFTimestamp\x12;\n\x07syscall\x18\x03 \x01(\x0e\x32*.skywalking.v3.AccessLogKernelWriteSyscall\x12?\n\tl4Metrics\x18\x04 \x01(\x0b\x32,.skywalking.v3.AccessLogKernelWriteL4Metrics\x12?\n\tl3Metrics\x18\x05 \x01(\x0b\x32,.skywalking.v3.AccessLogKernelWriteL3Metrics\x12?\n\tl2Metrics\x18\x06 \x01(\x0b\x32,.skywalking.v3.AccessLogKernelWriteL2Metrics\"\xe0\x01\n\x1d\x41\x63\x63\x65ssLogKernelWriteL4Metrics\x12\x15\n\rtotalDuration\x18\x01 \x01(\x04\x12!\n\x19totalTransmitPackageCount\x18\x02 \x01(\x03\x12#\n\x1btotalRetransmitPackageCount\x18\x03 \x01(\x03\x12\x46\n\x12lossPackageMetrics\x18\x04 \x03(\x0b\x32*.skywalking.v3.AccessLogLossPackageMetrics\x12\x18\n\x10totalPackageSize\x18\x05 \x01(\x03\">\n\x1b\x41\x63\x63\x65ssLogLossPackageMetrics\x12\x10\n\x08location\x18\x01 \x01(\t\x12\r\n\x05\x63ount\x18\x02 \x01(\x05\"\xeb\x01\n\x1d\x41\x63\x63\x65ssLogKernelWriteL3Metrics\x12\x15\n\rtotalDuration\x18\x01 \x01(\x04\x12\x1a\n\x12totalLocalDuration\x18\x02 \x01(\x04\x12\x1b\n\x13totalOutputDuration\x18\x03 \x01(\x04\x12\x1c\n\x14totalResolveMACCount\x18\x05 \x01(\x04\x12\x1f\n\x17totalResolveMACDuration\x18\x06 \x01(\x04\x12\x1b\n\x13totalNetFilterCount\x18\x07 \x01(\x04\x12\x1e\n\x16totalNetFilterDuration\x18\x08 \x01(\x04\"\xaf\x01\n\x1d\x41\x63\x63\x65ssLogKernelWriteL2Metrics\x12\x15\n\rtotalDuration\x18\x01 \x01(\x04\x12\x0f\n\x07ifindex\x18\x02 \x01(\r\x12\"\n\x1atotalEnterQueueBufferCount\x18\x03 \x01(\x04\x12\x1e\n\x16totalReadySendDuration\x18\x04 \x01(\x04\x12\"\n\x1atotalNetDeviceSendDuration\x18\x05 \x01(\x04\"\xfa\x02\n\x1c\x41\x63\x63\x65ssLogKernelReadOperation\x12/\n\tstartTime\x18\x01 \x01(\x0b\x32\x1c.skywalking.v3.EBPFTimestamp\x12-\n\x07\x65ndTime\x18\x02 \x01(\x0b\x32\x1c.skywalking.v3.EBPFTimestamp\x12:\n\x07syscall\x18\x03 \x01(\x0e\x32).skywalking.v3.AccessLogKernelReadSyscall\x12>\n\tl2Metrics\x18\x04 \x01(\x0b\x32+.skywalking.v3.AccessLogKernelReadL2Metrics\x12>\n\tl3Metrics\x18\x05 \x01(\x0b\x32+.skywalking.v3.AccessLogKernelReadL3Metrics\x12>\n\tl4Metrics\x18\x06 \x01(\x0b\x32+.skywalking.v3.AccessLogKernelReadL4Metrics\"\xb3\x01\n\x1c\x41\x63\x63\x65ssLogKernelReadL2Metrics\x12\x0f\n\x07ifindex\x18\x01 \x01(\r\x12\x19\n\x11totalPackageCount\x18\x02 \x01(\r\x12\x18\n\x10totalPackageSize\x18\x03 \x01(\x04\x12#\n\x1btotalPackageToQueueDuration\x18\x04 \x01(\x04\x12(\n totalRcvPackageFromQueueDuration\x18\x05 \x01(\x04\"\xa9\x01\n\x1c\x41\x63\x63\x65ssLogKernelReadL3Metrics\x12\x15\n\rtotalDuration\x18\x01 \x01(\x04\x12\x19\n\x11totalRecvDuration\x18\x02 \x01(\x04\x12\x1a\n\x12totalLocalDuration\x18\x03 \x01(\x04\x12\x1b\n\x13totalNetFilterCount\x18\x04 \x01(\x04\x12\x1e\n\x16totalNetFilterDuration\x18\x05 \x01(\x04\"5\n\x1c\x41\x63\x63\x65ssLogKernelReadL4Metrics\x12\x15\n\rtotalDuration\x18\x01 \x01(\x04\"R\n\rEBPFTimestamp\x12\x34\n\x06offset\x18\x01 \x01(\x0b\x32\".skywalking.v3.EBPFOffsetTimestampH\x00\x42\x0b\n\ttimestamp\"%\n\x13\x45\x42PFOffsetTimestamp\x12\x0e\n\x06offset\x18\x01 \x01(\x04\"\x19\n\x17\x45\x42PFAccessLogDownstream*A\n$ZTunnelAttachmentEnvironmentDetectBy\x12\x19\n\x15ZTUNNEL_OUTBOUND_FUNC\x10\x00*5\n\x1fZTunnelAttachmentSecurityPolicy\x12\x08\n\x04MTLS\x10\x00\x12\x08\n\x04NONE\x10\x01*0\n\x1a\x41\x63\x63\x65ssLogConnectionTLSMode\x12\t\n\x05Plain\x10\x00\x12\x07\n\x03TLS\x10\x01*4\n\x1c\x41\x63\x63\x65ssLogHTTPProtocolVersion\x12\t\n\x05HTTP1\x10\x00\x12\t\n\x05HTTP2\x10\x01*8\n\x1a\x41\x63\x63\x65ssLogTraceInfoProvider\x12\n\n\x06Zipkin\x10\x00\x12\x0e\n\nSkyWalking\x10\x01*\x86\x01\n\"AccessLogHTTPProtocolRequestMethod\x12\x07\n\x03Get\x10\x00\x12\x08\n\x04Post\x10\x01\x12\x07\n\x03Put\x10\x02\x12\n\n\x06\x44\x65lete\x10\x03\x12\x08\n\x04Head\x10\x04\x12\t\n\x05Patch\x10\x05\x12\x0b\n\x07Options\x10\x06\x12\t\n\x05Trace\x10\x07\x12\x0b\n\x07\x43onnect\x10\x08*\x83\x01\n\x1b\x41\x63\x63\x65ssLogKernelWriteSyscall\x12\t\n\x05Write\x10\x00\x12\n\n\x06Writev\x10\x01\x12\x08\n\x04Send\x10\x02\x12\n\n\x06SendTo\x10\x03\x12\x0b\n\x07SendMsg\x10\x04\x12\x0c\n\x08SendMmsg\x10\x05\x12\x0c\n\x08SendFile\x10\x06\x12\x0e\n\nSendFile64\x10\x07*d\n\x1a\x41\x63\x63\x65ssLogKernelReadSyscall\x12\x08\n\x04Read\x10\x00\x12\t\n\x05Readv\x10\x01\x12\x08\n\x04Recv\x10\x02\x12\x0c\n\x08RecvFrom\x10\x03\x12\x0b\n\x07RecvMsg\x10\x04\x12\x0c\n\x08RecvMmsg\x10\x05*8\n\x15\x41\x63\x63\x65ssLogProtocolType\x12\x07\n\x03TCP\x10\x00\x12\n\n\x06HTTP_1\x10\x01\x12\n\n\x06HTTP_2\x10\x02\x32r\n\x14\x45\x42PFAccessLogService\x12Z\n\x07\x63ollect\x12#.skywalking.v3.EBPFAccessLogMessage\x1a&.skywalking.v3.EBPFAccessLogDownstream\"\x00(\x01\x42s\n3org.apache.skywalking.apm.network.ebpf.accesslog.v3P\x01Z:skywalking.apache.org/repo/goapi/collect/ebpf/accesslog/v3b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Skywalking
16
+ module V3
17
+ EBPFAccessLogMessage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.EBPFAccessLogMessage").msgclass
18
+ EBPFAccessLogNodeInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.EBPFAccessLogNodeInfo").msgclass
19
+ EBPFAccessLogPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.EBPFAccessLogPolicy").msgclass
20
+ EBPFAccessLogNodeNetInterface = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.EBPFAccessLogNodeNetInterface").msgclass
21
+ AccessLogConnection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogConnection").msgclass
22
+ ConnectionAttachment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.ConnectionAttachment").msgclass
23
+ ZTunnelAttachmentEnvironment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.ZTunnelAttachmentEnvironment").msgclass
24
+ ConnectionAddress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.ConnectionAddress").msgclass
25
+ KubernetesProcessAddress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.KubernetesProcessAddress").msgclass
26
+ IPAddress = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.IPAddress").msgclass
27
+ AccessLogKernelLog = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogKernelLog").msgclass
28
+ AccessLogProtocolLogs = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogProtocolLogs").msgclass
29
+ AccessLogHTTPProtocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogHTTPProtocol").msgclass
30
+ AccessLogHTTPProtocolRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogHTTPProtocolRequest").msgclass
31
+ AccessLogHTTPProtocolResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogHTTPProtocolResponse").msgclass
32
+ AccessLogTraceInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogTraceInfo").msgclass
33
+ AccessLogKernelConnectOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogKernelConnectOperation").msgclass
34
+ AccessLogKernelAcceptOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogKernelAcceptOperation").msgclass
35
+ AccessLogKernelCloseOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogKernelCloseOperation").msgclass
36
+ AccessLogKernelWriteOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogKernelWriteOperation").msgclass
37
+ AccessLogKernelWriteL4Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogKernelWriteL4Metrics").msgclass
38
+ AccessLogLossPackageMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogLossPackageMetrics").msgclass
39
+ AccessLogKernelWriteL3Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogKernelWriteL3Metrics").msgclass
40
+ AccessLogKernelWriteL2Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogKernelWriteL2Metrics").msgclass
41
+ AccessLogKernelReadOperation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogKernelReadOperation").msgclass
42
+ AccessLogKernelReadL2Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogKernelReadL2Metrics").msgclass
43
+ AccessLogKernelReadL3Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogKernelReadL3Metrics").msgclass
44
+ AccessLogKernelReadL4Metrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogKernelReadL4Metrics").msgclass
45
+ EBPFTimestamp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.EBPFTimestamp").msgclass
46
+ EBPFOffsetTimestamp = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.EBPFOffsetTimestamp").msgclass
47
+ EBPFAccessLogDownstream = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.EBPFAccessLogDownstream").msgclass
48
+ ZTunnelAttachmentEnvironmentDetectBy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.ZTunnelAttachmentEnvironmentDetectBy").enummodule
49
+ ZTunnelAttachmentSecurityPolicy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.ZTunnelAttachmentSecurityPolicy").enummodule
50
+ AccessLogConnectionTLSMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogConnectionTLSMode").enummodule
51
+ AccessLogHTTPProtocolVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogHTTPProtocolVersion").enummodule
52
+ AccessLogTraceInfoProvider = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogTraceInfoProvider").enummodule
53
+ AccessLogHTTPProtocolRequestMethod = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogHTTPProtocolRequestMethod").enummodule
54
+ AccessLogKernelWriteSyscall = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogKernelWriteSyscall").enummodule
55
+ AccessLogKernelReadSyscall = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogKernelReadSyscall").enummodule
56
+ AccessLogProtocolType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.AccessLogProtocolType").enummodule
57
+ end
58
+ end
@@ -0,0 +1,42 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: ebpf/accesslog.proto for package 'skywalking.v3'
3
+ # Original file comments:
4
+ #
5
+ # Licensed to the Apache Software Foundation (ASF) under one or more
6
+ # contributor license agreements. See the NOTICE file distributed with
7
+ # this work for additional information regarding copyright ownership.
8
+ # The ASF licenses this file to You under the Apache License, Version 2.0
9
+ # (the "License"); you may not use this file except in compliance with
10
+ # the License. You may obtain a copy of the License at
11
+ #
12
+ # http://www.apache.org/licenses/LICENSE-2.0
13
+ #
14
+ # Unless required by applicable law or agreed to in writing, software
15
+ # distributed under the License is distributed on an "AS IS" BASIS,
16
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ # See the License for the specific language governing permissions and
18
+ # limitations under the License.
19
+ #
20
+ #
21
+
22
+ require 'grpc'
23
+ require_relative 'accesslog_pb'
24
+
25
+ module Skywalking
26
+ module V3
27
+ module EBPFAccessLogService
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'skywalking.v3.EBPFAccessLogService'
35
+
36
+ rpc :collect, stream(::Skywalking::V3::EBPFAccessLogMessage), ::Skywalking::V3::EBPFAccessLogDownstream
37
+ end
38
+
39
+ Stub = Service.rpc_stub_class
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: event/Event.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require_relative '../common/Command_pb'
8
+
9
+
10
+ descriptor_data = "\n\x11\x65vent/Event.proto\x12\rskywalking.v3\x1a\x14\x63ommon/Command.proto\"\x9e\x02\n\x05\x45vent\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12%\n\x06source\x18\x02 \x01(\x0b\x32\x15.skywalking.v3.Source\x12\x0c\n\x04name\x18\x03 \x01(\t\x12!\n\x04type\x18\x04 \x01(\x0e\x32\x13.skywalking.v3.Type\x12\x0f\n\x07message\x18\x05 \x01(\t\x12\x38\n\nparameters\x18\x06 \x03(\x0b\x32$.skywalking.v3.Event.ParametersEntry\x12\x11\n\tstartTime\x18\x07 \x01(\x03\x12\x0f\n\x07\x65ndTime\x18\x08 \x01(\x03\x12\r\n\x05layer\x18\t \x01(\t\x1a\x31\n\x0fParametersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"D\n\x06Source\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x17\n\x0fserviceInstance\x18\x02 \x01(\t\x12\x10\n\x08\x65ndpoint\x18\x03 \x01(\t*\x1d\n\x04Type\x12\n\n\x06Normal\x10\x00\x12\t\n\x05\x45rror\x10\x01\x32L\n\x0c\x45ventService\x12<\n\x07\x63ollect\x12\x14.skywalking.v3.Event\x1a\x17.skywalking.v3.Commands\"\x00(\x01\x42\x81\x01\n*org.apache.skywalking.apm.network.event.v3P\x01Z1skywalking.apache.org/repo/goapi/collect/event/v3\xaa\x02\x1dSkyWalking.NetworkProtocol.V3b\x06proto3"
11
+
12
+ pool = Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Skywalking
16
+ module V3
17
+ Event = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.Event").msgclass
18
+ Source = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.Source").msgclass
19
+ Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.Type").enummodule
20
+ end
21
+ end
@@ -0,0 +1,45 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: event/Event.proto for package 'skywalking.v3'
3
+ # Original file comments:
4
+ #
5
+ # Licensed to the Apache Software Foundation (ASF) under one or more
6
+ # contributor license agreements. See the NOTICE file distributed with
7
+ # this work for additional information regarding copyright ownership.
8
+ # The ASF licenses this file to You under the Apache License, Version 2.0
9
+ # (the "License"); you may not use this file except in compliance with
10
+ # the License. You may obtain a copy of the License at
11
+ #
12
+ # http://www.apache.org/licenses/LICENSE-2.0
13
+ #
14
+ # Unless required by applicable law or agreed to in writing, software
15
+ # distributed under the License is distributed on an "AS IS" BASIS,
16
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
+ # See the License for the specific language governing permissions and
18
+ # limitations under the License.
19
+ #
20
+ #
21
+
22
+ require 'grpc'
23
+ require_relative 'Event_pb'
24
+
25
+ module Skywalking
26
+ module V3
27
+ module EventService
28
+ class Service
29
+
30
+ include ::GRPC::GenericService
31
+
32
+ self.marshal_class_method = :encode
33
+ self.unmarshal_class_method = :decode
34
+ self.service_name = 'skywalking.v3.EventService'
35
+
36
+ # When reporting an event, you typically call the collect function twice, one for starting of the event and the other one for ending of the event, with the same UUID.
37
+ # There are also cases where you have both start time and end time already, for example, when exporting events from a 3rd-party system,
38
+ # the start time and end time are already known so that you can call the collect function only once.
39
+ rpc :collect, stream(::Skywalking::V3::Event), ::Skywalking::V3::Commands
40
+ end
41
+
42
+ Stub = Service.rpc_stub_class
43
+ end
44
+ end
45
+ end