Register creates a new ORCA service implementation configured using the provided options and registers the same on the provided grpc Server.
(s grpc.ServiceRegistrar, opts ServiceOptions)
| 112 | // Register creates a new ORCA service implementation configured using the |
| 113 | // provided options and registers the same on the provided grpc Server. |
| 114 | func Register(s grpc.ServiceRegistrar, opts ServiceOptions) error { |
| 115 | service, err := NewService(opts) |
| 116 | if err != nil { |
| 117 | return err |
| 118 | } |
| 119 | v3orcaservicegrpc.RegisterOpenRcaServiceServer(s, service) |
| 120 | return nil |
| 121 | } |
| 122 | |
| 123 | // determineReportingInterval determines the reporting interval for out-of-band |
| 124 | // metrics. If the reporting interval is not specified in the request, or is |