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.
- checksums.yaml +7 -0
- data/.asf.yaml +40 -0
- data/.rspec +3 -0
- data/.rubocop.yml +236 -0
- data/CHANGELOG.md +15 -0
- data/CODE_OF_CONDUCT.md +132 -0
- data/LICENSE +201 -0
- data/NOTICE +5 -0
- data/README.md +18 -0
- data/Rakefile +23 -0
- data/docs/How-to-release.md +179 -0
- data/examples/rails-demo/.dockerignore +47 -0
- data/examples/rails-demo/.gitattributes +9 -0
- data/examples/rails-demo/.gitignore +34 -0
- data/examples/rails-demo/.kamal/hooks/docker-setup.sample +3 -0
- data/examples/rails-demo/.kamal/hooks/post-deploy.sample +14 -0
- data/examples/rails-demo/.kamal/hooks/post-proxy-reboot.sample +3 -0
- data/examples/rails-demo/.kamal/hooks/pre-build.sample +51 -0
- data/examples/rails-demo/.kamal/hooks/pre-connect.sample +47 -0
- data/examples/rails-demo/.kamal/hooks/pre-deploy.sample +109 -0
- data/examples/rails-demo/.kamal/hooks/pre-proxy-reboot.sample +3 -0
- data/examples/rails-demo/.kamal/secrets +17 -0
- data/examples/rails-demo/.rubocop.yml +8 -0
- data/examples/rails-demo/.ruby-version +1 -0
- data/examples/rails-demo/Dockerfile +72 -0
- data/examples/rails-demo/Gemfile +64 -0
- data/examples/rails-demo/README.md +24 -0
- data/examples/rails-demo/Rakefile +6 -0
- data/examples/rails-demo/app/assets/images/.keep +0 -0
- data/examples/rails-demo/app/assets/stylesheets/application.css +10 -0
- data/examples/rails-demo/app/controllers/application_controller.rb +4 -0
- data/examples/rails-demo/app/controllers/concerns/.keep +0 -0
- data/examples/rails-demo/app/helpers/application_helper.rb +2 -0
- data/examples/rails-demo/app/javascript/application.js +3 -0
- data/examples/rails-demo/app/javascript/controllers/application.js +9 -0
- data/examples/rails-demo/app/javascript/controllers/hello_controller.js +7 -0
- data/examples/rails-demo/app/javascript/controllers/index.js +4 -0
- data/examples/rails-demo/app/jobs/application_job.rb +7 -0
- data/examples/rails-demo/app/mailers/application_mailer.rb +4 -0
- data/examples/rails-demo/app/models/application_record.rb +3 -0
- data/examples/rails-demo/app/models/concerns/.keep +0 -0
- data/examples/rails-demo/app/views/layouts/application.html.erb +28 -0
- data/examples/rails-demo/app/views/layouts/mailer.html.erb +13 -0
- data/examples/rails-demo/app/views/layouts/mailer.text.erb +1 -0
- data/examples/rails-demo/app/views/pwa/manifest.json.erb +22 -0
- data/examples/rails-demo/app/views/pwa/service-worker.js +26 -0
- data/examples/rails-demo/bin/brakeman +7 -0
- data/examples/rails-demo/bin/bundle +109 -0
- data/examples/rails-demo/bin/dev +2 -0
- data/examples/rails-demo/bin/docker-entrypoint +14 -0
- data/examples/rails-demo/bin/importmap +4 -0
- data/examples/rails-demo/bin/jobs +6 -0
- data/examples/rails-demo/bin/kamal +27 -0
- data/examples/rails-demo/bin/rails +4 -0
- data/examples/rails-demo/bin/rake +4 -0
- data/examples/rails-demo/bin/rubocop +8 -0
- data/examples/rails-demo/bin/setup +34 -0
- data/examples/rails-demo/bin/thrust +5 -0
- data/examples/rails-demo/config/application.rb +27 -0
- data/examples/rails-demo/config/boot.rb +4 -0
- data/examples/rails-demo/config/cable.yml +17 -0
- data/examples/rails-demo/config/cache.yml +16 -0
- data/examples/rails-demo/config/credentials.yml.enc +1 -0
- data/examples/rails-demo/config/database.yml +41 -0
- data/examples/rails-demo/config/deploy.yml +116 -0
- data/examples/rails-demo/config/environment.rb +5 -0
- data/examples/rails-demo/config/environments/development.rb +72 -0
- data/examples/rails-demo/config/environments/production.rb +90 -0
- data/examples/rails-demo/config/environments/test.rb +53 -0
- data/examples/rails-demo/config/importmap.rb +7 -0
- data/examples/rails-demo/config/initializers/assets.rb +7 -0
- data/examples/rails-demo/config/initializers/content_security_policy.rb +25 -0
- data/examples/rails-demo/config/initializers/filter_parameter_logging.rb +8 -0
- data/examples/rails-demo/config/initializers/inflections.rb +16 -0
- data/examples/rails-demo/config/initializers/skywalking_ruby.rb +18 -0
- data/examples/rails-demo/config/locales/en.yml +31 -0
- data/examples/rails-demo/config/puma.rb +41 -0
- data/examples/rails-demo/config/queue.yml +18 -0
- data/examples/rails-demo/config/recurring.yml +10 -0
- data/examples/rails-demo/config/routes.rb +14 -0
- data/examples/rails-demo/config/storage.yml +34 -0
- data/examples/rails-demo/config.ru +6 -0
- data/examples/rails-demo/db/cable_schema.rb +11 -0
- data/examples/rails-demo/db/cache_schema.rb +14 -0
- data/examples/rails-demo/db/queue_schema.rb +129 -0
- data/examples/rails-demo/db/seeds.rb +9 -0
- data/examples/rails-demo/lib/tasks/.keep +0 -0
- data/examples/rails-demo/log/.keep +0 -0
- data/examples/rails-demo/public/400.html +114 -0
- data/examples/rails-demo/public/404.html +114 -0
- data/examples/rails-demo/public/406-unsupported-browser.html +114 -0
- data/examples/rails-demo/public/422.html +114 -0
- data/examples/rails-demo/public/500.html +114 -0
- data/examples/rails-demo/public/icon.png +0 -0
- data/examples/rails-demo/public/icon.svg +3 -0
- data/examples/rails-demo/public/robots.txt +1 -0
- data/examples/rails-demo/script/.keep +0 -0
- data/examples/rails-demo/storage/.keep +0 -0
- data/examples/rails-demo/test/application_system_test_case.rb +5 -0
- data/examples/rails-demo/test/controllers/.keep +0 -0
- data/examples/rails-demo/test/fixtures/files/.keep +0 -0
- data/examples/rails-demo/test/helpers/.keep +0 -0
- data/examples/rails-demo/test/integration/.keep +0 -0
- data/examples/rails-demo/test/mailers/.keep +0 -0
- data/examples/rails-demo/test/models/.keep +0 -0
- data/examples/rails-demo/test/system/.keep +0 -0
- data/examples/rails-demo/test/test_helper.rb +15 -0
- data/examples/rails-demo/tmp/.keep +0 -0
- data/examples/rails-demo/tmp/pids/.keep +0 -0
- data/examples/rails-demo/tmp/storage/.keep +0 -0
- data/examples/rails-demo/vendor/.keep +0 -0
- data/examples/rails-demo/vendor/javascript/.keep +0 -0
- data/examples/sinatra-demo/sinatra-demo.rb +32 -0
- data/lib/skywalking/agent.rb +98 -0
- data/lib/skywalking/configuration.rb +255 -0
- data/lib/skywalking/environment.rb +50 -0
- data/lib/skywalking/log/logger.rb +53 -0
- data/lib/skywalking/plugins/redis5.rb +70 -0
- data/lib/skywalking/plugins/sinatra.rb +55 -0
- data/lib/skywalking/plugins_manager.rb +84 -0
- data/lib/skywalking/proto/asyncprofiler/AsyncProfiler_pb.rb +23 -0
- data/lib/skywalking/proto/asyncprofiler/AsyncProfiler_services_pb.rb +45 -0
- data/lib/skywalking/proto/browser/BrowserPerfCompat_pb.rb +15 -0
- data/lib/skywalking/proto/browser/BrowserPerfCompat_services_pb.rb +42 -0
- data/lib/skywalking/proto/browser/BrowserPerf_pb.rb +21 -0
- data/lib/skywalking/proto/browser/BrowserPerf_services_pb.rb +46 -0
- data/lib/skywalking/proto/common/Command_pb.rb +20 -0
- data/lib/skywalking/proto/common/Common_pb.rb +21 -0
- data/lib/skywalking/proto/ebpf/accesslog_pb.rb +58 -0
- data/lib/skywalking/proto/ebpf/accesslog_services_pb.rb +42 -0
- data/lib/skywalking/proto/event/Event_pb.rb +21 -0
- data/lib/skywalking/proto/event/Event_services_pb.rb +45 -0
- data/lib/skywalking/proto/language-agent/CLRMetricCompat_pb.rb +15 -0
- data/lib/skywalking/proto/language-agent/CLRMetricCompat_services_pb.rb +38 -0
- data/lib/skywalking/proto/language-agent/CLRMetric_pb.rb +23 -0
- data/lib/skywalking/proto/language-agent/CLRMetric_services_pb.rb +42 -0
- data/lib/skywalking/proto/language-agent/ConfigurationDiscoveryService_pb.rb +19 -0
- data/lib/skywalking/proto/language-agent/ConfigurationDiscoveryService_services_pb.rb +51 -0
- data/lib/skywalking/proto/language-agent/JVMMetricCompat_pb.rb +15 -0
- data/lib/skywalking/proto/language-agent/JVMMetricCompat_services_pb.rb +39 -0
- data/lib/skywalking/proto/language-agent/JVMMetric_pb.rb +28 -0
- data/lib/skywalking/proto/language-agent/JVMMetric_services_pb.rb +43 -0
- data/lib/skywalking/proto/language-agent/MeterCompat_pb.rb +15 -0
- data/lib/skywalking/proto/language-agent/MeterCompat_services_pb.rb +39 -0
- data/lib/skywalking/proto/language-agent/Meter_pb.rb +24 -0
- data/lib/skywalking/proto/language-agent/Meter_services_pb.rb +48 -0
- data/lib/skywalking/proto/language-agent/TracingCompat_pb.rb +15 -0
- data/lib/skywalking/proto/language-agent/TracingCompat_services_pb.rb +48 -0
- data/lib/skywalking/proto/language-agent/Tracing_pb.rb +31 -0
- data/lib/skywalking/proto/language-agent/Tracing_services_pb.rb +71 -0
- data/lib/skywalking/proto/logging/Logging_pb.rb +26 -0
- data/lib/skywalking/proto/logging/Logging_services_pb.rb +46 -0
- data/lib/skywalking/proto/management/ManagementCompat_pb.rb +15 -0
- data/lib/skywalking/proto/management/ManagementCompat_services_pb.rb +44 -0
- data/lib/skywalking/proto/management/Management_pb.rb +21 -0
- data/lib/skywalking/proto/management/Management_services_pb.rb +48 -0
- data/lib/skywalking/proto/profile/ProfileCompat_pb.rb +15 -0
- data/lib/skywalking/proto/profile/ProfileCompat_services_pb.rb +43 -0
- data/lib/skywalking/proto/profile/Profile_pb.rb +22 -0
- data/lib/skywalking/proto/profile/Profile_services_pb.rb +47 -0
- data/lib/skywalking/proto/service-mesh-probe/service-mesh_pb.rb +25 -0
- data/lib/skywalking/proto/service-mesh-probe/service-mesh_services_pb.rb +43 -0
- data/lib/skywalking/reporter/buffer_trigger.rb +108 -0
- data/lib/skywalking/reporter/client/grpc_client.rb +114 -0
- data/lib/skywalking/reporter/client/proto.rb +29 -0
- data/lib/skywalking/reporter/grpc.rb +46 -0
- data/lib/skywalking/reporter/protocol.rb +28 -0
- data/lib/skywalking/reporter/report.rb +82 -0
- data/lib/skywalking/reporter/scheduler.rb +158 -0
- data/lib/skywalking/tracing/carrier.rb +121 -0
- data/lib/skywalking/tracing/carrier_item.rb +27 -0
- data/lib/skywalking/tracing/constants.rb +49 -0
- data/lib/skywalking/tracing/entry_span.rb +48 -0
- data/lib/skywalking/tracing/exit_span.rb +53 -0
- data/lib/skywalking/tracing/ignored_context.rb +34 -0
- data/lib/skywalking/tracing/noop_span.rb +32 -0
- data/lib/skywalking/tracing/segment.rb +57 -0
- data/lib/skywalking/tracing/span.rb +111 -0
- data/lib/skywalking/tracing/span_context.rb +242 -0
- data/lib/skywalking/tracing/tag.rb +49 -0
- data/lib/skywalking/utils/id_gen.rb +30 -0
- data/lib/skywalking/version.rb +18 -0
- data/lib/skywalking.rb +36 -0
- metadata +340 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: language-agent/CLRMetricCompat.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require_relative '../common/Command_pb'
|
8
|
+
require_relative 'CLRMetric_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n$language-agent/CLRMetricCompat.proto\x1a\x14\x63ommon/Command.proto\x1a\x1elanguage-agent/CLRMetric.proto2b\n\x16\x43LRMetricReportService\x12H\n\x07\x63ollect\x12\".skywalking.v3.CLRMetricCollection\x1a\x17.skywalking.v3.Commands\"\x00\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,38 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: language-agent/CLRMetricCompat.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 'CLRMetricCompat_pb'
|
24
|
+
|
25
|
+
module CLRMetricReportService
|
26
|
+
class Service
|
27
|
+
|
28
|
+
include ::GRPC::GenericService
|
29
|
+
|
30
|
+
self.marshal_class_method = :encode
|
31
|
+
self.unmarshal_class_method = :decode
|
32
|
+
self.service_name = 'CLRMetricReportService'
|
33
|
+
|
34
|
+
rpc :collect, ::Skywalking::V3::CLRMetricCollection, ::Skywalking::V3::Commands
|
35
|
+
end
|
36
|
+
|
37
|
+
Stub = Service.rpc_stub_class
|
38
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: language-agent/CLRMetric.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require_relative '../common/Common_pb'
|
8
|
+
require_relative '../common/Command_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n\x1elanguage-agent/CLRMetric.proto\x12\rskywalking.v3\x1a\x13\x63ommon/Common.proto\x1a\x14\x63ommon/Command.proto\"j\n\x13\x43LRMetricCollection\x12)\n\x07metrics\x18\x01 \x03(\x0b\x32\x18.skywalking.v3.CLRMetric\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x17\n\x0fserviceInstance\x18\x03 \x01(\t\"\x86\x01\n\tCLRMetric\x12\x0c\n\x04time\x18\x01 \x01(\x03\x12\x1f\n\x03\x63pu\x18\x02 \x01(\x0b\x32\x12.skywalking.v3.CPU\x12 \n\x02gc\x18\x03 \x01(\x0b\x32\x14.skywalking.v3.ClrGC\x12(\n\x06thread\x18\x04 \x01(\x0b\x32\x18.skywalking.v3.ClrThread\"i\n\x05\x43lrGC\x12\x18\n\x10Gen0CollectCount\x18\x01 \x01(\x03\x12\x18\n\x10Gen1CollectCount\x18\x02 \x01(\x03\x12\x18\n\x10Gen2CollectCount\x18\x03 \x01(\x03\x12\x12\n\nHeapMemory\x18\x04 \x01(\x03\"\x8f\x01\n\tClrThread\x12&\n\x1e\x41vailableCompletionPortThreads\x18\x01 \x01(\x05\x12\x1e\n\x16\x41vailableWorkerThreads\x18\x02 \x01(\x05\x12 \n\x18MaxCompletionPortThreads\x18\x03 \x01(\x05\x12\x18\n\x10MaxWorkerThreads\x18\x04 \x01(\x05\x32\x62\n\x16\x43LRMetricReportService\x12H\n\x07\x63ollect\x12\".skywalking.v3.CLRMetricCollection\x1a\x17.skywalking.v3.Commands\"\x00\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"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
15
|
+
|
16
|
+
module Skywalking
|
17
|
+
module V3
|
18
|
+
CLRMetricCollection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.CLRMetricCollection").msgclass
|
19
|
+
CLRMetric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.CLRMetric").msgclass
|
20
|
+
ClrGC = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.ClrGC").msgclass
|
21
|
+
ClrThread = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.ClrThread").msgclass
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: language-agent/CLRMetric.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 'CLRMetric_pb'
|
24
|
+
|
25
|
+
module Skywalking
|
26
|
+
module V3
|
27
|
+
module CLRMetricReportService
|
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.CLRMetricReportService'
|
35
|
+
|
36
|
+
rpc :collect, ::Skywalking::V3::CLRMetricCollection, ::Skywalking::V3::Commands
|
37
|
+
end
|
38
|
+
|
39
|
+
Stub = Service.rpc_stub_class
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: language-agent/ConfigurationDiscoveryService.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require_relative '../common/Command_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n2language-agent/ConfigurationDiscoveryService.proto\x12\rskywalking.v3\x1a\x14\x63ommon/Command.proto\"9\n\x18\x43onfigurationSyncRequest\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0c\n\x04uuid\x18\x02 \x01(\t2z\n\x1d\x43onfigurationDiscoveryService\x12Y\n\x13\x66\x65tchConfigurations\x12\'.skywalking.v3.ConfigurationSyncRequest\x1a\x17.skywalking.v3.Commands\"\x00\x42\x98\x01\n3org.apache.skywalking.apm.network.language.agent.v3P\x01Z?skywalking.apache.org/repo/goapi/collect/agent/configuration/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
|
+
ConfigurationSyncRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.ConfigurationSyncRequest").msgclass
|
18
|
+
end
|
19
|
+
end
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: language-agent/ConfigurationDiscoveryService.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 'ConfigurationDiscoveryService_pb'
|
24
|
+
|
25
|
+
module Skywalking
|
26
|
+
module V3
|
27
|
+
module ConfigurationDiscoveryService
|
28
|
+
# Fetch the latest dynamic configurations of the service.
|
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.ConfigurationDiscoveryService'
|
36
|
+
|
37
|
+
# fetchConfigurations service requests the latest configuration.
|
38
|
+
# Expect command of Commands is:
|
39
|
+
# command: CDS # meaning ConfigurationDiscoveryService's response
|
40
|
+
# args: Include string key and string value pair.
|
41
|
+
# The key depends on the agent implementation.
|
42
|
+
# The value is the latest value in String value. The watcher of key owner takes the responsibility to convert it to the correct type or format.
|
43
|
+
# One reserved key is `UUID`. The value would help reducing the traffic load between agent and OAP if there is no change.
|
44
|
+
# Commands could be empty if no change detected based on ConfigurationSyncRequest.
|
45
|
+
rpc :fetchConfigurations, ::Skywalking::V3::ConfigurationSyncRequest, ::Skywalking::V3::Commands
|
46
|
+
end
|
47
|
+
|
48
|
+
Stub = Service.rpc_stub_class
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: language-agent/JVMMetricCompat.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require_relative '../common/Command_pb'
|
8
|
+
require_relative 'JVMMetric_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n$language-agent/JVMMetricCompat.proto\x1a\x14\x63ommon/Command.proto\x1a\x1elanguage-agent/JVMMetric.proto2b\n\x16JVMMetricReportService\x12H\n\x07\x63ollect\x12\".skywalking.v3.JVMMetricCollection\x1a\x17.skywalking.v3.Commands\"\x00\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,39 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: language-agent/JVMMetricCompat.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 'JVMMetricCompat_pb'
|
24
|
+
|
25
|
+
module JVMMetricReportService
|
26
|
+
# Define the JVM metrics report service.
|
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 = 'JVMMetricReportService'
|
34
|
+
|
35
|
+
rpc :collect, ::Skywalking::V3::JVMMetricCollection, ::Skywalking::V3::Commands
|
36
|
+
end
|
37
|
+
|
38
|
+
Stub = Service.rpc_stub_class
|
39
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: language-agent/JVMMetric.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require_relative '../common/Common_pb'
|
8
|
+
require_relative '../common/Command_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n\x1elanguage-agent/JVMMetric.proto\x12\rskywalking.v3\x1a\x13\x63ommon/Common.proto\x1a\x14\x63ommon/Command.proto\"j\n\x13JVMMetricCollection\x12)\n\x07metrics\x18\x01 \x03(\x0b\x32\x18.skywalking.v3.JVMMetric\x12\x0f\n\x07service\x18\x02 \x01(\t\x12\x17\n\x0fserviceInstance\x18\x03 \x01(\t\"\xfb\x01\n\tJVMMetric\x12\x0c\n\x04time\x18\x01 \x01(\x03\x12\x1f\n\x03\x63pu\x18\x02 \x01(\x0b\x32\x12.skywalking.v3.CPU\x12%\n\x06memory\x18\x03 \x03(\x0b\x32\x15.skywalking.v3.Memory\x12-\n\nmemoryPool\x18\x04 \x03(\x0b\x32\x19.skywalking.v3.MemoryPool\x12\x1d\n\x02gc\x18\x05 \x03(\x0b\x32\x11.skywalking.v3.GC\x12%\n\x06thread\x18\x06 \x01(\x0b\x32\x15.skywalking.v3.Thread\x12#\n\x05\x63lazz\x18\x07 \x01(\x0b\x32\x14.skywalking.v3.Class\"T\n\x06Memory\x12\x0e\n\x06isHeap\x18\x01 \x01(\x08\x12\x0c\n\x04init\x18\x02 \x01(\x03\x12\x0b\n\x03max\x18\x03 \x01(\x03\x12\x0c\n\x04used\x18\x04 \x01(\x03\x12\x11\n\tcommitted\x18\x05 \x01(\x03\"o\n\nMemoryPool\x12%\n\x04type\x18\x01 \x01(\x0e\x32\x17.skywalking.v3.PoolType\x12\x0c\n\x04init\x18\x02 \x01(\x03\x12\x0b\n\x03max\x18\x03 \x01(\x03\x12\x0c\n\x04used\x18\x04 \x01(\x03\x12\x11\n\tcommitted\x18\x05 \x01(\x03\"H\n\x02GC\x12%\n\x05phase\x18\x01 \x01(\x0e\x32\x16.skywalking.v3.GCPhase\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\x12\x0c\n\x04time\x18\x03 \x01(\x03\"\xcd\x01\n\x06Thread\x12\x11\n\tliveCount\x18\x01 \x01(\x03\x12\x13\n\x0b\x64\x61\x65monCount\x18\x02 \x01(\x03\x12\x11\n\tpeakCount\x18\x03 \x01(\x03\x12 \n\x18runnableStateThreadCount\x18\x04 \x01(\x03\x12\x1f\n\x17\x62lockedStateThreadCount\x18\x05 \x01(\x03\x12\x1f\n\x17waitingStateThreadCount\x18\x06 \x01(\x03\x12$\n\x1ctimedWaitingStateThreadCount\x18\x07 \x01(\x03\"a\n\x05\x43lass\x12\x18\n\x10loadedClassCount\x18\x01 \x01(\x03\x12\x1f\n\x17totalUnloadedClassCount\x18\x02 \x01(\x03\x12\x1d\n\x15totalLoadedClassCount\x18\x03 \x01(\x03*\xa4\x02\n\x08PoolType\x12\x14\n\x10\x43ODE_CACHE_USAGE\x10\x00\x12\x10\n\x0cNEWGEN_USAGE\x10\x01\x12\x10\n\x0cOLDGEN_USAGE\x10\x02\x12\x12\n\x0eSURVIVOR_USAGE\x10\x03\x12\x11\n\rPERMGEN_USAGE\x10\x04\x12\x13\n\x0fMETASPACE_USAGE\x10\x05\x12\x0f\n\x0bZHEAP_USAGE\x10\x06\x12 \n\x1c\x43OMPRESSED_CLASS_SPACE_USAGE\x10\x07\x12\x1f\n\x1b\x43ODEHEAP_NON_NMETHODS_USAGE\x10\x08\x12$\n CODEHEAP_PROFILED_NMETHODS_USAGE\x10\t\x12(\n$CODEHEAP_NON_PROFILED_NMETHODS_USAGE\x10\n*\'\n\x07GCPhase\x12\x07\n\x03NEW\x10\x00\x12\x07\n\x03OLD\x10\x01\x12\n\n\x06NORMAL\x10\x02\x32\x62\n\x16JVMMetricReportService\x12H\n\x07\x63ollect\x12\".skywalking.v3.JVMMetricCollection\x1a\x17.skywalking.v3.Commands\"\x00\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"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
15
|
+
|
16
|
+
module Skywalking
|
17
|
+
module V3
|
18
|
+
JVMMetricCollection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.JVMMetricCollection").msgclass
|
19
|
+
JVMMetric = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.JVMMetric").msgclass
|
20
|
+
Memory = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.Memory").msgclass
|
21
|
+
MemoryPool = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.MemoryPool").msgclass
|
22
|
+
GC = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.GC").msgclass
|
23
|
+
Thread = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.Thread").msgclass
|
24
|
+
Class = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.Class").msgclass
|
25
|
+
PoolType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.PoolType").enummodule
|
26
|
+
GCPhase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.GCPhase").enummodule
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: language-agent/JVMMetric.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 'JVMMetric_pb'
|
24
|
+
|
25
|
+
module Skywalking
|
26
|
+
module V3
|
27
|
+
module JVMMetricReportService
|
28
|
+
# Define the JVM metrics report service.
|
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.JVMMetricReportService'
|
36
|
+
|
37
|
+
rpc :collect, ::Skywalking::V3::JVMMetricCollection, ::Skywalking::V3::Commands
|
38
|
+
end
|
39
|
+
|
40
|
+
Stub = Service.rpc_stub_class
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: language-agent/MeterCompat.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require_relative '../common/Command_pb'
|
8
|
+
require_relative 'Meter_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n language-agent/MeterCompat.proto\x1a\x14\x63ommon/Command.proto\x1a\x1alanguage-agent/Meter.proto2V\n\x12MeterReportService\x12@\n\x07\x63ollect\x12\x18.skywalking.v3.MeterData\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,39 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: language-agent/MeterCompat.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 'MeterCompat_pb'
|
24
|
+
|
25
|
+
module MeterReportService
|
26
|
+
class Service
|
27
|
+
|
28
|
+
include ::GRPC::GenericService
|
29
|
+
|
30
|
+
self.marshal_class_method = :encode
|
31
|
+
self.unmarshal_class_method = :decode
|
32
|
+
self.service_name = 'MeterReportService'
|
33
|
+
|
34
|
+
# Meter data is reported in a certain period. The agent/SDK should report all collected metrics in this period through one stream.
|
35
|
+
rpc :collect, stream(::Skywalking::V3::MeterData), ::Skywalking::V3::Commands
|
36
|
+
end
|
37
|
+
|
38
|
+
Stub = Service.rpc_stub_class
|
39
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: language-agent/Meter.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require_relative '../common/Command_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n\x1alanguage-agent/Meter.proto\x12\rskywalking.v3\x1a\x14\x63ommon/Command.proto\"$\n\x05Label\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t\"M\n\x10MeterBucketValue\x12\x0e\n\x06\x62ucket\x18\x01 \x01(\x01\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\x12\x1a\n\x12isNegativeInfinity\x18\x03 \x01(\x08\"U\n\x10MeterSingleValue\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x06labels\x18\x02 \x03(\x0b\x32\x14.skywalking.v3.Label\x12\r\n\x05value\x18\x03 \x01(\x01\"u\n\x0eMeterHistogram\x12\x0c\n\x04name\x18\x01 \x01(\t\x12$\n\x06labels\x18\x02 \x03(\x0b\x32\x14.skywalking.v3.Label\x12/\n\x06values\x18\x03 \x03(\x0b\x32\x1f.skywalking.v3.MeterBucketValue\"\xbe\x01\n\tMeterData\x12\x36\n\x0bsingleValue\x18\x01 \x01(\x0b\x32\x1f.skywalking.v3.MeterSingleValueH\x00\x12\x32\n\thistogram\x18\x02 \x01(\x0b\x32\x1d.skywalking.v3.MeterHistogramH\x00\x12\x0f\n\x07service\x18\x03 \x01(\t\x12\x17\n\x0fserviceInstance\x18\x04 \x01(\t\x12\x11\n\ttimestamp\x18\x05 \x01(\x03\x42\x08\n\x06metric\"B\n\x13MeterDataCollection\x12+\n\tmeterData\x18\x01 \x03(\x0b\x32\x18.skywalking.v3.MeterData2\xa7\x01\n\x12MeterReportService\x12@\n\x07\x63ollect\x12\x18.skywalking.v3.MeterData\x1a\x17.skywalking.v3.Commands\"\x00(\x01\x12O\n\x0c\x63ollectBatch\x12\".skywalking.v3.MeterDataCollection\x1a\x17.skywalking.v3.Commands\"\x00(\x01\x42s\n3org.apache.skywalking.apm.network.language.agent.v3P\x01Z:skywalking.apache.org/repo/goapi/collect/language/agent/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
|
+
Label = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.Label").msgclass
|
18
|
+
MeterBucketValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.MeterBucketValue").msgclass
|
19
|
+
MeterSingleValue = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.MeterSingleValue").msgclass
|
20
|
+
MeterHistogram = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.MeterHistogram").msgclass
|
21
|
+
MeterData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.MeterData").msgclass
|
22
|
+
MeterDataCollection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.MeterDataCollection").msgclass
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,48 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: language-agent/Meter.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 'Meter_pb'
|
24
|
+
|
25
|
+
module Skywalking
|
26
|
+
module V3
|
27
|
+
module MeterReportService
|
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.MeterReportService'
|
35
|
+
|
36
|
+
# Meter data is reported in a certain period. The agent/SDK should report all collected metrics in this period through one stream.
|
37
|
+
# The whole stream is an input data set, client should onComplete the stream per report period.
|
38
|
+
rpc :collect, stream(::Skywalking::V3::MeterData), ::Skywalking::V3::Commands
|
39
|
+
# Reporting meter data in bulk mode as MeterDataCollection.
|
40
|
+
# By using this, each one in the stream would be treated as a complete input for MAL engine,
|
41
|
+
# comparing to `collect (stream MeterData)`, which is using one stream as an input data set.
|
42
|
+
rpc :collectBatch, stream(::Skywalking::V3::MeterDataCollection), ::Skywalking::V3::Commands
|
43
|
+
end
|
44
|
+
|
45
|
+
Stub = Service.rpc_stub_class
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: language-agent/TracingCompat.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require_relative '../common/Command_pb'
|
8
|
+
require_relative 'Tracing_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n\"language-agent/TracingCompat.proto\x1a\x14\x63ommon/Command.proto\x1a\x1clanguage-agent/Tracing.proto2\xaf\x01\n\x19TraceSegmentReportService\x12\x44\n\x07\x63ollect\x12\x1c.skywalking.v3.SegmentObject\x1a\x17.skywalking.v3.Commands\"\x00(\x01\x12L\n\rcollectInSync\x12 .skywalking.v3.SegmentCollection\x1a\x17.skywalking.v3.Commands\"\x00\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,48 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: language-agent/TracingCompat.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 'TracingCompat_pb'
|
24
|
+
|
25
|
+
module TraceSegmentReportService
|
26
|
+
# Define a trace segment report service.
|
27
|
+
# All language agents or any trace collecting component, could use this service to send span collection to the SkyWalking OAP backend.
|
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 = 'TraceSegmentReportService'
|
35
|
+
|
36
|
+
# Recommended trace segment report channel.
|
37
|
+
# gRPC streaming provides better performance.
|
38
|
+
# All language agents should choose this.
|
39
|
+
rpc :collect, stream(::Skywalking::V3::SegmentObject), ::Skywalking::V3::Commands
|
40
|
+
# An alternative for trace report by using gRPC unary
|
41
|
+
# This is provided for some 3rd-party integration, if and only if they prefer the unary mode somehow.
|
42
|
+
# The performance of SkyWalking OAP server would be very similar with streaming report,
|
43
|
+
# the performance of the network and client side are affected
|
44
|
+
rpc :collectInSync, ::Skywalking::V3::SegmentCollection, ::Skywalking::V3::Commands
|
45
|
+
end
|
46
|
+
|
47
|
+
Stub = Service.rpc_stub_class
|
48
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: language-agent/Tracing.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require_relative '../common/Common_pb'
|
8
|
+
require_relative '../common/Command_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n\x1clanguage-agent/Tracing.proto\x12\rskywalking.v3\x1a\x13\x63ommon/Common.proto\x1a\x14\x63ommon/Command.proto\"\xa3\x01\n\rSegmentObject\x12\x0f\n\x07traceId\x18\x01 \x01(\t\x12\x16\n\x0etraceSegmentId\x18\x02 \x01(\t\x12(\n\x05spans\x18\x03 \x03(\x0b\x32\x19.skywalking.v3.SpanObject\x12\x0f\n\x07service\x18\x04 \x01(\t\x12\x17\n\x0fserviceInstance\x18\x05 \x01(\t\x12\x15\n\risSizeLimited\x18\x06 \x01(\x08\"\xf0\x01\n\x10SegmentReference\x12\'\n\x07refType\x18\x01 \x01(\x0e\x32\x16.skywalking.v3.RefType\x12\x0f\n\x07traceId\x18\x02 \x01(\t\x12\x1c\n\x14parentTraceSegmentId\x18\x03 \x01(\t\x12\x14\n\x0cparentSpanId\x18\x04 \x01(\x05\x12\x15\n\rparentService\x18\x05 \x01(\t\x12\x1d\n\x15parentServiceInstance\x18\x06 \x01(\t\x12\x16\n\x0eparentEndpoint\x18\x07 \x01(\t\x12 \n\x18networkAddressUsedAtPeer\x18\x08 \x01(\t\"\x91\x03\n\nSpanObject\x12\x0e\n\x06spanId\x18\x01 \x01(\x05\x12\x14\n\x0cparentSpanId\x18\x02 \x01(\x05\x12\x11\n\tstartTime\x18\x03 \x01(\x03\x12\x0f\n\x07\x65ndTime\x18\x04 \x01(\x03\x12-\n\x04refs\x18\x05 \x03(\x0b\x32\x1f.skywalking.v3.SegmentReference\x12\x15\n\roperationName\x18\x06 \x01(\t\x12\x0c\n\x04peer\x18\x07 \x01(\t\x12)\n\x08spanType\x18\x08 \x01(\x0e\x32\x17.skywalking.v3.SpanType\x12+\n\tspanLayer\x18\t \x01(\x0e\x32\x18.skywalking.v3.SpanLayer\x12\x13\n\x0b\x63omponentId\x18\n \x01(\x05\x12\x0f\n\x07isError\x18\x0b \x01(\x08\x12/\n\x04tags\x18\x0c \x03(\x0b\x32!.skywalking.v3.KeyStringValuePair\x12 \n\x04logs\x18\r \x03(\x0b\x32\x12.skywalking.v3.Log\x12\x14\n\x0cskipAnalysis\x18\x0e \x01(\x08\"D\n\x03Log\x12\x0c\n\x04time\x18\x01 \x01(\x03\x12/\n\x04\x64\x61ta\x18\x02 \x03(\x0b\x32!.skywalking.v3.KeyStringValuePair\"\x10\n\x02ID\x12\n\n\x02id\x18\x01 \x03(\t\"C\n\x11SegmentCollection\x12.\n\x08segments\x18\x01 \x03(\x0b\x32\x1c.skywalking.v3.SegmentObject\"\xdc\x03\n\x11SpanAttachedEvent\x12)\n\tstartTime\x18\x01 \x01(\x0b\x32\x16.skywalking.v3.Instant\x12\r\n\x05\x65vent\x18\x02 \x01(\t\x12\'\n\x07\x65ndTime\x18\x03 \x01(\x0b\x32\x16.skywalking.v3.Instant\x12/\n\x04tags\x18\x04 \x03(\x0b\x32!.skywalking.v3.KeyStringValuePair\x12/\n\x07summary\x18\x05 \x03(\x0b\x32\x1e.skywalking.v3.KeyIntValuePair\x12\x44\n\x0ctraceContext\x18\x06 \x01(\x0b\x32..skywalking.v3.SpanAttachedEvent.SpanReference\x1a\x8a\x01\n\rSpanReference\x12@\n\x04type\x18\x01 \x01(\x0e\x32\x32.skywalking.v3.SpanAttachedEvent.SpanReferenceType\x12\x0f\n\x07traceId\x18\x02 \x01(\t\x12\x16\n\x0etraceSegmentId\x18\x03 \x01(\t\x12\x0e\n\x06spanId\x18\x04 \x01(\t\"/\n\x11SpanReferenceType\x12\x0e\n\nSKYWALKING\x10\x00\x12\n\n\x06ZIPKIN\x10\x01**\n\x08SpanType\x12\t\n\x05\x45ntry\x10\x00\x12\x08\n\x04\x45xit\x10\x01\x12\t\n\x05Local\x10\x02*,\n\x07RefType\x12\x10\n\x0c\x43rossProcess\x10\x00\x12\x0f\n\x0b\x43rossThread\x10\x01*_\n\tSpanLayer\x12\x0b\n\x07Unknown\x10\x00\x12\x0c\n\x08\x44\x61tabase\x10\x01\x12\x10\n\x0cRPCFramework\x10\x02\x12\x08\n\x04Http\x10\x03\x12\x06\n\x02MQ\x10\x04\x12\t\n\x05\x43\x61\x63he\x10\x05\x12\x08\n\x04\x46\x41\x41S\x10\x06\x32\xaf\x01\n\x19TraceSegmentReportService\x12\x44\n\x07\x63ollect\x12\x1c.skywalking.v3.SegmentObject\x1a\x17.skywalking.v3.Commands\"\x00(\x01\x12L\n\rcollectInSync\x12 .skywalking.v3.SegmentCollection\x1a\x17.skywalking.v3.Commands\"\x00\x32j\n\x1eSpanAttachedEventReportService\x12H\n\x07\x63ollect\x12 .skywalking.v3.SpanAttachedEvent\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"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
pool.add_serialized_file(descriptor_data)
|
15
|
+
|
16
|
+
module Skywalking
|
17
|
+
module V3
|
18
|
+
SegmentObject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.SegmentObject").msgclass
|
19
|
+
SegmentReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.SegmentReference").msgclass
|
20
|
+
SpanObject = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.SpanObject").msgclass
|
21
|
+
Log = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.Log").msgclass
|
22
|
+
ID = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.ID").msgclass
|
23
|
+
SegmentCollection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.SegmentCollection").msgclass
|
24
|
+
SpanAttachedEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.SpanAttachedEvent").msgclass
|
25
|
+
SpanAttachedEvent::SpanReference = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.SpanAttachedEvent.SpanReference").msgclass
|
26
|
+
SpanAttachedEvent::SpanReferenceType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.SpanAttachedEvent.SpanReferenceType").enummodule
|
27
|
+
SpanType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.SpanType").enummodule
|
28
|
+
RefType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.RefType").enummodule
|
29
|
+
SpanLayer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("skywalking.v3.SpanLayer").enummodule
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: language-agent/Tracing.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 'Tracing_pb'
|
24
|
+
|
25
|
+
module Skywalking
|
26
|
+
module V3
|
27
|
+
module TraceSegmentReportService
|
28
|
+
# Define a trace segment report service.
|
29
|
+
# All language agents or any trace collecting component, could use this service to send span collection to the SkyWalking OAP backend.
|
30
|
+
class Service
|
31
|
+
|
32
|
+
include ::GRPC::GenericService
|
33
|
+
|
34
|
+
self.marshal_class_method = :encode
|
35
|
+
self.unmarshal_class_method = :decode
|
36
|
+
self.service_name = 'skywalking.v3.TraceSegmentReportService'
|
37
|
+
|
38
|
+
# Recommended trace segment report channel.
|
39
|
+
# gRPC streaming provides better performance.
|
40
|
+
# All language agents should choose this.
|
41
|
+
rpc :collect, stream(::Skywalking::V3::SegmentObject), ::Skywalking::V3::Commands
|
42
|
+
# An alternative for trace report by using gRPC unary
|
43
|
+
# This is provided for some 3rd-party integration, if and only if they prefer the unary mode somehow.
|
44
|
+
# The performance of SkyWalking OAP server would be very similar with streaming report,
|
45
|
+
# the performance of the network and client side are affected
|
46
|
+
rpc :collectInSync, ::Skywalking::V3::SegmentCollection, ::Skywalking::V3::Commands
|
47
|
+
end
|
48
|
+
|
49
|
+
Stub = Service.rpc_stub_class
|
50
|
+
end
|
51
|
+
module SpanAttachedEventReportService
|
52
|
+
# //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
53
|
+
# ebpf agent(SkyWalking Rover) collects extra information from the OS(Linux Only) level to attach on the traced span.
|
54
|
+
# Since v3.1
|
55
|
+
# //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
|
56
|
+
class Service
|
57
|
+
|
58
|
+
include ::GRPC::GenericService
|
59
|
+
|
60
|
+
self.marshal_class_method = :encode
|
61
|
+
self.unmarshal_class_method = :decode
|
62
|
+
self.service_name = 'skywalking.v3.SpanAttachedEventReportService'
|
63
|
+
|
64
|
+
# Collect SpanAttachedEvent to the OAP server in the streaming mode.
|
65
|
+
rpc :collect, stream(::Skywalking::V3::SpanAttachedEvent), ::Skywalking::V3::Commands
|
66
|
+
end
|
67
|
+
|
68
|
+
Stub = Service.rpc_stub_class
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|