package v1
Import Path
go.opentelemetry.io/proto/otlp/collector/trace/v1 (on go.dev)
Dependency Relation
imports 16 packages, and imported by one package
Involved Source Files
trace_service.pb.go
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
trace_service_grpc.pb.go
Package-Level Type Names (total 7)
A developer-facing human-readable message in English. It should be used
either to explain why the server rejected parts of the data during a partial
success or to convey warnings/suggestions during a full success. The message
should offer guidance on how users can address such issues.
error_message is an optional field. An error_message with an empty value
is equivalent to it not being set.
The number of rejected spans.
A `rejected_<signal>` field holding a `0` value indicates that the
request was fully accepted.
Deprecated: Use ExportTracePartialSuccess.ProtoReflect.Descriptor instead.
(*ExportTracePartialSuccess) GetErrorMessage() string
(*ExportTracePartialSuccess) GetRejectedSpans() int64
(*ExportTracePartialSuccess) ProtoMessage()
(*ExportTracePartialSuccess) ProtoReflect() protoreflect.Message
(*ExportTracePartialSuccess) Reset()
(*ExportTracePartialSuccess) String() string
*ExportTracePartialSuccess : expvar.Var
*ExportTracePartialSuccess : fmt.Stringer
*ExportTracePartialSuccess : github.com/gogo/protobuf/proto.Message
*ExportTracePartialSuccess : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage
*ExportTracePartialSuccess : google.golang.org/protobuf/runtime/protoiface.MessageV1
func (*ExportTraceServiceResponse).GetPartialSuccess() *ExportTracePartialSuccess
An array of ResourceSpans.
For data coming from a single resource this array will typically contain one
element. Intermediary nodes (such as OpenTelemetry Collector) that receive
data from multiple origins typically batch the data before forwarding further and
in that case this array will contain multiple elements.
Deprecated: Use ExportTraceServiceRequest.ProtoReflect.Descriptor instead.
(*ExportTraceServiceRequest) GetResourceSpans() []*v1.ResourceSpans
(*ExportTraceServiceRequest) ProtoMessage()
(*ExportTraceServiceRequest) ProtoReflect() protoreflect.Message
(*ExportTraceServiceRequest) Reset()
(*ExportTraceServiceRequest) String() string
*ExportTraceServiceRequest : expvar.Var
*ExportTraceServiceRequest : fmt.Stringer
*ExportTraceServiceRequest : github.com/gogo/protobuf/proto.Message
*ExportTraceServiceRequest : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage
*ExportTraceServiceRequest : google.golang.org/protobuf/runtime/protoiface.MessageV1
func TraceServiceClient.Export(ctx context.Context, in *ExportTraceServiceRequest, opts ...grpc.CallOption) (*ExportTraceServiceResponse, error)
func TraceServiceServer.Export(context.Context, *ExportTraceServiceRequest) (*ExportTraceServiceResponse, error)
func UnimplementedTraceServiceServer.Export(context.Context, *ExportTraceServiceRequest) (*ExportTraceServiceResponse, error)
The details of a partially successful export request.
If the request is only partially accepted
(i.e. when the server accepts only parts of the data and rejects the rest)
the server MUST initialize the `partial_success` field and MUST
set the `rejected_<signal>` with the number of items it rejected.
Servers MAY also make use of the `partial_success` field to convey
warnings/suggestions to senders even when the request was fully accepted.
In such cases, the `rejected_<signal>` MUST have a value of `0` and
the `error_message` MUST be non-empty.
A `partial_success` message with an empty value (rejected_<signal> = 0 and
`error_message` = "") is equivalent to it not being set/present. Senders
SHOULD interpret it the same way as in the full success case.
Deprecated: Use ExportTraceServiceResponse.ProtoReflect.Descriptor instead.
(*ExportTraceServiceResponse) GetPartialSuccess() *ExportTracePartialSuccess
(*ExportTraceServiceResponse) ProtoMessage()
(*ExportTraceServiceResponse) ProtoReflect() protoreflect.Message
(*ExportTraceServiceResponse) Reset()
(*ExportTraceServiceResponse) String() string
*ExportTraceServiceResponse : expvar.Var
*ExportTraceServiceResponse : fmt.Stringer
*ExportTraceServiceResponse : github.com/gogo/protobuf/proto.Message
*ExportTraceServiceResponse : google.golang.org/protobuf/reflect/protoreflect.ProtoMessage
*ExportTraceServiceResponse : google.golang.org/protobuf/runtime/protoiface.MessageV1
func TraceServiceClient.Export(ctx context.Context, in *ExportTraceServiceRequest, opts ...grpc.CallOption) (*ExportTraceServiceResponse, error)
func TraceServiceServer.Export(context.Context, *ExportTraceServiceRequest) (*ExportTraceServiceResponse, error)
func UnimplementedTraceServiceServer.Export(context.Context, *ExportTraceServiceRequest) (*ExportTraceServiceResponse, error)
TraceServiceClient is the client API for TraceService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
( TraceServiceClient) Export(ctx context.Context, in *ExportTraceServiceRequest, opts ...grpc.CallOption) (*ExportTraceServiceResponse, error)
func NewTraceServiceClient(cc grpc.ClientConnInterface) TraceServiceClient
func RegisterTraceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TraceServiceClient) error
TraceServiceServer is the server API for TraceService service.
All implementations must embed UnimplementedTraceServiceServer
for forward compatibility
( TraceServiceServer) Export(context.Context, *ExportTraceServiceRequest) (*ExportTraceServiceResponse, error)
UnimplementedTraceServiceServer
TraceServiceServer : UnsafeTraceServiceServer
func RegisterTraceServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server TraceServiceServer) error
func RegisterTraceServiceServer(s grpc.ServiceRegistrar, srv TraceServiceServer)
UnimplementedTraceServiceServer must be embedded to have forward compatible implementations.
( UnimplementedTraceServiceServer) Export(context.Context, *ExportTraceServiceRequest) (*ExportTraceServiceResponse, error)
UnimplementedTraceServiceServer : TraceServiceServer
UnimplementedTraceServiceServer : UnsafeTraceServiceServer
UnsafeTraceServiceServer may be embedded to opt out of forward compatibility for this service.
Use of this interface is not recommended, as added methods to TraceServiceServer will
result in compilation errors.
TraceServiceServer (interface)
UnimplementedTraceServiceServer
Package-Level Functions (total 6)
RegisterTraceServiceHandler registers the http handlers for service TraceService to "mux".
The handlers forward requests to the grpc endpoint over "conn".
RegisterTraceServiceHandlerClient registers the http handlers for service TraceService
to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "TraceServiceClient".
Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "TraceServiceClient"
doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in
"TraceServiceClient" to call the correct interceptors.
RegisterTraceServiceHandlerFromEndpoint is same as RegisterTraceServiceHandler but
automatically dials to "endpoint" and closes the connection when "ctx" gets done.
RegisterTraceServiceHandlerServer registers the http handlers for service TraceService to "mux".
UnaryRPC :call TraceServiceServer directly.
StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.
Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterTraceServiceHandlerFromEndpoint instead.
func RegisterTraceServiceServer(s grpc.ServiceRegistrar, srv TraceServiceServer)
Package-Level Variables (total 2)
TraceService_ServiceDesc is the grpc.ServiceDesc for TraceService service.
It's only intended for direct use with grpc.RegisterService,
and not to be introspected or modified (even as a copy)
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |