opencensus-proto: github.com/census-instrumentation/opencensus-proto/gen-go/agent/trace/v1 Index | Files

package v1

import "github.com/census-instrumentation/opencensus-proto/gen-go/agent/trace/v1"

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Package Files

trace_service.pb.go trace_service.pb.gw.go

func RegisterTraceServiceHandler Uses

func RegisterTraceServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterTraceServiceHandler registers the http handlers for service TraceService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterTraceServiceHandlerClient Uses

func RegisterTraceServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client TraceServiceClient) error

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.

func RegisterTraceServiceHandlerFromEndpoint Uses

func RegisterTraceServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterTraceServiceHandlerFromEndpoint is same as RegisterTraceServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterTraceServiceServer Uses

func RegisterTraceServiceServer(s *grpc.Server, srv TraceServiceServer)

type CurrentLibraryConfig Uses

type CurrentLibraryConfig struct {
    // This is required only in the first message on the stream or if the
    // previous sent CurrentLibraryConfig message has a different Node (e.g.
    // when the same RPC is used to configure multiple Applications).
    Node *v1.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
    // Current configuration.
    Config               *v11.TraceConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
    XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    XXX_unrecognized     []byte           `json:"-"`
    XXX_sizecache        int32            `json:"-"`
}

func (*CurrentLibraryConfig) Descriptor Uses

func (*CurrentLibraryConfig) Descriptor() ([]byte, []int)

func (*CurrentLibraryConfig) GetConfig Uses

func (m *CurrentLibraryConfig) GetConfig() *v11.TraceConfig

func (*CurrentLibraryConfig) GetNode Uses

func (m *CurrentLibraryConfig) GetNode() *v1.Node

func (*CurrentLibraryConfig) ProtoMessage Uses

func (*CurrentLibraryConfig) ProtoMessage()

func (*CurrentLibraryConfig) Reset Uses

func (m *CurrentLibraryConfig) Reset()

func (*CurrentLibraryConfig) String Uses

func (m *CurrentLibraryConfig) String() string

func (*CurrentLibraryConfig) XXX_DiscardUnknown Uses

func (m *CurrentLibraryConfig) XXX_DiscardUnknown()

func (*CurrentLibraryConfig) XXX_Marshal Uses

func (m *CurrentLibraryConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*CurrentLibraryConfig) XXX_Merge Uses

func (m *CurrentLibraryConfig) XXX_Merge(src proto.Message)

func (*CurrentLibraryConfig) XXX_Size Uses

func (m *CurrentLibraryConfig) XXX_Size() int

func (*CurrentLibraryConfig) XXX_Unmarshal Uses

func (m *CurrentLibraryConfig) XXX_Unmarshal(b []byte) error

type ExportTraceServiceRequest Uses

type ExportTraceServiceRequest struct {
    // This is required only in the first message on the stream or if the
    // previous sent ExportTraceServiceRequest message has a different Node (e.g.
    // when the same RPC is used to send Spans from multiple Applications).
    Node *v1.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
    // A list of Spans that belong to the last received Node.
    Spans []*v11.Span `protobuf:"bytes,2,rep,name=spans,proto3" json:"spans,omitempty"`
    // The resource for the spans in this message that do not have an explicit
    // resource set.
    // If unset, the most recently set resource in the RPC stream applies. It is
    // valid to never be set within a stream, e.g. when no resource info is known.
    Resource             *v12.Resource `protobuf:"bytes,3,opt,name=resource,proto3" json:"resource,omitempty"`
    XXX_NoUnkeyedLiteral struct{}      `json:"-"`
    XXX_unrecognized     []byte        `json:"-"`
    XXX_sizecache        int32         `json:"-"`
}

func (*ExportTraceServiceRequest) Descriptor Uses

func (*ExportTraceServiceRequest) Descriptor() ([]byte, []int)

func (*ExportTraceServiceRequest) GetNode Uses

func (m *ExportTraceServiceRequest) GetNode() *v1.Node

func (*ExportTraceServiceRequest) GetResource Uses

func (m *ExportTraceServiceRequest) GetResource() *v12.Resource

func (*ExportTraceServiceRequest) GetSpans Uses

func (m *ExportTraceServiceRequest) GetSpans() []*v11.Span

func (*ExportTraceServiceRequest) ProtoMessage Uses

func (*ExportTraceServiceRequest) ProtoMessage()

func (*ExportTraceServiceRequest) Reset Uses

func (m *ExportTraceServiceRequest) Reset()

func (*ExportTraceServiceRequest) String Uses

func (m *ExportTraceServiceRequest) String() string

func (*ExportTraceServiceRequest) XXX_DiscardUnknown Uses

func (m *ExportTraceServiceRequest) XXX_DiscardUnknown()

func (*ExportTraceServiceRequest) XXX_Marshal Uses

func (m *ExportTraceServiceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExportTraceServiceRequest) XXX_Merge Uses

func (m *ExportTraceServiceRequest) XXX_Merge(src proto.Message)

func (*ExportTraceServiceRequest) XXX_Size Uses

func (m *ExportTraceServiceRequest) XXX_Size() int

func (*ExportTraceServiceRequest) XXX_Unmarshal Uses

func (m *ExportTraceServiceRequest) XXX_Unmarshal(b []byte) error

type ExportTraceServiceResponse Uses

type ExportTraceServiceResponse struct {
    XXX_NoUnkeyedLiteral struct{} `json:"-"`
    XXX_unrecognized     []byte   `json:"-"`
    XXX_sizecache        int32    `json:"-"`
}

func (*ExportTraceServiceResponse) Descriptor Uses

