Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLogsServer ¶
func RegisterLogsServer(s *grpc.Server, srv LogsServer)
RegisterLogsServer registers the LogsServer to the grpc.Server.
func RegisterMetricsServer ¶
func RegisterMetricsServer(s *grpc.Server, srv MetricsServer)
RegisterMetricsServer registers the MetricsServer to the grpc.Server.
func RegisterTracesServer ¶
func RegisterTracesServer(s *grpc.Server, srv TracesServer)
RegisterTracesServer registers the TracesServer to the grpc.Server.
Types ¶
type LogsClient ¶
type LogsClient interface { // Export pdata.Logs to the server. // // For performance reasons, it is recommended to keep this RPC // alive for the entire life of the application. Export(ctx context.Context, in pdata.Logs, opts ...grpc.CallOption) (interface{}, error) }
LogsClient is the client API for OTLP-GRPC Logs service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewLogsClient ¶
func NewLogsClient(cc *grpc.ClientConn) LogsClient
NewLogsClient returns a new LogsClient connected using the given connection.
type LogsServer ¶
type LogsServer interface { // Export is called every time a new request is received. // // For performance reasons, it is recommended to keep this RPC // alive for the entire life of the application. Export(context.Context, pdata.Logs) (interface{}, error) }
LogsServer is the server API for OTLP gRPC LogsService service.
type MetricsClient ¶
type MetricsClient interface { // Export pdata.Metrics to the server. // // For performance reasons, it is recommended to keep this RPC // alive for the entire life of the application. Export(ctx context.Context, in pdata.Metrics, opts ...grpc.CallOption) (interface{}, error) }
MetricsClient is the client API for OTLP-GRPC Metrics service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMetricsClient ¶
func NewMetricsClient(cc *grpc.ClientConn) MetricsClient
NewMetricsClient returns a new MetricsClient connected using the given connection.
type MetricsServer ¶
type MetricsServer interface { // Export is called every time a new request is received. // // For performance reasons, it is recommended to keep this RPC // alive for the entire life of the application. Export(context.Context, pdata.Metrics) (interface{}, error) }
MetricsServer is the server API for OTLP gRPC MetricsService service.
type TracesClient ¶
type TracesClient interface { // Export pdata.Traces to the server. // // For performance reasons, it is recommended to keep this RPC // alive for the entire life of the application. Export(ctx context.Context, in pdata.Traces, opts ...grpc.CallOption) (interface{}, error) }
TracesClient is the client API for OTLP-GRPC Traces service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTracesClient ¶
func NewTracesClient(cc *grpc.ClientConn) TracesClient
NewTracesClient returns a new TracesClient connected using the given connection.
type TracesServer ¶
type TracesServer interface { // Export is called every time a new request is received. // // For performance reasons, it is recommended to keep this RPC // alive for the entire life of the application. Export(context.Context, pdata.Traces) (interface{}, error) }
TracesServer is the server API for OTLP gRPC TracesService service.