ValidateBasic performs basic validation (checking param bounds, etc.) and returns an error if any check fails.
()
| 1349 | // ValidateBasic performs basic validation (checking param bounds, etc.) and |
| 1350 | // returns an error if any check fails. |
| 1351 | func (cfg *InstrumentationConfig) ValidateBasic() error { |
| 1352 | if cfg.MaxOpenConnections < 0 { |
| 1353 | return errors.New("max-open-connections can't be negative") |
| 1354 | } |
| 1355 | return nil |
| 1356 | } |
| 1357 | |
| 1358 | //----------------------------------------------------------------------------- |
| 1359 | // Utils |
nothing calls this directly
no outgoing calls
no test coverage detected