func (*ExportTraceServiceResponse) Descriptor() ([]byte, []int)

func (*ExportTraceServiceResponse) ProtoMessage Uses

func (*ExportTraceServiceResponse) ProtoMessage()

func (*ExportTraceServiceResponse) Reset Uses

func (m *ExportTraceServiceResponse) Reset()

func (*ExportTraceServiceResponse) String Uses

func (m *ExportTraceServiceResponse) String() string

func (*ExportTraceServiceResponse) XXX_DiscardUnknown Uses

func (m *ExportTraceServiceResponse) XXX_DiscardUnknown()

func (*ExportTraceServiceResponse) XXX_Marshal Uses

func (m *ExportTraceServiceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ExportTraceServiceResponse) XXX_Merge Uses

func (m *ExportTraceServiceResponse) XXX_Merge(src proto.Message)

func (*ExportTraceServiceResponse) XXX_Size Uses

func (m *ExportTraceServiceResponse) XXX_Size() int

func (*ExportTraceServiceResponse) XXX_Unmarshal Uses

func (m *ExportTraceServiceResponse) XXX_Unmarshal(b []byte) error

type TraceServiceClient Uses

type TraceServiceClient interface {
    // After initialization, this RPC must be kept alive for the entire life of
    // the application. The agent pushes configs down to applications via a
    // stream.
    Config(ctx context.Context, opts ...grpc.CallOption) (TraceService_ConfigClient, error)
    // For performance reasons, it is recommended to keep this RPC
    // alive for the entire life of the application.
    Export(ctx context.Context, opts ...grpc.CallOption) (TraceService_ExportClient, error)
}

TraceServiceClient is the client API for TraceService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewTraceServiceClient Uses

func NewTraceServiceClient(cc *grpc.ClientConn) TraceServiceClient

type TraceServiceServer Uses

type TraceServiceServer interface {
    // After initialization, this RPC must be kept alive for the entire life of
    // the application. The agent pushes configs down to applications via a
    // stream.
    Config(TraceService_ConfigServer) error
    // For performance reasons, it is recommended to keep this RPC
    // alive for the entire life of the application.
    Export(TraceService_ExportServer) error
}

TraceServiceServer is the server API for TraceService service.

type TraceService_ConfigClient Uses

type TraceService_ConfigClient interface {
    Send(*CurrentLibraryConfig) error
    Recv() (*UpdatedLibraryConfig, error)
    grpc.ClientStream
}

type TraceService_ConfigServer Uses

type TraceService_ConfigServer interface {
    Send(*UpdatedLibraryConfig) error
    Recv() (*CurrentLibraryConfig, error)
    grpc.ServerStream
}

type TraceService_ExportClient Uses

type TraceService_ExportClient interface {
    Send(*ExportTraceServiceRequest) error
    Recv() (*ExportTraceServiceResponse, error)
    grpc.ClientStream
}

type TraceService_ExportServer Uses

type TraceService_ExportServer interface {
    Send(*ExportTraceServiceResponse) error
    Recv() (*ExportTraceServiceRequest, error)
    grpc.ServerStream
}

type UnimplementedTraceServiceServer Uses

type UnimplementedTraceServiceServer struct {
}

UnimplementedTraceServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedTraceServiceServer) Config Uses

func (*UnimplementedTraceServiceServer) Config(srv TraceService_ConfigServer) error

func (*UnimplementedTraceServiceServer) Export Uses

func (*UnimplementedTraceServiceServer) Export(srv TraceService_ExportServer) error

type UpdatedLibraryConfig Uses

type UpdatedLibraryConfig struct {
    // This field is ignored when the RPC is used to configure only one Application.
    // This is required only in the first message on the stream or if the
    // previous sent UpdatedLibraryConfig message has a different Node.
    Node *v1.Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
    // Requested updated configuration.
    Config               *v11.TraceConfig `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
    XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    XXX_unrecognized     []byte           `json:"-"`
    XXX_sizecache        int32            `json:"-"`
}

func (*UpdatedLibraryConfig) Descriptor Uses

func (*UpdatedLibraryConfig) Descriptor() ([]byte, []int)

func (*UpdatedLibraryConfig) GetConfig Uses

func (m *UpdatedLibraryConfig) GetConfig() *v11.TraceConfig

func (*UpdatedLibraryConfig) GetNode Uses

func (m *UpdatedLibraryConfig) GetNode() *v1.Node

func (*UpdatedLibraryConfig) ProtoMessage Uses

func (*UpdatedLibraryConfig) ProtoMessage()

func (*UpdatedLibraryConfig) Reset Uses

func (m *UpdatedLibraryConfig) Reset()

func (*UpdatedLibraryConfig) String Uses

func (m *UpdatedLibraryConfig) String() string

func (*UpdatedLibraryConfig) XXX_DiscardUnknown Uses

func (m *UpdatedLibraryConfig) XXX_DiscardUnknown()

func (*UpdatedLibraryConfig) XXX_Marshal Uses

func (m *UpdatedLibraryConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*UpdatedLibraryConfig) XXX_Merge Uses

func (m *UpdatedLibraryConfig) XXX_Merge(src proto.Message)

func (*UpdatedLibraryConfig) XXX_Size Uses

func (m *UpdatedLibraryConfig) XXX_Size() int

func (*UpdatedLibraryConfig) XXX_Unmarshal Uses

func (m *UpdatedLibraryConfig) XXX_Unmarshal(b []byte) error

Package v1 imports 15 packages (graph) and is imported by 11 packages. Updated 2019-05-29. Refresh now. Tools for package owners.