![JAR search and dependency download from the Maven repository](/logo.png)
io.opentelemetry.proto.collector.trace.v1.TraceServiceGrpc.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of envoy-scala-control-plane_2.13 Show documentation
Show all versions of envoy-scala-control-plane_2.13 Show documentation
ScalaPB generated bindings for Envoy
package io.opentelemetry.proto.collector.trace.v1
object TraceServiceGrpc {
val METHOD_EXPORT: _root_.io.grpc.MethodDescriptor[io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest, io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse] =
_root_.io.grpc.MethodDescriptor.newBuilder()
.setType(_root_.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(_root_.io.grpc.MethodDescriptor.generateFullMethodName("opentelemetry.proto.collector.trace.v1.TraceService", "Export"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest])
.setResponseMarshaller(_root_.scalapb.grpc.Marshaller.forMessage[io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse])
.setSchemaDescriptor(_root_.scalapb.grpc.ConcreteProtoMethodDescriptorSupplier.fromMethodDescriptor(io.opentelemetry.proto.collector.trace.v1.TraceServiceProto.javaDescriptor.getServices().get(0).getMethods().get(0)))
.build()
val SERVICE: _root_.io.grpc.ServiceDescriptor =
_root_.io.grpc.ServiceDescriptor.newBuilder("opentelemetry.proto.collector.trace.v1.TraceService")
.setSchemaDescriptor(new _root_.scalapb.grpc.ConcreteProtoFileDescriptorSupplier(io.opentelemetry.proto.collector.trace.v1.TraceServiceProto.javaDescriptor))
.addMethod(METHOD_EXPORT)
.build()
/** Service that can be used to push spans between one Application instrumented with
* OpenTelemetry and a collector, or between a collector and a central collector (in this
* case spans are sent/received to/from multiple Applications).
*/
trait TraceService extends _root_.scalapb.grpc.AbstractService {
override def serviceCompanion = TraceService
/** For performance reasons, it is recommended to keep this RPC
* alive for the entire life of the application.
*/
def `export`(request: io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest): scala.concurrent.Future[io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse]
}
object TraceService extends _root_.scalapb.grpc.ServiceCompanion[TraceService] {
implicit def serviceCompanion: _root_.scalapb.grpc.ServiceCompanion[TraceService] = this
def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = io.opentelemetry.proto.collector.trace.v1.TraceServiceProto.javaDescriptor.getServices().get(0)
def scalaDescriptor: _root_.scalapb.descriptors.ServiceDescriptor = io.opentelemetry.proto.collector.trace.v1.TraceServiceProto.scalaDescriptor.services(0)
def bindService(serviceImpl: TraceService, executionContext: scala.concurrent.ExecutionContext): _root_.io.grpc.ServerServiceDefinition =
_root_.io.grpc.ServerServiceDefinition.builder(SERVICE)
.addMethod(
METHOD_EXPORT,
_root_.io.grpc.stub.ServerCalls.asyncUnaryCall(new _root_.io.grpc.stub.ServerCalls.UnaryMethod[io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest, io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse] {
override def invoke(request: io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest, observer: _root_.io.grpc.stub.StreamObserver[io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse]): _root_.scala.Unit =
serviceImpl.`export`(request).onComplete(scalapb.grpc.Grpc.completeObserver(observer))(
executionContext)
}))
.build()
}
/** Service that can be used to push spans between one Application instrumented with
* OpenTelemetry and a collector, or between a collector and a central collector (in this
* case spans are sent/received to/from multiple Applications).
*/
trait TraceServiceBlockingClient {
def serviceCompanion = TraceService
/** For performance reasons, it is recommended to keep this RPC
* alive for the entire life of the application.
*/
def `export`(request: io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest): io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse
}
class TraceServiceBlockingStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[TraceServiceBlockingStub](channel, options) with TraceServiceBlockingClient {
/** For performance reasons, it is recommended to keep this RPC
* alive for the entire life of the application.
*/
override def `export`(request: io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest): io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse = {
_root_.scalapb.grpc.ClientCalls.blockingUnaryCall(channel, METHOD_EXPORT, options, request)
}
override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): TraceServiceBlockingStub = new TraceServiceBlockingStub(channel, options)
}
class TraceServiceStub(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions = _root_.io.grpc.CallOptions.DEFAULT) extends _root_.io.grpc.stub.AbstractStub[TraceServiceStub](channel, options) with TraceService {
/** For performance reasons, it is recommended to keep this RPC
* alive for the entire life of the application.
*/
override def `export`(request: io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceRequest): scala.concurrent.Future[io.opentelemetry.proto.collector.trace.v1.ExportTraceServiceResponse] = {
_root_.scalapb.grpc.ClientCalls.asyncUnaryCall(channel, METHOD_EXPORT, options, request)
}
override def build(channel: _root_.io.grpc.Channel, options: _root_.io.grpc.CallOptions): TraceServiceStub = new TraceServiceStub(channel, options)
}
def bindService(serviceImpl: TraceService, executionContext: scala.concurrent.ExecutionContext): _root_.io.grpc.ServerServiceDefinition = TraceService.bindService(serviceImpl, executionContext)
def blockingStub(channel: _root_.io.grpc.Channel): TraceServiceBlockingStub = new TraceServiceBlockingStub(channel)
def stub(channel: _root_.io.grpc.Channel): TraceServiceStub = new TraceServiceStub(channel)
def javaDescriptor: _root_.com.google.protobuf.Descriptors.ServiceDescriptor = io.opentelemetry.proto.collector.trace.v1.TraceServiceProto.javaDescriptor.getServices().get(0)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy