code: func setSpanStatus(span *trace.Span, err error) {
  	var status trace.Status
  	switch {
  	case err == nil:
  		status.Code = trace.StatusCodeOK
  		span.SetStatus(status)
  		return
  	case err == context.Canceled:
  		status.Code = trace.StatusCodeCancelled
  	case err == context.DeadlineExceeded:
  		status.Code = trace.StatusCodeDeadlineExceeded
  	case isConnErr(err):
  		status.Code = trace.StatusCodeUnavailable
  	case isNotFound(err):
  		status.Code = trace.StatusCodeNotFound
  	case isConflict(err):
  		status.Code = trace.StatusCodeFailedPrecondition
  	case isForbidden(err):
  		status.Code = trace.StatusCodePermissionDenied
  	case isTimeout(err):
  		status.Code = trace.StatusCodeResourceExhausted
  	default:
  		status.Code = trace.StatusCodeUnknown
  	}
  	status.Message = err.Error()
  	span.SetStatus(status)
  }
docs: // See https://github.com/opencensus-integrations/ocsql/blob/master/driver.go#L749