open-telemetry / opentelemetry-collector

@@ -151,11 +151,14 @@
Loading
151 151
// Deprecated: [0.61.0] Use GRPCServer instead
152 152
type Server = GRPCServer
153 153
154 -
// RegisterServer registers the GRPCServer to the grpc.Server.
155 -
func RegisterServer(s *grpc.Server, srv GRPCServer) {
154 +
// RegisterGRPCServer registers the GRPCServer to the grpc.Server.
155 +
func RegisterGRPCServer(s *grpc.Server, srv GRPCServer) {
156 156
	otlpcollectormetrics.RegisterMetricsServiceServer(s, &rawMetricsServer{srv: srv})
157 157
}
158 158
159 +
// Deprecated: [0.62.0] Use RegisterGRPCServer instead
160 +
var RegisterServer = RegisterGRPCServer
161 +
159 162
type rawMetricsServer struct {
160 163
	srv GRPCServer
161 164
}

@@ -156,11 +156,14 @@
Loading
156 156
// Deprecated: [0.61.0] Use GRPCServer instead
157 157
type Server = GRPCServer
158 158
159 -
// RegisterServer registers the GRPCServer to the grpc.Server.
160 -
func RegisterServer(s *grpc.Server, srv GRPCServer) {
159 +
// RegisterGRPCServer registers the GRPCServer to the grpc.Server.
160 +
func RegisterGRPCServer(s *grpc.Server, srv GRPCServer) {
161 161
	otlpcollectortrace.RegisterTraceServiceServer(s, &rawTracesServer{srv: srv})
162 162
}
163 163
164 +
// Deprecated: [0.62.0] Use RegisterGRPCServer instead
165 +
var RegisterServer = RegisterGRPCServer
166 +
164 167
type rawTracesServer struct {
165 168
	srv GRPCServer
166 169
}

@@ -113,15 +113,15 @@
Loading
113 113
		r.serverGRPC = grpc.NewServer(opts...)
114 114
115 115
		if r.traceReceiver != nil {
116 -
			ptraceotlp.RegisterServer(r.serverGRPC, r.traceReceiver)
116 +
			ptraceotlp.RegisterGRPCServer(r.serverGRPC, r.traceReceiver)
117 117
		}
118 118
119 119
		if r.metricsReceiver != nil {
120 -
			pmetricotlp.RegisterServer(r.serverGRPC, r.metricsReceiver)
120 +
			pmetricotlp.RegisterGRPCServer(r.serverGRPC, r.metricsReceiver)
121 121
		}
122 122
123 123
		if r.logReceiver != nil {
124 -
			plogotlp.RegisterServer(r.serverGRPC, r.logReceiver)
124 +
			plogotlp.RegisterGRPCServer(r.serverGRPC, r.logReceiver)
125 125
		}
126 126
127 127
		err = r.startGRPCServer(r.cfg.GRPC, host)

@@ -155,11 +155,14 @@
Loading
155 155
// Deprecated: [0.61.0] Use GRPCServer instead
156 156
type Server = GRPCServer
157 157
158 -
// RegisterServer registers the Server to the grpc.Server.
159 -
func RegisterServer(s *grpc.Server, srv GRPCServer) {
158 +
// RegisterGRPCServer registers the Server to the grpc.Server.
159 +
func RegisterGRPCServer(s *grpc.Server, srv GRPCServer) {
160 160
	otlpcollectorlog.RegisterLogsServiceServer(s, &rawLogsServer{srv: srv})
161 161
}
162 162
163 +
// Deprecated: [0.62.0] Use RegisterGRPCServer instead
164 +
var RegisterServer = RegisterGRPCServer
165 +
163 166
type rawLogsServer struct {
164 167
	srv GRPCServer
165 168
}
Files Coverage
cmd 55.60%
component 95.51%
config 93.46%
confmap 96.14%
consumer 100.00%
exporter 90.38%
extension 84.17%
featuregate 100.00%
internal 88.38%
obsreport 97.26%
pdata 94.82%
processor 94.01%
receiver 84.43%
service 85.71%
client/client.go 100.00%
Project Totals (218 files) 91.77%

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading