()
| 92 | } |
| 93 | |
| 94 | func (s *Server) inferRequestTimeout() time.Duration { |
| 95 | if s.cfg.Server.RequestTimeoutMS <= 0 { |
| 96 | return 30 * time.Second |
| 97 | } |
| 98 | return time.Duration(s.cfg.Server.RequestTimeoutMS) * time.Millisecond |
| 99 | } |
| 100 | |
| 101 | func New(cfg *config.Config) *Server { |
| 102 | return NewWithDependencies(cfg, slo.NewMemoryEngineFromConfig(cfg.SLO), telemetry.NewExporterFromConfig(cfg.Telemetry)) |