Module: Skywalking

Defined in:
lib/skywalking/version.rb,
lib/skywalking.rb,
lib/skywalking/agent.rb,
lib/skywalking/log/logger.rb,
lib/skywalking/environment.rb,
lib/skywalking/tracing/tag.rb,
lib/skywalking/tracing/span.rb,
lib/skywalking/utils/id_gen.rb,
lib/skywalking/configuration.rb,
lib/skywalking/reporter/grpc.rb,
lib/skywalking/plugins/redis5.rb,
lib/skywalking/plugins/sinatra.rb,
lib/skywalking/plugins_manager.rb,
lib/skywalking/reporter/report.rb,
lib/skywalking/tracing/carrier.rb,
lib/skywalking/tracing/segment.rb,
lib/skywalking/plugins/net_http.rb,
lib/skywalking/plugins/memcached.rb,
lib/skywalking/reporter/protocol.rb,
lib/skywalking/tracing/constants.rb,
lib/skywalking/tracing/exit_span.rb,
lib/skywalking/tracing/noop_span.rb,
lib/skywalking/reporter/scheduler.rb,
lib/skywalking/tracing/entry_span.rb,
lib/skywalking/proto/event/Event_pb.rb,
lib/skywalking/tracing/carrier_item.rb,
lib/skywalking/tracing/span_context.rb,
lib/skywalking/plugins/elasticsearch.rb,
lib/skywalking/reporter/client/proto.rb,
lib/skywalking/proto/common/Common_pb.rb,
lib/skywalking/proto/common/Command_pb.rb,
lib/skywalking/proto/ebpf/accesslog_pb.rb,
lib/skywalking/reporter/buffer_trigger.rb,
lib/skywalking/tracing/ignored_context.rb,
lib/skywalking/proto/logging/Logging_pb.rb,
lib/skywalking/proto/profile/Profile_pb.rb,
lib/skywalking/reporter/client/grpc_client.rb,
lib/skywalking/proto/browser/BrowserPerf_pb.rb,
lib/skywalking/proto/event/Event_services_pb.rb,
lib/skywalking/proto/language-agent/Meter_pb.rb,
lib/skywalking/proto/management/Management_pb.rb,
lib/skywalking/proto/language-agent/Tracing_pb.rb,
lib/rails/generators/skywalking/start_generator.rb,
lib/skywalking/proto/ebpf/accesslog_services_pb.rb,
lib/skywalking/proto/language-agent/CLRMetric_pb.rb,
lib/skywalking/proto/language-agent/JVMMetric_pb.rb,
lib/skywalking/proto/logging/Logging_services_pb.rb,
lib/skywalking/proto/profile/Profile_services_pb.rb,
lib/skywalking/proto/asyncprofiler/AsyncProfiler_pb.rb,
lib/skywalking/proto/browser/BrowserPerf_services_pb.rb,
lib/skywalking/proto/language-agent/Meter_services_pb.rb,
lib/skywalking/proto/management/Management_services_pb.rb,
lib/skywalking/proto/language-agent/Tracing_services_pb.rb,
lib/skywalking/proto/service-mesh-probe/service-mesh_pb.rb,
lib/skywalking/proto/language-agent/CLRMetric_services_pb.rb,
lib/skywalking/proto/language-agent/JVMMetric_services_pb.rb,
lib/skywalking/proto/asyncprofiler/AsyncProfiler_services_pb.rb,
lib/skywalking/proto/service-mesh-probe/service-mesh_services_pb.rb,
lib/skywalking/proto/language-agent/ConfigurationDiscoveryService_pb.rb,
lib/skywalking/proto/language-agent/ConfigurationDiscoveryService_services_pb.rb

Overview

Licensed to the Apache Software Foundation (ASF) under one or more

contributor license agreements.  See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License.  You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Defined Under Namespace

Modules: Log, Plugins, Reporter, Tracing, Utils, V10, V3 Classes: Agent, Configuration, Environment, StartGenerator

Constant Summary collapse

VERSION =
"0.1.0".freeze
ManagementServiceStub =
Skywalking::V3::ManagementService::Stub
InstanceProperties =
Skywalking::V3::InstanceProperties
InstancePingPkg =
Skywalking::V3::InstancePingPkg
TraceSegmentReportServiceStub =
Skywalking::V3::TraceSegmentReportService::Stub
SegmentObject =
Skywalking::V3::SegmentObject
SpanObject =
Skywalking::V3::SpanObject
SegmentReference =
Skywalking::V3::SegmentReference
KeyStringValuePair =
Skywalking::V3::KeyStringValuePair

Class Method Summary collapse

Class Method Details

.start(config = nil) ⇒ Object



21
22
23
24
25
26
# File 'lib/skywalking.rb', line 21

def start(config = nil)
  if started?
    return
  end
  Agent.start(config)
end

.started?Boolean

Returns:

  • (Boolean)


28
29
30
# File 'lib/skywalking.rb', line 28

def started?
  Agent.started?
end

.stopObject



32
33
34
# File 'lib/skywalking.rb', line 32

def stop
  Agent.stop
end